vdr  1.7.27
Public Member Functions | Public Attributes | Private Member Functions | Friends
cSetup Class Reference

#include <config.h>

List of all members.

Public Member Functions

 cSetup (void)
cSetupoperator= (const cSetup &s)
bool Load (const char *FileName)
bool Save (void)
 cSetup (void)
cSetupoperator= (const cSetup &s)
bool Load (const char *FileName)
bool Save (void)

Public Attributes

int __BeginData__
char OSDLanguage [I18N_MAX_LOCALE_LEN]
char OSDSkin [MaxSkinName]
char OSDTheme [MaxThemeName]
int PrimaryDVB
int ShowInfoOnChSwitch
int TimeoutRequChInfo
int MenuScrollPage
int MenuScrollWrap
int MenuKeyCloses
int MarkInstantRecord
char NameInstantRecord [MaxFileName]
int InstantRecordTime
int LnbSLOF
int LnbFrequLo
int LnbFrequHi
int DiSEqC
int SetSystemTime
int TimeSource
int TimeTransponder
int MarginStart
int MarginStop
int AudioLanguages [I18N_MAX_LANGUAGES+1]
int DisplaySubtitles
int SupportTeletext
int SubtitleLanguages [I18N_MAX_LANGUAGES+1]
int SubtitleOffset
int SubtitleFgTransparency
int SubtitleBgTransparency
int EPGLanguages [I18N_MAX_LANGUAGES+1]
int EPGScanTimeout
int EPGBugfixLevel
int EPGLinger
int SVDRPTimeout
int ZapTimeout
int ChannelEntryTimeout
int DefaultPriority
int DefaultLifetime
int PausePriority
int PauseLifetime
int PauseKeyHandling
int UseSubtitle
int UseVps
int VpsMargin
int RecordingDirs
int FoldersInTimerMenu
int NumberKeysForChars
int VideoDisplayFormat
int VideoFormat
int UpdateChannels
int UseDolbyDigital
int ChannelInfoPos
int ChannelInfoTime
double OSDLeftP
double OSDTopP
double OSDWidthP
double OSDHeightP
int OSDLeft
int OSDTop
int OSDWidth
int OSDHeight
double OSDAspect
int OSDMessageTime
int UseSmallFont
int AntiAlias
char FontOsd [MAXFONTNAME]
char FontSml [MAXFONTNAME]
char FontFix [MAXFONTNAME]
double FontOsdSizeP
double FontSmlSizeP
double FontFixSizeP
int FontOsdSize
int FontSmlSize
int FontFixSize
int MaxVideoFileSize
int MaxRecordingSize
int SplitEditedFiles
int DelTimeshiftRec
int HardLinkCutter
int MinEventTimeout
int MinUserInactivity
time_t NextWakeupTime
int MultiSpeedMode
int ShowReplayMode
int ShowRemainingTime
int ResumeID
int JumpPlay
int PlayJump
int PauseLastMark
int CurrentChannel
int CurrentVolume
int CurrentDolby
int InitialVolume
int ChannelsWrap
int EmergencyExit
int __EndData__
cString InitialChannel
cString DeviceBondings

Private Member Functions

void StoreLanguages (const char *Name, int *Values)
bool ParseLanguages (const char *Value, int *Values)
bool Parse (const char *Name, const char *Value)
cSetupLineGet (const char *Name, const char *Plugin=NULL)
void Store (const char *Name, const char *Value, const char *Plugin=NULL, bool AllowMultiple=false)
void Store (const char *Name, int Value, const char *Plugin=NULL)
void Store (const char *Name, double &Value, const char *Plugin=NULL)
void StoreLanguages (const char *Name, int *Values)
bool ParseLanguages (const char *Value, int *Values)
bool Parse (const char *Name, const char *Value)
cSetupLineGet (const char *Name, const char *Plugin=NULL)
void Store (const char *Name, const char *Value, const char *Plugin=NULL, bool AllowMultiple=false)
void Store (const char *Name, int Value, const char *Plugin=NULL)
void Store (const char *Name, double &Value, const char *Plugin=NULL)

Friends

class cPlugin

Detailed Description

Definition at line 235 of file config.h.


Constructor & Destructor Documentation

