kmobiletools
enginexp.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KMOBILETOOLSENGINEXP_H
00021 #define KMOBILETOOLSENGINEXP_H
00022
00023 #include <QtCore/QObject>
00024 #include <QtCore/QString>
00025 #include <QtGui/QIcon>
00026
00027 #include <libkmobiletools/kmobiletools_export.h>
00028
00029 namespace KMobileTools {
00030
00042 class KMOBILETOOLS_EXPORT EngineXP : public QObject
00043 {
00044 Q_OBJECT
00045
00046 public:
00053 EngineXP( QObject *parent, const QString& deviceName );
00054
00058 virtual ~EngineXP();
00059
00067 bool implements( const QString& interfaceName );
00068
00074 bool connected() const;
00075
00081 QString deviceName() const;
00082
00083 public Q_SLOTS:
00088 virtual void connectDevice() = 0;
00089
00093 virtual void disconnectDevice() = 0;
00094
00095 Q_SIGNALS:
00099 void deviceConnected();
00100
00104 void deviceDisconnected();
00105
00106 private Q_SLOTS:
00110 void setDeviceConnected();
00111
00115 void setDeviceDisconnected();
00116 private:
00117 bool m_connected;
00118 QString m_deviceName;
00119 };
00120
00121 }
00122
00123 #endif