kitchensync

KSync::ProfileManager Class Reference

#include <profilemanager.h>

List of all members.


Detailed Description

ProfileManager keeps track of the Profiles It allows you to retrieve and set the current.

remove and add new/old Profiles Load and Save from KConfig

Definition at line 38 of file profilemanager.h.


Public Member Functions

 ProfileManager ()
 ProfileManager (const Profile::List &list)
 ~ProfileManager ()
Profile currentProfile () const
void setCurrentProfile (const Profile &profile)
Profile::List profiles () const
void setProfiles (const Profile::List &list)
Profile byName (const QString &name)
Profile::List byName2 (const QString &name)
Profile profile (int index) const
int count () const
void load ()
void save ()
void addProfile (const Profile &)
void replaceProfile (const Profile &)
void removeProfile (const Profile &)

Constructor & Destructor Documentation

ProfileManager::ProfileManager (  ) 

Constructs an Empty ProfileManager.

Definition at line 26 of file profilemanager.cpp.

KSync::ProfileManager::ProfileManager ( const Profile::List list  ) 

Constructs a profile manager from a Profile List.

ProfileManager::~ProfileManager (  ) 

Destructs a profile manager.

Definition at line 35 of file profilemanager.cpp.


Member Function Documentation

Profile ProfileManager::currentProfile (  )  const

returns the current active Profile

Definition at line 39 of file profilemanager.cpp.

void ProfileManager::setCurrentProfile ( const Profile profile  ) 

sets the current Profile

Definition at line 44 of file profilemanager.cpp.

Profile::List ProfileManager::profiles (  )  const

returns a list of all active profiles

Definition at line 49 of file profilemanager.cpp.

void KSync::ProfileManager::setProfiles ( const Profile::List list  ) 

set the Manager to use a list of Profiles

Profile ProfileManager::byName ( const QString &  name  ) 

is finding a Profile by name

Definition at line 60 of file profilemanager.cpp.

Profile::List ProfileManager::byName2 ( const QString &  name  ) 

returns a profile list of of Profiles matching name

Definition at line 74 of file profilemanager.cpp.

int ProfileManager::count (  )  const

the count of elements

Definition at line 122 of file profilemanager.cpp.

void ProfileManager::load (  ) 

loads a Profile List

Definition at line 91 of file profilemanager.cpp.

void ProfileManager::save (  ) 

saves current list including current Profile

Definition at line 96 of file profilemanager.cpp.

void ProfileManager::addProfile ( const Profile  ) 

add a Profile

Definition at line 101 of file profilemanager.cpp.

void ProfileManager::replaceProfile ( const Profile  ) 

replaces a profile

Definition at line 106 of file profilemanager.cpp.

void ProfileManager::removeProfile ( const Profile  ) 

removes a Profile

Definition at line 112 of file profilemanager.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys