#include <OVR_Profile.h>
Public Member Functions | |
bool | Delete (const Profile *profile) |
const char * | GetDefaultProfileName (ProfileType device) |
Profile * | GetDeviceDefaultProfile (ProfileType device) |
int | GetProfileCount (ProfileType device) |
const char * | GetProfileName (ProfileType device, unsigned int index) |
bool | HasProfile (ProfileType device, const char *name) |
Profile * | LoadProfile (ProfileType device, unsigned int index) |
Profile * | LoadProfile (ProfileType device, const char *name) |
bool | Save (const Profile *profile) |
bool | SetDefaultProfileName (ProfileType device, const char *name) |
Static Public Member Functions | |
static ProfileManager * | Create () |
Protected Member Functions | |
void | ClearCache () |
Profile * | CreateProfileObject (const char *user, ProfileType device, const char **device_name) |
void | LoadCache (ProfileType device) |
ProfileManager () | |
void | SaveCache () |
~ProfileManager () | |
Protected Attributes | |
ProfileType | CacheDevice |
bool | Changed |
String | DefaultProfile |
char | NameBuff [32] |
Array< Ptr< Profile > > | ProfileCache |
Lock | ProfileLock |
Definition at line 61 of file OVR_Profile.h.
OVR::ProfileManager::ProfileManager | ( | ) | [protected] |
Definition at line 124 of file OVR_Profile.cpp.
OVR::ProfileManager::~ProfileManager | ( | ) | [protected] |
Definition at line 130 of file OVR_Profile.cpp.
void OVR::ProfileManager::ClearCache | ( | ) | [protected] |
Definition at line 167 of file OVR_Profile.cpp.
ProfileManager * OVR::ProfileManager::Create | ( | ) | [static] |
Definition at line 139 of file OVR_Profile.cpp.
Profile * OVR::ProfileManager::CreateProfileObject | ( | const char * | user, |
ProfileType | device, | ||
const char ** | device_name | ||
) | [protected] |
Definition at line 144 of file OVR_Profile.cpp.
bool OVR::ProfileManager::Delete | ( | const Profile * | profile | ) |
Definition at line 514 of file OVR_Profile.cpp.
const char * OVR::ProfileManager::GetDefaultProfileName | ( | ProfileType | device | ) |
Definition at line 429 of file OVR_Profile.cpp.
Definition at line 422 of file OVR_Profile.cpp.
int OVR::ProfileManager::GetProfileCount | ( | ProfileType | device | ) |
Definition at line 327 of file OVR_Profile.cpp.
const char * OVR::ProfileManager::GetProfileName | ( | ProfileType | device, |
unsigned int | index | ||
) |
Definition at line 340 of file OVR_Profile.cpp.
bool OVR::ProfileManager::HasProfile | ( | ProfileType | device, |
const char * | name | ||
) |
Definition at line 359 of file OVR_Profile.cpp.
void OVR::ProfileManager::LoadCache | ( | ProfileType | device | ) | [protected] |
Definition at line 180 of file OVR_Profile.cpp.
Profile * OVR::ProfileManager::LoadProfile | ( | ProfileType | device, |
unsigned int | index | ||
) |
Definition at line 378 of file OVR_Profile.cpp.
Profile * OVR::ProfileManager::LoadProfile | ( | ProfileType | device, |
const char * | name | ||
) |
Definition at line 399 of file OVR_Profile.cpp.
bool OVR::ProfileManager::Save | ( | const Profile * | profile | ) |
Definition at line 470 of file OVR_Profile.cpp.
void OVR::ProfileManager::SaveCache | ( | ) | [protected] |
Definition at line 266 of file OVR_Profile.cpp.
bool OVR::ProfileManager::SetDefaultProfileName | ( | ProfileType | device, |
const char * | name | ||
) |
Definition at line 448 of file OVR_Profile.cpp.
ProfileType OVR::ProfileManager::CacheDevice [protected] |
Definition at line 68 of file OVR_Profile.h.
bool OVR::ProfileManager::Changed [protected] |
Definition at line 70 of file OVR_Profile.h.
String OVR::ProfileManager::DefaultProfile [protected] |
Definition at line 69 of file OVR_Profile.h.
char OVR::ProfileManager::NameBuff[32] [protected] |
Definition at line 71 of file OVR_Profile.h.
Array<Ptr<Profile> > OVR::ProfileManager::ProfileCache [protected] |
Definition at line 67 of file OVR_Profile.h.
Lock OVR::ProfileManager::ProfileLock [protected] |
Definition at line 66 of file OVR_Profile.h.