00001 /* main.cpp 00002 * 00003 * copyright : (c) 2002 by Maximilian Reiß 00004 * email : max.reiss@gmx.de 00005 * 00006 */ 00007 /*************************************************************************** 00008 * * 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; either version 2 of the License, or * 00012 * (at your option) any later version. * 00013 * * 00014 ***************************************************************************/ 00015 00016 00017 #ifndef SCANDIALOG_H 00018 #define SCANDIALOG_H 00019 00020 #include <qvariant.h> 00021 #include <qdialog.h> 00022 #include <qlist.h> 00023 00024 #include <remotedevice.h> 00025 class QVBoxLayout; 00026 class QGridLayout; 00027 class QLabel; 00028 class QListView; 00029 class QListViewItem; 00030 class QPushButton; 00031 class QProgressBar; 00032 00033 00034 namespace OpieTooth { 00035 00036 class Manager; 00037 class Device; 00038 00039 class ScanDialog : public QDialog { 00040 Q_OBJECT 00041 00042 public: 00043 ScanDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 00044 ~ScanDialog(); 00045 00046 private: 00047 QProgressBar* progress; 00048 QPushButton* StartStopButton; 00049 QListView* serviceView; 00050 00051 public slots: 00052 void accept(); 00053 00054 protected: 00055 QVBoxLayout* Layout11; 00056 00057 private slots: 00058 void stopSearch(); 00059 void startSearch(); 00060 void progressTimer(); 00061 void fillList( const QString& device, RemoteDevice::ValueList list ); 00062 00063 private: 00064 bool m_search:1; 00065 void emitToManager(); 00066 Manager *localDevice; 00067 int progressStat; 00068 00069 signals: 00070 void selectedDevices( const QValueList<RemoteDevice>& ); 00071 }; 00072 00073 00074 } 00075 00076 #endif // SCANDIALOG_H
1.4.2