#include <profilemanager.h>
Collaboration diagram for WDS::CProfileManager:
Public Member Functions | |
CProfileManager (wxFileConfig *pConfig) | |
virtual | ~CProfileManager () |
void | save () |
int | size () const |
CProfile * | GetProfile (int index) const |
int | GetIndexFromProfile (const CProfile *profile) |
bool | DeleteProfile (int index) |
bool | DeleteProfile (CProfile *p) |
bool | AddProfile (CProfile *p) |
Static Public Member Functions | |
CProfile * | GetCurrentProfile () |
void | SetCurrentProfile (CProfile *p) |
Protected Member Functions | |
void | Init () |
The CProfileManager
class provides all functions to manage profiles. Get a profile with GetProfile()
, add/delete profiles with AddProfile()
and DeleteProfile()
and save the configuration with save()
.
CProfileManager::GetCurrentProfile()
. The current profile may be NULL.
Definition at line 208 of file profilemanager.h.
|
Creates new CProfileManager and loads all profiles
Definition at line 348 of file profilemanager.cpp. References Init(). |
Here is the call graph for this function:
|
clears all profiles (all pointers) Definition at line 356 of file profilemanager.cpp. |
|
Add profile
Definition at line 473 of file profilemanager.cpp. |
|
Remove CProfile*
Definition at line 460 of file profilemanager.cpp. |
|
Remove profile with index
Definition at line 446 of file profilemanager.cpp. |
|
Definition at line 247 of file profilemanager.h. |
|
map
Definition at line 428 of file profilemanager.cpp. Referenced by save(). |
|
Definition at line 420 of file profilemanager.cpp. Referenced by WDS::CDlgProfileManager::FillListBox(), Init(), and WDS::CDlgProfileManager::OnActivateItem(). |
|
load list of profiles from the config file. Called from constructor only Definition at line 367 of file profilemanager.cpp. References GetProfile(), WDS::CProfile::Load(), and SetCurrentProfile(). Referenced by CProfileManager(). |
Here is the call graph for this function:
|
Save all profiles to the config file Definition at line 395 of file profilemanager.cpp. References GetIndexFromProfile(), and WDS::CProfile::Save(). |
Here is the call graph for this function:
|
Set current profile
Definition at line 252 of file profilemanager.h. Referenced by Init(). |
|
Definition at line 415 of file profilemanager.cpp. Referenced by WDS::CDlgProfileManager::FillListBox(), and WDS::CDlgProfileManager::OnActivateItem(). |