Diffstat (limited to 'noncore/net/opietooth/manager/scandialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/scandialog.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/noncore/net/opietooth/manager/scandialog.h b/noncore/net/opietooth/manager/scandialog.h index fcaee6e..4785a62 100644 --- a/noncore/net/opietooth/manager/scandialog.h +++ b/noncore/net/opietooth/manager/scandialog.h | |||
@@ -10,42 +10,41 @@ | |||
10 | * it under the terms of the GNU General Public License as published by * | 10 | * it under the terms of the GNU General Public License as published by * |
11 | * the Free Software Foundation; either version 2 of the License, or * | 11 | * the Free Software Foundation; either version 2 of the License, or * |
12 | * (at your option) any later version. * | 12 | * (at your option) any later version. * |
13 | * * | 13 | * * |
14 | ***************************************************************************/ | 14 | ***************************************************************************/ |
15 | 15 | ||
16 | 16 | ||
17 | #ifndef SCANDIALOG_H | 17 | #ifndef SCANDIALOG_H |
18 | #define SCANDIALOG_H | 18 | #define SCANDIALOG_H |
19 | 19 | ||
20 | #include <qvariant.h> | 20 | #include <qvariant.h> |
21 | #include <qdialog.h> | 21 | #include <qdialog.h> |
22 | #include <qlist.h> | ||
22 | 23 | ||
23 | 24 | ||
24 | #include <remotedevice.h> | ||
25 | |||
26 | class QVBoxLayout; | 25 | class QVBoxLayout; |
27 | class QHBoxLayout; | 26 | class QHBoxLayout; |
28 | class QGridLayout; | 27 | class QGridLayout; |
29 | class QFrame; | 28 | class QFrame; |
30 | class QLabel; | 29 | class QLabel; |
31 | class QListView; | 30 | class QListView; |
32 | class QListViewItem; | 31 | class QListViewItem; |
33 | class QPushButton; | 32 | class QPushButton; |
34 | class QProgressBar; | 33 | class QProgressBar; |
35 | 34 | ||
36 | 35 | ||
37 | namespace OpieTooth { | 36 | namespace OpieTooth { |
38 | 37 | ||
39 | 38 | #include <remotedevices.h> | |
40 | class Manager; | 39 | class Manager; |
41 | class Device; | 40 | class Device; |
42 | 41 | ||
43 | class ScanDialog : public QDialog { | 42 | class ScanDialog : public QDialog { |
44 | Q_OBJECT | 43 | Q_OBJECT |
45 | 44 | ||
46 | public: | 45 | public: |
47 | ScanDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); | 46 | ScanDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); |
48 | ~ScanDialog(); | 47 | ~ScanDialog(); |
49 | 48 | ||
50 | QFrame* Frame7; | 49 | QFrame* Frame7; |
51 | QProgressBar* progress; | 50 | QProgressBar* progress; |
@@ -55,19 +54,24 @@ class Device; | |||
55 | 54 | ||
56 | 55 | ||
57 | protected: | 56 | protected: |
58 | QVBoxLayout* Layout11; | 57 | QVBoxLayout* Layout11; |
59 | 58 | ||
60 | private slots: | 59 | private slots: |
61 | void stopSearch(); | 60 | void stopSearch(); |
62 | void startSearch(); | 61 | void startSearch(); |
63 | void progressTimer(); | 62 | void progressTimer(); |
64 | void fillList(const QString& device, RemoteDevices::ValueList list); | 63 | void fillList(const QString& device, RemoteDevices::ValueList list); |
65 | 64 | ||
66 | private: | 65 | private: |
66 | void emitToManager(); | ||
67 | Manager *localDevice; | 67 | Manager *localDevice; |
68 | int progressStat; | 68 | int progressStat; |
69 | |||
70 | signals: | ||
71 | void selectedDevices(QList<RemoteDevices>&); | ||
69 | }; | 72 | }; |
70 | 73 | ||
74 | |||
71 | } | 75 | } |
72 | 76 | ||
73 | #endif // SCANDIALOG_H | 77 | #endif // SCANDIALOG_H |