kmobiletools
enginexp.cpp
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 #include "enginexp.h"
00021
00022 namespace KMobileTools {
00023
00024 EngineXP::EngineXP( QObject *parent, const QString& deviceName )
00025 : QObject( parent )
00026 {
00027 m_deviceName = deviceName;
00028 m_connected = false;
00029 connect( this, SIGNAL(deviceConnected()), this, SLOT(setDeviceConnected()) );
00030 connect( this, SIGNAL(deviceDisconnected()), this, SLOT(setDeviceDisconnected()) );
00031 }
00032
00033
00034 EngineXP::~EngineXP()
00035 {
00036 }
00037
00038
00039 bool EngineXP::implements( const QString& interfaceName ) {
00040 QString qualifiedInterfaceName = QString( "KMobileTools::Ifaces::%1" ).arg( interfaceName );
00041 if( inherits( qualifiedInterfaceName.toUtf8() ) )
00042 return true;
00043
00044 return false;
00045 }
00046
00047 bool EngineXP::connected() const {
00048 return m_connected;
00049 }
00050
00051 void EngineXP::setDeviceConnected() {
00052 m_connected = true;
00053 }
00054
00055 void EngineXP::setDeviceDisconnected() {
00056 m_connected = false;
00057 }
00058
00059 QString EngineXP::deviceName() const {
00060 return m_deviceName;
00061 }
00062
00063 }
00064
00065 #include "enginexp.moc"
00066