Last french translation for v0.5 release
[vlc-remote] / favouritesmainwindow.h
1 /*   VLC-REMOTE for MAEMO 5
2 *   Copyright (C) 2010 Schutz Sacha <istdasklar@gmail.com>, Dru Moore <usr@dru-id.co.uk>, Yann Nave <yannux@onbebop.net>
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
6 *   Software Foundation
7 *
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
12 *
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.
17 */
18 #ifndef FAVOURITESMAINWINDOW_H
19 #define FAVOURITESMAINWINDOW_H
20
21 #include <QMainWindow>
22 #include <QtNetwork>
23 #include <QtXml>
24 #include <QListWidgetItem>
25 #include "appsettings.h"
26
27 #ifndef LIST_ITEM_TYPE_OFFSET
28 #define LIST_ITEM_TYPE_OFFSET 1000
29 #endif
30
31 namespace Ui {
32     class FavouritesMainWindow;
33 }
34
35 class FavouritesMainWindow : public QMainWindow {
36     Q_OBJECT
37 public:
38     explicit FavouritesMainWindow(QWidget *parent = 0);
39     ~FavouritesMainWindow();
40
41 public slots:
42     void init();
43     void onListSelectionChanged();
44     void onLineEditTextChanged(QString text);
45     void onBrowse();
46     void onEdit();
47     void onDelete();
48     void setHomeFolder();
49     void onEditSave();
50
51 protected slots:
52
53 signals:
54     void browseDirectory(QString path);
55
56 protected:
57     void changeEvent(QEvent *e);
58     void updateList();
59
60 private:
61     Ui::FavouritesMainWindow *ui;
62     int mCurrentItemIndex;
63     QList<VlcDirectory>* mFavourites;
64     VlcDirectory mCurrentFavourite;
65 };
66
67 #endif // FAVOURITESMAINWINDOW_H