mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
Neutrino: rework COnOffNotifier and use it if possible, ported from tuxbox cvs
This commit is contained in:
@@ -55,22 +55,16 @@ class CGenericMenuActivate
|
||||
};
|
||||
|
||||
class COnOffNotifier : public CChangeObserver
|
||||
{
|
||||
private:
|
||||
int number;
|
||||
CMenuItem* toDisable[5];
|
||||
public:
|
||||
COnOffNotifier (CMenuItem* a1,CMenuItem* a2 = NULL,CMenuItem* a3 = NULL,CMenuItem* a4 = NULL,CMenuItem* a5 = NULL);
|
||||
bool changeNotify(const neutrino_locale_t, void *Data);
|
||||
};
|
||||
|
||||
class CMiscNotifier : public CChangeObserver
|
||||
{
|
||||
private:
|
||||
CMenuItem* toDisable[2];
|
||||
int offValue;
|
||||
std::vector<CMenuItem*> toDisable;
|
||||
|
||||
public:
|
||||
CMiscNotifier( CMenuItem*, CMenuItem* );
|
||||
bool changeNotify(const neutrino_locale_t, void *);
|
||||
COnOffNotifier(int OffValue = 0);
|
||||
bool changeNotify(const neutrino_locale_t, void *Data);
|
||||
|
||||
void addItem(CMenuItem* menuItem);
|
||||
};
|
||||
|
||||
class CSectionsdConfigNotifier : public CChangeObserver
|
||||
|
Reference in New Issue
Block a user