cSetup::cSetup ( void  )

Definition at line 374 of file config.c.

References AntiAlias, AudioLanguages, ChannelEntryTimeout, ChannelInfoPos, ChannelInfoTime, ChannelsWrap, CurrentChannel, CurrentDolby, CurrentVolume, DefaultFontFix, DefaultFontOsd, DefaultFontSml, DefaultLifetime, DefaultPriority, DEFAULTRECORDINGSIZE, DelTimeshiftRec, DeviceBondings, DiSEqC, DisplaySubtitles, EmergencyExit, EPGBugfixLevel, EPGLanguages, EPGLinger, EPGScanTimeout, FoldersInTimerMenu, FontFix, FontFixSize, FontFixSizeP, FontOsd, FontOsdSize, FontOsdSizeP, FontSml, FontSmlSize, FontSmlSizeP, HardLinkCutter, InitialChannel, InitialVolume, InstantRecordTime, JumpPlay, LnbFrequHi, LnbFrequLo, LnbSLOF, MarginStart, MarginStop, MarkInstantRecord, MAXLIFETIME, MaxRecordingSize, MaxVideoFileSize, MAXVIDEOFILESIZEDEFAULT, MAXVOLUME, MenuKeyCloses, MenuScrollPage, MenuScrollWrap, MinEventTimeout, MinUserInactivity, MultiSpeedMode, NameInstantRecord, NextWakeupTime, NumberKeysForChars, OSDAspect, OSDHeight, OSDHeightP, OSDLanguage, OSDLeft, OSDLeftP, OSDMessageTime, OSDSkin, OSDTheme, OSDTop, OSDTopP, OSDWidth, OSDWidthP, PauseKeyHandling, PauseLastMark, PauseLifetime, PausePriority, PlayJump, PrimaryDVB, RecordingDirs, ResumeID, SetSystemTime, ShowInfoOnChSwitch, ShowRemainingTime, ShowReplayMode, SplitEditedFiles, SubtitleBgTransparency, SubtitleFgTransparency, SubtitleLanguages, SubtitleOffset, SupportTeletext, SVDRPTimeout, TimeoutRequChInfo, TimeSource, TimeTransponder, UpdateChannels, UseDolbyDigital, UseSmallFont, UseSubtitle, UseVps, VideoDisplayFormat, VideoFormat, VpsMargin, and ZapTimeout.

cSetup::cSetup ( void  )

Member Function Documentation

cSetupLine * cSetup::Get ( const char *  Name,
const char *  Plugin = NULL 
) [private]

Definition at line 482 of file config.c.

References cList< cSetupLine >::First(), and cList< cSetupLine >::Next().

Referenced by Store().

cSetupLine* cSetup::Get ( const char *  Name,
const char *  Plugin = NULL 
) [private]
bool cSetup::Load ( const char *  FileName)
bool cSetup::Load ( const char *  FileName)
cSetup& cSetup::operator= ( const cSetup s)
cSetup & cSetup::operator= ( const cSetup s)

Definition at line 474 of file config.c.

References __BeginData__, __EndData__, DeviceBondings, and InitialChannel.

bool cSetup::Parse ( const char *  Name,
const char *  Value 
) [private]

Definition at line 574 of file config.c.

