e9468dde5854af8db7277c15789063fc9aa52cec
[vlc-remote] / accountdialog.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 ACCOUNTDIALOG_H
19 #define ACCOUNTDIALOG_H
20
21 #include <QDialog>
22 #include <QListWidget>
23 #include <QFutureWatcher>
24 namespace Ui {
25     class AccountDialog;
26 }
27
28 class AccountDialog : public QDialog
29 {
30     Q_OBJECT
31
32 public:
33     explicit AccountDialog(QWidget *parent = 0);
34     ~AccountDialog();
35      static QListWidgetItem asyncTestItem(const QListWidgetItem& item);
36
37
38 static QString  currentIp();
39
40 public slots:
41     void add();
42     void edit();
43     void rem();
44     void use();
45     void load();
46     void enableUi();
47  void setAsyncItem(int row);
48 private:
49     Ui::AccountDialog *ui;
50     QFutureWatcher <QListWidgetItem> * mFuturWatcher;
51 };
52
53 #endif // ACCOUNTDIALOG_H