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

kmobiletools

KMobileTools::EngineXP

KMobileTools::EngineXP Class Reference

#include <enginexp.h>

Inheritance diagram for KMobileTools::EngineXP:

Inheritance graph
[legend]

List of all members.


Detailed Description

This is KMobileTools' engine object.

You can use it to create a backend for KMobileTools. To do so, create a class that derives from this object and derive from one or many interfaces from KMobileTools::Ifaces.

change the object name back to Engine as soon as the transition to this object is made ;-) Sorry for the name, it was the first idea.

Author:
Matthias Lechner <matthias@lmme.de>

Definition at line 42 of file enginexp.h.


Public Slots

virtual void connectDevice ()=0
virtual void disconnectDevice ()=0

Signals

void deviceConnected ()
void deviceDisconnected ()

Public Member Functions

bool connected () const
QString deviceName () const
 EngineXP (QObject *parent, const QString &deviceName)
bool implements (const QString &interfaceName)
virtual ~EngineXP ()

Constructor & Destructor Documentation

KMobileTools::EngineXP::EngineXP ( QObject *  parent,
const QString &  deviceName 
)

Constructs a new Engine object with the given parent.

Parameters:
parent the object's parent
deviceName the device name

Definition at line 24 of file enginexp.cpp.

KMobileTools::EngineXP::~EngineXP (  )  [virtual]

Destructs the Engine object.

Definition at line 34 of file enginexp.cpp.


Member Function Documentation

virtual void KMobileTools::EngineXP::connectDevice (  )  [pure virtual, slot]

Initializes the engine and the communication with the device with given deviceName.

Implemented in FakeEngine.

bool KMobileTools::EngineXP::connected (  )  const

Returns whether the engine is initialized and connected.

Returns:
whether the engine is initialized

Definition at line 47 of file enginexp.cpp.

void KMobileTools::EngineXP::deviceConnected (  )  [signal]

This signal is emitted when the engine was initialized.

void KMobileTools::EngineXP::deviceDisconnected (  )  [signal]

This signal is emitted when the engine has successfully shut down.

QString KMobileTools::EngineXP::deviceName (  )  const

Returns the name of the device the engine is associated with.

Returns:
the device name

Definition at line 59 of file enginexp.cpp.

virtual void KMobileTools::EngineXP::disconnectDevice (  )  [pure virtual, slot]

Cancels any open connection.

Implemented in FakeEngine.

bool KMobileTools::EngineXP::implements ( const QString &  interfaceName  ) 

Checks if the engine implements a given interface.

Parameters:
interfaceName the plain name of the interface, e.g. "Status"
Returns:
true, if the engine implements the given interface

Definition at line 39 of file enginexp.cpp.


The documentation for this class was generated from the following files:
  • enginexp.h
  • enginexp.cpp

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