1 /* VLC-REMOTE for MAEMO 5
2 * Copyright (C) 2010 Schutz Sacha <istdasklar@gmail.com>, Dru Moore <usr@dru-id.co.uk>
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2,
5 * or (at your option) any later version, as published by the Free
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details
13 * You should have received a copy of the GNU General Public
14 * License along with this program; if not, write to the
15 * Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #ifndef BROWSEMAINWINDOW_H
19 #define BROWSEMAINWINDOW_H
21 #include <QMainWindow>
24 #include <QListWidgetItem>
25 #include "vlcbrowseelement.h"
28 class BrowseMainWindow;
31 class BrowseMainWindow : public QMainWindow {
34 explicit BrowseMainWindow(QWidget *parent = 0);
39 void browseDirectory(QString);
42 void onAddToPlaylist();
43 void onListSelectionChanged();
44 void finished(QNetworkReply * reply);
46 void showCurrentDirectory();
49 void parseXmlDirectory();
53 void changeEvent(QEvent *e);
54 VlcBrowseElement getElementFromText(QString text);
55 void writeFile(QString path, QByteArray text);
56 QString getExtension(QString path, QString extension);
59 Ui::BrowseMainWindow *ui;
60 QNetworkAccessManager * mNetManager;
63 QList<VlcBrowseElement>* mContents;
64 VlcBrowseElement mCurrentElement;
68 #endif // BROWSEMAINWINDOW_H