References AntiAlias, AudioLanguages, ChannelEntryTimeout, ChannelInfoPos, ChannelInfoTime, ChannelsWrap, ChkDoublePlausibility, CurrentChannel, CurrentDolby, CurrentVolume, DefaultLifetime, DefaultPriority, DelTimeshiftRec, DeviceBondings, DiSEqC, DisplaySubtitles, EmergencyExit, EPGBugfixLevel, EPGLanguages, EPGLinger, EPGScanTimeout, FoldersInTimerMenu, FontFix, FontFixSize, FontFixSizeP, FontOsd, FontOsdSize, FontOsdSizeP, FontSml, FontSmlSize, FontSmlSizeP, cSource::FromString(), HardLinkCutter, I18nSetLocale(), InitialChannel, InitialVolume, InstantRecordTime, JumpPlay, LnbFrequHi, LnbFrequLo, LnbSLOF, MarginStart, MarginStop, MarkInstantRecord, MaxFileName, MAXFONTNAME, MaxRecordingSize, MaxSkinName, MaxThemeName, MaxVideoFileSize, MenuKeyCloses, MenuScrollPage, MenuScrollWrap, MinEventTimeout, MinUserInactivity, MultiSpeedMode, NameInstantRecord, NextWakeupTime, NumberKeysForChars, OSDAspect, OSDHeight, OSDHeightP, OSDLanguage, OSDLeft, OSDLeftP, OSDMessageTime, OSDSkin, OSDTheme, OSDTop, OSDTopP, OSDWidth, OSDWidthP, ParseLanguages(), PauseKeyHandling, PauseLastMark, PauseLifetime, PausePriority, PlayJump, PrimaryDVB, RecordingDirs, ResumeID, SetSystemTime, ShowInfoOnChSwitch, ShowRemainingTime, ShowReplayMode, SplitEditedFiles, strn0cpy(), SubtitleBgTransparency, SubtitleFgTransparency, SubtitleLanguages, SubtitleOffset, SupportTeletext, SVDRPTimeout, TimeoutRequChInfo, TimeSource, TimeTransponder, UpdateChannels, UseDolbyDigital, UseSmallFont, UseSubtitle, UseVps, Utf8Strn0Cpy(), VideoDisplayFormat, VideoFormat, VpsMargin, and ZapTimeout.

Referenced by Load().

bool cSetup::Parse ( const char *  Name,
const char *  Value 
) [private]
bool cSetup::ParseLanguages ( const char *  Value,
int *  Values 
) [private]

Definition at line 558 of file config.c.

References I18nLanguageIndex(), I18nLanguages(), and strn0cpy().

Referenced by Parse().

bool cSetup::ParseLanguages ( const char *  Value,
int *  Values 
) [private]
bool cSetup::Save ( void  )

Reimplemented from cConfig< cSetupLine >.

Definition at line 677 of file config.c.

References AntiAlias, AudioLanguages, ChannelEntryTimeout, ChannelInfoPos, ChannelInfoTime, ChannelsWrap, CurrentChannel, CurrentDolby, CurrentVolume, DefaultLifetime, DefaultPriority, DelTimeshiftRec, DeviceBondings, DiSEqC, DisplaySubtitles, EmergencyExit, EPGBugfixLevel, EPGLanguages, EPGLinger, EPGScanTimeout, cConfig< cSetupLine >::FileName(), FoldersInTimerMenu, FontFix, FontFixSize, FontFixSizeP, FontOsd, FontOsdSize, FontOsdSizeP, FontSml, FontSmlSize, FontSmlSizeP, HardLinkCutter, InitialChannel, InitialVolume, InstantRecordTime, isyslog, JumpPlay, LnbFrequHi, LnbFrequLo, LnbSLOF, MarginStart, MarginStop, MarkInstantRecord, MaxRecordingSize, MaxVideoFileSize, MenuKeyCloses, MenuScrollPage, MenuScrollWrap, MinEventTimeout, MinUserInactivity, MultiSpeedMode, NameInstantRecord, NextWakeupTime, NumberKeysForChars, OSDAspect, OSDHeight, OSDHeightP, OSDLanguage, OSDLeft, OSDLeftP, OSDMessageTime, OSDSkin, OSDTheme, OSDTop, OSDTopP, OSDWidth, OSDWidthP, PauseKeyHandling, PauseLastMark, PauseLifetime, PausePriority, PlayJump, PrimaryDVB, RecordingDirs, ResumeID, SetSystemTime, ShowInfoOnChSwitch, ShowRemainingTime, ShowReplayMode, cListBase::Sort(), SplitEditedFiles, Store(), StoreLanguages(), SubtitleBgTransparency, SubtitleFgTransparency, SubtitleLanguages, SubtitleOffset, SupportTeletext, SVDRPTimeout, TimeoutRequChInfo, TimeSource, TimeTransponder, cSource::ToString(), UpdateChannels, UseDolbyDigital, UseSmallFont, UseSubtitle, UseVps, VideoDisplayFormat, VideoFormat, VpsMargin, and ZapTimeout.

Referenced by cShutdownHandler::CallShutdownCommand(), main(), and cMenuSetupBase::Store().

bool cSetup::Save ( void  )

