KDE PIM / Developers / API Docs / kitchensync

KSync::ProfileManager Class Reference

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

#include <profilemanager.h>

List of all members.

Public Member Functions


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


Constructor & Destructor Documentation

ProfileManager::ProfileManager (   ) 
 

Constructs an Empty ProfileManager.

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

Constructs a profile manager from a Profile List.

ProfileManager::~ProfileManager (   ) 
 

Destructs a profile manager.


Member Function Documentation

Profile ProfileManager::currentProfile (   )  const
 

returns the current active Profile

void ProfileManager::setCurrentProfile (  const Profile &  profile  ) 
 

sets the current Profile

Profile::List ProfileManager::profiles (   )  const
 

returns a list of all active profiles

void 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

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

returns a profile list of of Profiles matching name

int ProfileManager::count (   )  const
 

the count of elements

void ProfileManager::load (   ) 
 

loads a Profile List

void ProfileManager::save (   ) 
 

saves current list including current Profile

void ProfileManager::addProfile (  const Profile &   ) 
 

add a Profile

void ProfileManager::replaceProfile (  const Profile &   ) 
 

replaces a profile

void ProfileManager::removeProfile (  const Profile &   ) 
 

removes a Profile


The documentation for this class was generated from the following files: