• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmobiletools

enginexp.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002    Copyright (C) 2007 by Matthias Lechner <matthias@lmme.de>
00003 
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 2 of the License, or
00007    (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this program; if not, write to the
00016    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
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 

kmobiletools

Skip menu "kmobiletools"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal