vdr  2.0.6
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
cThemes Class Reference

#include <themes.h>

Public Member Functions

 cThemes (void)
 
 ~cThemes ()
 
bool Load (const char *SkinName)
 
int NumThemes (void)
 
const char * Name (int Index)
 
const char * FileName (int Index)
 
const char *const * Descriptions (void)
 
int GetThemeIndex (const char *Description)
 

Static Public Member Functions

static void SetThemesDirectory (const char *ThemesDirectory)
 
static void Load (const char *SkinName, const char *ThemeName, cTheme *Theme)
 
static void Save (const char *SkinName, cTheme *Theme)
 

Private Member Functions

void Clear (void)
 

Private Attributes

int numThemes
 
char ** names
 
char ** fileNames
 
char ** descriptions
 

Static Private Attributes

static char * themesDirectory = NULL
 

Detailed Description

Definition at line 61 of file themes.h.

Constructor & Destructor Documentation

cThemes::cThemes ( void  )

Definition at line 210 of file themes.c.

References descriptions, fileNames, names, and numThemes.

cThemes::~cThemes ( )

Definition at line 218 of file themes.c.

References Clear().

Member Function Documentation

void cThemes::Clear ( void  )
private

Definition at line 223 of file themes.c.

References descriptions, fileNames, names, and numThemes.

Referenced by Load(), and ~cThemes().

const char* const* cThemes::Descriptions ( void  )
inline

Definition at line 76 of file themes.h.

References descriptions.

Referenced by cMenuSetupOSD::ProcessKey(), and cMenuSetupOSD::Set().

const char* cThemes::FileName ( int  Index)
inline

Definition at line 75 of file themes.h.

References fileNames, and numThemes.

Referenced by Load(), cMenuSetupOSD::ProcessKey(), and Save().

int cThemes::GetThemeIndex ( const char *  Description)

Definition at line 283 of file themes.c.

References descriptions, and numThemes.

Referenced by cMenuSetupOSD::cMenuSetupOSD(), and cMenuSetupOSD::ProcessKey().

bool cThemes::Load ( const char *  SkinName)
void cThemes::Load ( const char *  SkinName,
const char *  ThemeName,
cTheme Theme 
)
static

Definition at line 302 of file themes.c.

References FileName(), cTheme::Load(), cString::sprintf(), and themesDirectory.

const char* cThemes::Name ( int  Index)
inline

Definition at line 74 of file themes.h.

References names, and numThemes.

Referenced by cMenuSetupOSD::ProcessKey().

int cThemes::NumThemes ( void  )
inline

Definition at line 73 of file themes.h.

References numThemes.

Referenced by cMenuSetupOSD::ProcessKey(), and cMenuSetupOSD::Set().

void cThemes::Save ( const char *  SkinName,
cTheme Theme 
)
static

Definition at line 309 of file themes.c.

References FileName(), cTheme::Name(), cTheme::Save(), cString::sprintf(), and themesDirectory.

Referenced by cSkin::cSkin().

void cThemes::SetThemesDirectory ( const char *  ThemesDirectory)
static

Definition at line 295 of file themes.c.

References MakeDirs(), and themesDirectory.

Referenced by main().

Member Data Documentation

char** cThemes::descriptions
private

Definition at line 66 of file themes.h.

Referenced by Clear(), cThemes(), Descriptions(), GetThemeIndex(), and Load().

char** cThemes::fileNames
private

Definition at line 65 of file themes.h.

Referenced by Clear(), cThemes(), FileName(), and Load().

char** cThemes::names
private

Definition at line 64 of file themes.h.

Referenced by Clear(), cThemes(), Load(), and Name().

int cThemes::numThemes
private

Definition at line 63 of file themes.h.

Referenced by Clear(), cThemes(), FileName(), GetThemeIndex(), Load(), Name(), and NumThemes().

char * cThemes::themesDirectory = NULL
staticprivate

Definition at line 67 of file themes.h.

Referenced by Load(), Save(), and SetThemesDirectory().


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