Reimplemented from cConfig< cSetupLine >.

void cSetup::Store ( const char *  Name,
const char *  Value,
const char *  Plugin = NULL,
bool  AllowMultiple = false 
) [private]
void cSetup::Store ( const char *  Name,
const char *  Value,
const char *  Plugin = NULL,
bool  AllowMultiple = false 
) [private]

Definition at line 493 of file config.c.

References cListBase::Add(), cListBase::Del(), and Get().

Referenced by Save(), cPlugin::SetupStore(), Store(), and StoreLanguages().

void cSetup::Store ( const char *  Name,
int  Value,
const char *  Plugin = NULL 
) [private]
void cSetup::Store ( const char *  Name,
int  Value,
const char *  Plugin = NULL 
) [private]

Definition at line 504 of file config.c.

References cString::sprintf(), and Store().

void cSetup::Store ( const char *  Name,
double &  Value,
const char *  Plugin = NULL 
) [private]

Definition at line 509 of file config.c.

References cString::sprintf(), and Store().

void cSetup::Store ( const char *  Name,
double &  Value,
const char *  Plugin = NULL 
) [private]
void cSetup::StoreLanguages ( const char *  Name,
int *  Values 
) [private]

Definition at line 539 of file config.c.

References I18nLanguageCode(), I18nLanguages(), cVector< T >::Size(), and Store().

Referenced by Save().

void cSetup::StoreLanguages ( const char *  Name,
int *  Values 
) [private]

Friends And Related Function Documentation

cPlugin [friend]

Definition at line 236 of file config.h.


Member Data Documentation

Definition at line 247 of file config.h.

Referenced by operator=().

Definition at line 331 of file config.h.

Referenced by operator=().

Definition at line 295 of file config.h.

Referenced by cSetup(), Parse(), cDisplayChannel::ProcessKey(), Save(), and cMenuSetupOSD::Set().

Definition at line 325 of file config.h.

Referenced by cSetup(), main(), Parse(), and Save().

Definition at line 327 of file config.h.

Referenced by cSetup(), cDevice::EnsureAudioTrack(), Parse(), cDisplayTracks::ProcessKey(), and Save().

Definition at line 326 of file config.h.

Referenced by cDevice::cDevice(), cSetup(), main(), Parse(), Save(), and cDevice::SetPrimaryDevice().

Definition at line 281 of file config.h.

Referenced by cMenuSetupRecord::cMenuSetupRecord(), cSetup(), cTimer::cTimer(), Parse(), and Save().

Definition at line 275 of file config.h.

Referenced by cSetup(), Parse(), cEITScanner::Process(), Save(), and cMenuSetupEPG::Setup().

Definition at line 288 of file config.h.

Referenced by cSetup(), Parse(), Save(), cMenuTimerItem::Set(), and cMenuSetupOSD::Set().

Definition at line 310 of file config.h.

Referenced by cSetup(), cFont::GetFont(), Parse(), Save(), and cOsdProvider::UpdateOsdSize().

Definition at line 332 of file config.h.

Referenced by cMenuSetupMisc::cMenuSetupMisc(), cSetup(), main(), operator=(), Parse(), and Save().

Definition at line 328 of file config.h.

Referenced by cMenuSetupMisc::cMenuSetupMisc(), cSetup(), main(), Parse(), and Save().

Definition at line 259 of file config.h.

Referenced by cMenuSetupRecord::cMenuSetupRecord(), cSetup(), cTimer::cTimer(), Parse(), and Save().

Definition at line 262 of file config.h.

Referenced by cSetup(), Parse(), Save(), cDvbTuner::SetFrontend(), and cMenuSetupLNB::Setup().

Definition at line 261 of file config.h.

Referenced by cSetup(), Parse(), Save(), cDvbTuner::SetFrontend(), and cMenuSetupLNB::Setup().

Definition at line 267 of file config.h.

Referenced by cMenuSetupRecord::cMenuSetupRecord(), cSetup(), cTimer::cTimer(), Parse(), and Save().

Definition at line 267 of file config.h.

Referenced by cMenuSetupRecord::cMenuSetupRecord(), cSetup(), cTimer::cTimer(), Parse(), and Save().

Definition at line 257 of file config.h.

