|
SASC
DVBSoftCAM
|
Inheritance diagram for cOptMInt:Public Member Functions | |
| cOptMInt (const char *Name, const char *Title, int *Storage, int Size, int Mode) | |
| virtual | ~cOptMInt () |
| virtual void | Parse (const char *Value) |
| virtual void | Backup (void) |
| virtual bool | Set (void) |
| virtual void | Store (const char *PreStr) |
| virtual void | Create (cOsdMenu *menu) |
| cOptMInt (const char *Name, const char *Title, int *Storage, int Size, int Mode) | |
| virtual | ~cOptMInt () |
| virtual void | Parse (const char *Value) |
| virtual void | Backup (void) |
| virtual bool | Set (void) |
| virtual void | Store (const char *PreStr) |
| virtual void | Create (cOsdMenu *menu) |
Protected Attributes | |
| int * | storage |
| int * | value |
| int | size |
| int | mode |
| int | len |
| cOptMInt::cOptMInt | ( | const char * | Name, |
| const char * | Title, | ||
| int * | Storage, | ||
| int | Size, | ||
| int | Mode | ||
| ) |
| cOptMInt::~cOptMInt | ( | ) | [virtual] |
| cOptMInt::cOptMInt | ( | const char * | Name, |
| const char * | Title, | ||
| int * | Storage, | ||
| int | Size, | ||
| int | Mode | ||
| ) |
| virtual cOptMInt::~cOptMInt | ( | ) | [virtual] |
| void cOptMInt::Backup | ( | void | ) | [virtual] |
| virtual void cOptMInt::Backup | ( | void | ) | [virtual] |
Implements cOpt.
| void cOptMInt::Create | ( | cOsdMenu * | menu | ) | [virtual] |
Implements cOpt.
Definition at line 452 of file sc.c.
References cOsdMenu::Add(), i, mode, size, cOpt::title, tr, and value.
{
for(int i=0; i<size; i++) {
const char *buff=tr(title);
switch(mode) {
case 0: menu->Add(new cMenuEditCapItem(buff,&value[i])); break;
case 1: menu->Add(new cMenuEditIntItem(buff,&value[i],0,65535)); break;
case 2: menu->Add(new cMenuEditHexItem(buff,&value[i],0,65535)); break;
}
if(value[i]==0) break;
}
}
| virtual void cOptMInt::Parse | ( | const char * | Value | ) | [virtual] |
Implements cOpt.
| void cOptMInt::Parse | ( | const char * | Value | ) | [virtual] |
| virtual bool cOptMInt::Set | ( | void | ) | [virtual] |
Implements cOpt.
| bool cOptMInt::Set | ( | void | ) | [virtual] |
| void cOptMInt::Store | ( | const char * | PreStr | ) | [virtual] |
Implements cOpt.
Definition at line 443 of file sc.c.
References b, cOpt::FullName(), i, mode, cPlugin::SetupStore(), size, and storage.
| virtual void cOptMInt::Store | ( | const char * | PreStr | ) | [virtual] |
Implements cOpt.
int cOptMInt::len [protected] |
int cOptMInt::mode [protected] |
int cOptMInt::size [protected] |
int * cOptMInt::storage [protected] |
int * cOptMInt::value [protected] |
Definition at line 389 of file sc.c.
Referenced by Backup(), cOptMInt(), Create(), Set(), and ~cOptMInt().