kmobiletools
at_scanprogresspage.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 Copyright (C) 2007 00003 by Marco Gulino <marco@kmobiletools.org> 00004 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the 00020 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00021 Boston, MA 02110-1301, USA. 00022 ***************************************************************************/ 00023 #ifndef AT_SCANPROGRESSPAGE_H 00024 #define AT_SCANPROGRESSPAGE_H 00025 00026 #include <libkmobiletoolsengineui/scanprogressPage.h> 00027 #include <QList> 00028 00029 class FindDeviceDataJob; 00030 class AT_Engine; 00031 class ATDevicesConfig; 00032 namespace KMobileTools { class EngineData; } 00033 class AT_ScanProgressPage : public ScanProgressPage 00034 { 00035 Q_OBJECT 00036 public: 00037 AT_ScanProgressPage(QWidget *parent = 0); 00038 00039 ~AT_ScanProgressPage(); 00040 bool isComplete() const; 00041 void cleanupPage(); 00042 void initializePage(); 00043 void startScan(); 00044 QList<KMobileTools::EngineData*> foundDevices() { return l_devices ; } 00045 00046 public slots: 00047 void deviceProbed(FindDeviceDataJob*); 00048 private: 00049 AT_Engine *engine; 00050 ATDevicesConfig *cfg; 00051 int totaljobs; 00052 int donejobs; 00053 QList<KMobileTools::EngineData*> l_devices; 00054 }; 00055 00056 #endif
KDE 4.2 API Reference