Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CProfile Class Reference

#include <Profile.h>

Classes

class  CLock
 Class for handling lock status. More...
 

Public Member Functions

 CProfile (const std::string &directory="", const std::string &name="", const int id=-1)
 
 ~CProfile (void)
 
void Load (const TiXmlNode *node, int nextIdProfile)
 
void Save (TiXmlNode *root) const
 
const std::string & getDate () const
 
int getId () const
 
const std::string & getName () const
 
const std::string & getDirectory () const
 
const std::string & getThumb () const
 
const std::string & getLockCode () const
 
LockType getLockMode () const
 
bool hasDatabases () const
 
bool canWriteDatabases () const
 
bool hasSources () const
 
bool canWriteSources () const
 
bool hasAddons () const
 
LOCK_LEVEL::SETTINGS_LOCK settingsLockLevel () const
 Returns which settings levels are locked for the current profile.
 
bool addonmanagerLocked () const
 
bool musicLocked () const
 
bool videoLocked () const
 
bool picturesLocked () const
 
bool filesLocked () const
 
bool programsLocked () const
 
bool gamesLocked () const
 
const CLockGetLocks () const
 
void setName (const std::string &name)
 
void setDirectory (const std::string &directory)
 
void setDate (const std::string &strDate)
 
void setDate ()
 
void setThumb (const std::string &thumb)
 
void setDatabases (bool bHas)
 
void setWriteDatabases (bool bCan)
 
void setSources (bool bHas)
 
void setWriteSources (bool bCan)
 
void SetLocks (const CLock &locks)
 

Constructor & Destructor Documentation

◆ CProfile()

CProfile::CProfile ( const std::string & directory = "",
const std::string & name = "",
const int id = -1 )

◆ ~CProfile()

CProfile::~CProfile ( void )
default

Member Function Documentation

◆ addonmanagerLocked()

bool CProfile::addonmanagerLocked ( ) const
inline

◆ canWriteDatabases()

bool CProfile::canWriteDatabases ( ) const
inline

◆ canWriteSources()

bool CProfile::canWriteSources ( ) const
inline

◆ filesLocked()

bool CProfile::filesLocked ( ) const
inline

◆ gamesLocked()

bool CProfile::gamesLocked ( ) const
inline

◆ getDate()

const std::string & CProfile::getDate ( ) const
inline

◆ getDirectory()

const std::string & CProfile::getDirectory ( ) const
inline

◆ getId()

int CProfile::getId ( ) const
inline

◆ getLockCode()

const std::string & CProfile::getLockCode ( ) const
inline

◆ getLockMode()

LockType CProfile::getLockMode ( ) const
inline

◆ GetLocks()

const CLock & CProfile::GetLocks ( ) const
inline

◆ getName()

const std::string & CProfile::getName ( ) const
inline

◆ getThumb()

const std::string & CProfile::getThumb ( ) const
inline

◆ hasAddons()

bool CProfile::hasAddons ( ) const
inline

◆ hasDatabases()

bool CProfile::hasDatabases ( ) const
inline

◆ hasSources()

bool CProfile::hasSources ( ) const
inline

◆ Load()

void CProfile::Load ( const TiXmlNode * node,
int nextIdProfile )

◆ musicLocked()

bool CProfile::musicLocked ( ) const
inline

◆ picturesLocked()

bool CProfile::picturesLocked ( ) const
inline

◆ programsLocked()

bool CProfile::programsLocked ( ) const
inline

◆ Save()

void CProfile::Save ( TiXmlNode * root) const

◆ setDatabases()

void CProfile::setDatabases ( bool bHas)
inline

◆ setDate() [1/2]

void CProfile::setDate ( )

◆ setDate() [2/2]

void CProfile::setDate ( const std::string & strDate)
inline

◆ setDirectory()

void CProfile::setDirectory ( const std::string & directory)
inline

◆ SetLocks()

void CProfile::SetLocks ( const CLock & locks)

◆ setName()

void CProfile::setName ( const std::string & name)
inline

◆ setSources()

void CProfile::setSources ( bool bHas)
inline

◆ setThumb()

void CProfile::setThumb ( const std::string & thumb)
inline

◆ settingsLockLevel()

LOCK_LEVEL::SETTINGS_LOCK CProfile::settingsLockLevel ( ) const
inline

Returns which settings levels are locked for the current profile.

See also
LOCK_LEVEL::SETTINGS_LOCK

◆ setWriteDatabases()

void CProfile::setWriteDatabases ( bool bCan)
inline

◆ setWriteSources()

void CProfile::setWriteSources ( bool bCan)
inline

◆ videoLocked()

bool CProfile::videoLocked ( ) const
inline

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