kmobiletools
testphonedevice.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 Copyright (C) 2007 00003 by Marco Gulino <marco@kmobiletools.org> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the 00017 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 ***************************************************************************/ 00020 #ifndef TESTPHONEDEVICE_H 00021 #define TESTPHONEDEVICE_H 00022 00023 #include "at_jobs.h" 00024 #include "at_engine.h" 00025 00029 class KMobileTools::EngineData; 00030 class TestPhoneDeviceJob : public kmobiletoolsATJob 00031 { 00034 Q_OBJECT 00035 public: 00036 TestPhoneDeviceJob(const QString &devicename, AT_Engine* parent); 00037 00038 ~TestPhoneDeviceJob(); 00039 virtual JobType type() { return static_cast<JobType>(AT_Engine::TestPhoneDevice); } 00040 KMobileTools::EngineData *data() { return enginedata; } 00041 bool found() { return b_found; } 00042 QString path() const { return deviceName; } 00043 protected: 00044 virtual void run (); 00045 QString deviceName; 00046 bool b_found; 00047 KMobileTools::EngineData* enginedata; 00048 bool b_closeafterimei; 00049 }; 00050 00051 class FindDeviceDataJob : public TestPhoneDeviceJob { 00052 Q_OBJECT 00055 public: 00056 FindDeviceDataJob(const QString &devicename, AT_Engine* parent); 00057 JobType type() { return static_cast<JobType>(AT_Engine::FindDeviceData); } 00058 protected: 00059 void run(); 00060 }; 00061 00062 #endif
KDE 4.2 API Reference