Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::ProfileManager Class Reference

#include "OVR_Profile.h"

Inheritance diagram for OVR::ProfileManager:
Inheritance graph
Collaboration diagram for OVR::ProfileManager:
Collaboration graph

Public Member Functions

int GetUserCount ()
 
const char * GetUser (unsigned int index)
 
bool CreateUser (const char *user, const char *name)
 
bool RemoveUser (const char *user)
 
const char * GetDefaultUser (const DeviceBase *device)
 
bool SetDefaultUser (const DeviceBase *device, const char *user)
 
virtual ProfileCreateProfile ()
 
ProfileGetProfile (const DeviceBase *device, const char *user)
 
ProfileGetDefaultProfile (const DeviceBase *device)
 
ProfileGetTaggedProfile (const char **key_names, const char **keys, int num_keys)
 
bool SetTaggedProfile (const char **key_names, const char **keys, int num_keys, Profile *profile)
 
bool GetDeviceTags (const DeviceBase *device, String &product, String &serial)
 
- Public Member Functions inherited from OVR::RefCountBase< ProfileManager >
OVR_FORCE_INLINE RefCountBase ()
 
- Public Member Functions inherited from OVR::RefCountBaseStatImpl< RefCountImpl >
 RefCountBaseStatImpl ()
 
- Public Member Functions inherited from OVR::RefCountImpl
void AddRef ()
 
void Release ()
 
- Public Member Functions inherited from OVR::RefCountImplCore
OVR_FORCE_INLINE RefCountImplCore ()
 
virtual ~RefCountImplCore ()
 
int GetRefCount () const
 
void operator= (const RefCountImplCore &)
 

Static Public Member Functions

static ProfileManagerCreate ()
 
- Static Public Member Functions inherited from OVR::RefCountImplCore
static void checkInvalidDelete (RefCountImplCore *)
 

Protected Member Functions

 ProfileManager ()
 
 ~ProfileManager ()
 
String GetProfilePath (bool create_dir)
 
void LoadCache (bool create)
 
void ClearCache ()
 
void LoadV1Profiles (JSON *v1)
 

Protected Attributes

Lock ProfileLock
 
Ptr< JSONProfileCache
 
bool Changed
 
String TempBuff
 
- Protected Attributes inherited from OVR::RefCountImplCore
volatile int RefCount
 

Detailed Description

Definition at line 67 of file OVR_Profile.h.

Constructor & Destructor Documentation

OVR::ProfileManager::ProfileManager ( )
protected

Definition at line 263 of file OVR_Profile.cpp.

OVR::ProfileManager::~ProfileManager ( )
protected

Definition at line 268 of file OVR_Profile.cpp.

Member Function Documentation

void OVR::ProfileManager::ClearCache ( )
protected

Definition at line 279 of file OVR_Profile.cpp.

ProfileManager * OVR::ProfileManager::Create ( )
static

Definition at line 273 of file OVR_Profile.cpp.

Profile * OVR::ProfileManager::CreateProfile ( )
virtual

Definition at line 674 of file OVR_Profile.cpp.

bool OVR::ProfileManager::CreateUser ( const char *  user,
const char *  name 
)

Definition at line 534 of file OVR_Profile.cpp.

Profile * OVR::ProfileManager::GetDefaultProfile ( const DeviceBase device)

Definition at line 292 of file OVR_Profile.cpp.

const char * OVR::ProfileManager::GetDefaultUser ( const DeviceBase device)

Definition at line 681 of file OVR_Profile.cpp.

bool OVR::ProfileManager::GetDeviceTags ( const DeviceBase device,
String product,
String serial 
)

Definition at line 140 of file OVR_Profile.cpp.

Profile * OVR::ProfileManager::GetProfile ( const DeviceBase device,
const char *  user 
)

Definition at line 919 of file OVR_Profile.cpp.

String OVR::ProfileManager::GetProfilePath ( bool  create_dir)
protected

Definition at line 133 of file OVR_Profile.cpp.

Profile * OVR::ProfileManager::GetTaggedProfile ( const char **  key_names,
const char **  keys,
int  num_keys 
)

Definition at line 747 of file OVR_Profile.cpp.

const char * OVR::ProfileManager::GetUser ( unsigned int  index)

Definition at line 597 of file OVR_Profile.cpp.

int OVR::ProfileManager::GetUserCount ( )

Definition at line 516 of file OVR_Profile.cpp.

void OVR::ProfileManager::LoadCache ( bool  create)
protected

Definition at line 321 of file OVR_Profile.cpp.

void OVR::ProfileManager::LoadV1Profiles ( JSON v1)
protected

Definition at line 384 of file OVR_Profile.cpp.

bool OVR::ProfileManager::RemoveUser ( const char *  user)

Definition at line 629 of file OVR_Profile.cpp.

bool OVR::ProfileManager::SetDefaultUser ( const DeviceBase device,
const char *  user 
)

Definition at line 720 of file OVR_Profile.cpp.

bool OVR::ProfileManager::SetTaggedProfile ( const char **  key_names,
const char **  keys,
int  num_keys,
Profile profile 
)

Definition at line 787 of file OVR_Profile.cpp.

Field Documentation

bool OVR::ProfileManager::Changed
protected

Definition at line 74 of file OVR_Profile.h.

Ptr<JSON> OVR::ProfileManager::ProfileCache
protected

Definition at line 73 of file OVR_Profile.h.

Lock OVR::ProfileManager::ProfileLock
protected

Definition at line 72 of file OVR_Profile.h.

String OVR::ProfileManager::TempBuff
protected

Definition at line 75 of file OVR_Profile.h.


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