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

kmobiletools

KMobileTools::DeviceLoader

KMobileTools::DeviceLoader Class Reference

#include <deviceloader.h>

Inheritance diagram for KMobileTools::DeviceLoader:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Matthias Lechner <matthias@lmme.de>

Definition at line 35 of file deviceloader.h.


Public Slots

bool loadDevice (const QString &deviceName, const QString &engineName, bool loadServices=true)
bool unloadDevice (const QString &deviceName, bool unloadServices=true)

Signals

void aboutToUnloadDevice (const QString &deviceName)
void deviceLoaded (const QString &)
void deviceUnloaded (const QString &)

Public Member Functions

EngineXP * engine (const QString &deviceName) const
KPluginInfo engineInformation (const QString &deviceName) const
QStringList loadedDevices () const
 ~DeviceLoader ()

Static Public Member Functions

static DeviceLoader * instance ()

Constructor & Destructor Documentation

KMobileTools::DeviceLoader::~DeviceLoader (  ) 

Definition at line 62 of file deviceloader.cpp.


Member Function Documentation

void KMobileTools::DeviceLoader::aboutToUnloadDevice ( const QString &  deviceName  )  [signal]

void KMobileTools::DeviceLoader::deviceLoaded ( const QString &   )  [signal]

This signal is emitted when the device was successfully loaded.

void KMobileTools::DeviceLoader::deviceUnloaded ( const QString &   )  [signal]

This signal is emitted when the device was successfully unloaded.

EngineXP * KMobileTools::DeviceLoader::engine ( const QString &  deviceName  )  const

Returns the engine object associated with the given deviceName.

Parameters:
deviceName the device name
Returns:
a pointer to the engine if successful, else null

Definition at line 140 of file deviceloader.cpp.

KPluginInfo KMobileTools::DeviceLoader::engineInformation ( const QString &  deviceName  )  const

Returns information about the engine object associated with the device with given deviceName.

Parameters:
deviceName the device name
Returns:
information about the engine

Definition at line 147 of file deviceloader.cpp.

DeviceLoader * KMobileTools::DeviceLoader::instance (  )  [static]

Returns a DeviceLoader instance.

Returns:
a device loader instance

Definition at line 56 of file deviceloader.cpp.

bool KMobileTools::DeviceLoader::loadDevice ( const QString &  deviceName,
const QString &  engineName,
bool  loadServices = true 
) [slot]

Tries to load an engine that gets associated with a given device name.

Parameters:
deviceName a unique device name
engineName the engine to load
loadServices if true, all services supported by the given engine will be loaded
Returns:
true if the device was successfully loaded

Definition at line 74 of file deviceloader.cpp.

QStringList KMobileTools::DeviceLoader::loadedDevices (  )  const

Returns a list of loaded devices.

Returns:
a list of loaded devices

Definition at line 154 of file deviceloader.cpp.

bool KMobileTools::DeviceLoader::unloadDevice ( const QString &  deviceName,
bool  unloadServices = true 
) [slot]

Tries to unload the device with the given deviceName.

Parameters:
deviceName the device name
unloadServices if true, services associated with the device will be unloaded
Returns:
true if the device was successfully unloaded

Definition at line 123 of file deviceloader.cpp.


The documentation for this class was generated from the following files:
  • deviceloader.h
  • deviceloader.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