Referenced by cMenuSetupRecord::cMenuSetupRecord(), cSetup(), cTimer::cTimer(), Parse(), and Save().

Definition at line 256 of file config.h.

Referenced by cSetup(), main(), Parse(), Save(), and cMenuSetupOSD::Set().

Definition at line 258 of file config.h.

Referenced by cMenuSetupRecord::cMenuSetupRecord(), cSetup(), cTimer::cTimer(), Parse(), and Save().

Definition at line 289 of file config.h.

Referenced by cSetup(), Parse(), cMenuEditStrItem::ProcessKey(), Save(), and cMenuSetupOSD::Set().

Definition at line 298 of file config.h.

Referenced by cSetup(), Parse(), Save(), and cOsdProvider::UpdateOsdSize().

Definition at line 297 of file config.h.

Referenced by cSetup(), cOsd::OsdHeight(), Parse(), Save(), and cOsdProvider::UpdateOsdSize().

Definition at line 248 of file config.h.

Referenced by cSetup(), Parse(), cMenuSetupOSD::ProcessKey(), and Save().

Definition at line 297 of file config.h.

Referenced by cSetup(), cOsd::OsdLeft(), Parse(), Save(), and cOsdProvider::UpdateOsdSize().

Definition at line 299 of file config.h.

Referenced by cSetup(), Parse(), Save(), cMenuSetupOSD::Set(), and cInterface::Wait().

Definition at line 249 of file config.h.

Referenced by cSetup(), main(), Parse(), cMenuSetupOSD::ProcessKey(), and Save().

Definition at line 250 of file config.h.

Referenced by cSetup(), main(), Parse(), cMenuSetupOSD::ProcessKey(), and Save().

Definition at line 297 of file config.h.

Referenced by cSetup(), cOsd::OsdTop(), Parse(), Save(), and cOsdProvider::UpdateOsdSize().

Definition at line 297 of file config.h.

Referenced by cSetup(), cOsd::OsdWidth(), Parse(), Save(), and cOsdProvider::UpdateOsdSize().

Definition at line 283 of file config.h.

Referenced by cMenuSetupRecord::cMenuSetupRecord(), cSetup(), main(), Parse(), and Save().

Definition at line 324 of file config.h.

Referenced by cDvbPlayer::Action(), cMenuSetupReplay::cMenuSetupReplay(), cSetup(), Parse(), and Save().

Definition at line 282 of file config.h.

Referenced by cMenuSetupRecord::cMenuSetupRecord(), cSetup(), cTimer::cTimer(), Parse(), and Save().

Definition at line 251 of file config.h.

Referenced by cSetup(), main(), Parse(), Save(), and cMenuSetupDVB::Setup().

Definition at line 287 of file config.h.

Referenced by cMenuRecordings::cMenuRecordings(), cSetup(), Parse(), Save(), and cMenuSetupOSD::Set().

Definition at line 252 of file config.h.

Referenced by cDisplayChannel::cDisplayChannel(), cSetup(), Parse(), Save(), and cMenuSetupOSD::Set().

Definition at line 272 of file config.h.

Referenced by cDvbSubtitleConverter::AssertOsd(), cSetup(), Parse(), Save(), and cMenuSetupDVB::Setup().

Definition at line 278 of file config.h.

Referenced by cMenuSetupMisc::cMenuSetupMisc(), cSetup(), Parse(), cSVDRP::Process(), and Save().

Definition at line 253 of file config.h.

Referenced by cDisplayChannel::cDisplayChannel(), cSetup(), Parse(), Save(), and cMenuSetupOSD::Set().

Definition at line 265 of file config.h.

Referenced by cSetup(), Parse(), Save(), and cMenuSetupEPG::Setup().

Definition at line 285 of file config.h.

Referenced by cMenuSetupRecord::cMenuSetupRecord(), cSetup(), cTimer::cTimer(), Parse(), and Save().

Definition at line 286 of file config.h.

Referenced by cMenuSetupRecord::cMenuSetupRecord(), cSetup(), main(), Parse(), and Save().

Definition at line 279 of file config.h.

Referenced by cMenuSetupMisc::cMenuSetupMisc(), cSetup(), main(), Parse(), and Save().


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