Source Code (Use browser search to find items of interest.)
Class Index
kcontrol'EventConfig (./kdebase/kcontrol/knotify/eventconfig.h:92)
class EventConfig : public QObject
{
Q_OBJECT
public:
class EventListViewItem : public QListViewItem
{
public:
EventListViewItem(EventConfig *ev);
EventConfig *event;
};
EventConfig(const ProgramConfig *parent=0) {application=parent;}
EventConfig(const EventConfig *old) {set(old);}
void set(const EventConfig *old);
void load(KConfig &conf);
/**
* When I was selected to get shown with the EventView
**/
void selected();
/**
* reload the data from the configuration file
**/
void reload();
const ProgramConfig *application;
int present;
QString internalname;
QString logfile;
QString soundfile;
QString description;
QString friendly;
};
/**
* Contains a single program
**/
kcontrol'EventConfig::load() (./kdebase/kcontrol/knotify/eventconfig.cpp:33)
void EventConfig::load(KConfig &conf)
{
internalname=conf.group();
friendly=conf.readEntry("friendly", "Unknown Name");
description=conf.readEntry("description", "No Description");
{ // Load the presentation
present=conf.readNumEntry("presentation", -1);
if (present==-1)
present=conf.readNumEntry("default_presentation", 0);
}
{ // Load the files
soundfile=conf.readEntry("soundfile");
if (soundfile.isNull())
soundfile=conf.readEntry("default_soundfile");
}
{ // Load the files
logfile=conf.readEntry("logfile");
if (logfile.isNull())
logfile=conf.readEntry("default_logfile");
}
}
kcontrol'EventConfig::set() (./kdebase/kcontrol/knotify/eventconfig.cpp:58)
void EventConfig::set(const EventConfig *old)
{
internalname=old->internalname;
application=old->application;
present=old->present;
logfile=old->logfile;
soundfile=old->soundfile;
description=old->description;
friendly=old->friendly;
}
kcontrol'EventConfig::reload() (./kdebase/kcontrol/knotify/eventconfig.cpp:69)
void EventConfig::reload()
{
KConfig conf(application->configfile);
conf.setGroup(internalname);
load(conf);
}
kcontrol'EventConfig::selected() (./kdebase/kcontrol/knotify/eventconfig.cpp:193)
void EventConfig::selected()
{
// Load the new events
Programs::eventview->load(this);
}