vdr 2.6.9
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::cThemes ( void )

Definition at line 210 of file themes.c.

References descriptions, fileNames, names, and numThemes.

◆ ~cThemes()

cThemes::~cThemes ( )

Definition at line 218 of file themes.c.

References Clear().

Member Function Documentation

◆ Clear()

void cThemes::Clear ( void )
private

Definition at line 223 of file themes.c.

References descriptions, fileNames, names, and numThemes.

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

◆ Descriptions()

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

Definition at line 76 of file themes.h.

References descriptions.

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

◆ FileName()

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

Definition at line 75 of file themes.h.

References fileNames, and numThemes.

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

◆ GetThemeIndex()

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().

◆ Load() [1/2]

bool cThemes::Load ( const char * SkinName)

◆ Load() [2/2]

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(), Theme, and themesDirectory.

◆ Name()

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

Definition at line 74 of file themes.h.

References names, and numThemes.

Referenced by cMenuSetupOSD::ProcessKey().

◆ NumThemes()

int cThemes::NumThemes ( void )
inline

Definition at line 73 of file themes.h.

References numThemes.

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

◆ Save()

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(), Theme, and themesDirectory.

Referenced by cSkin::cSkin().

◆ SetThemesDirectory()

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

◆ descriptions

char** cThemes::descriptions
private

Definition at line 66 of file themes.h.

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

◆ fileNames

char** cThemes::fileNames
private

Definition at line 65 of file themes.h.

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

◆ names

char** cThemes::names
private

Definition at line 64 of file themes.h.

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

◆ numThemes

int cThemes::numThemes
private

Definition at line 63 of file themes.h.

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

◆ themesDirectory

char * cThemes::themesDirectory = NULL
staticprivate

Definition at line 67 of file themes.h.

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


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