SASC-NG
DVBSoftCAM

cOsdItem Class Reference

#include <osdbase.h>

Inheritance diagram for cOsdItem:

List of all members.

Public Member Functions

 cOsdItem (eOSState State=osUnknown)
 cOsdItem (const char *Text, eOSState State=osUnknown, bool Selectable=true)
virtual ~cOsdItem ()
bool Selectable (void)
void SetText (const char *Text, bool Copy=true)
void SetSelectable (bool Selectable)
void SetFresh (bool Fresh)
const char * Text (void)
virtual void Set (void)
virtual eOSState ProcessKey (eKeys Key)

Protected Attributes

bool fresh

Detailed Description

Definition at line 49 of file osdbase.h.


Constructor & Destructor Documentation

cOsdItem::cOsdItem ( eOSState  State = osUnknown)

Definition at line 19 of file osdbase.cpp.

References fresh, and NULL.

{
  text = NULL;
  state = State;
  selectable = true;
  fresh = true;
}
cOsdItem::cOsdItem ( const char *  Text,
eOSState  State = osUnknown,
bool  Selectable = true 
)

Definition at line 27 of file osdbase.cpp.

References fresh, NULL, Selectable(), and SetText().

{
  text = NULL;
  state = State;
  selectable = Selectable;
  fresh = true;
  SetText(Text);
}
cOsdItem::~cOsdItem ( ) [virtual]

Definition at line 36 of file osdbase.cpp.

References free.

{
  free(text);
}

Member Function Documentation

eOSState cOsdItem::ProcessKey ( eKeys  Key) [virtual]
bool cOsdItem::Selectable ( void  ) [inline]

Definition at line 60 of file osdbase.h.

Referenced by cOsdItem(), and SetSelectable().

{ return selectable; }
virtual void cOsdItem::Set ( void  ) [inline, virtual]
void cOsdItem::SetFresh ( bool  Fresh)

Definition at line 52 of file osdbase.cpp.

References fresh.

{
  fresh = Fresh;
}
void cOsdItem::SetSelectable ( bool  Selectable)

Definition at line 47 of file osdbase.cpp.

References Selectable().

Referenced by cScInfoItem::cScInfoItem().

{
  selectable = Selectable;
}
void cOsdItem::SetText ( const char *  Text,
bool  Copy = true 
)

Definition at line 41 of file osdbase.cpp.

References free.

Referenced by cLogModItem::cLogModItem(), cOsdItem(), and cMenuEditItem::SetValue().

{
  free(text);
  text = Copy ? strdup(Text) : (char *)Text; // text assumes ownership!
}
const char* cOsdItem::Text ( void  ) [inline]

Definition at line 64 of file osdbase.h.

{ return text; }

Member Data Documentation

bool cOsdItem::fresh [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines