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

kmobiletools

KMobileTools::Config

KMobileTools::Config Class Reference

#include <config.h>

List of all members.


Detailed Description

Use this class to access any configuration option.

Author:
Matthias Lechner <matthias@lmme.de>

Definition at line 35 of file config.h.


Public Member Functions

void addDevice (const QString &name, const QString &engine)
QStringList deviceList () const
QString engine (const QString &deviceName)
void removeDevice (const QString &name)
 ~Config ()

Static Public Member Functions

static Config * instance ()

Constructor & Destructor Documentation

KMobileTools::Config::~Config (  ) 

Definition at line 88 of file config.cpp.


Member Function Documentation

void KMobileTools::Config::addDevice ( const QString &  name,
const QString &  engine 
)

Adds a new device with given name and associated engine to the configuration.

Parameters:
name the device name
engine the engine name

Todo:
add call to error handler here

Definition at line 98 of file config.cpp.

QStringList KMobileTools::Config::deviceList (  )  const

Returns the list of configured devices.

Returns:
the device list

Definition at line 143 of file config.cpp.

QString KMobileTools::Config::engine ( const QString &  deviceName  ) 

Returns the engine associated with the given deviceName.

Parameters:
deviceName the device name
Returns:
the engine name or an empty string if not available

Definition at line 147 of file config.cpp.

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

Returns a configuration instance.

Returns:
a config instance

Definition at line 93 of file config.cpp.

void KMobileTools::Config::removeDevice ( const QString &  name  ) 

Removes the device with given name from the configuration.

Parameters:
name the device name

Todo:
add call to error handler here

Definition at line 120 of file config.cpp.


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