Source Code (Use browser search to find items of interest.)
Class Index
ksysv'cError (./kdeadmin/ksysv/error.h:20)
class cError
{
int type;
const char *desc;
void (*handler)(int, const char *);
public:
cError();
void Set(int theType, const char *theDesc);
void SetHandler(void (*theHandler)(int, const char *))
{ handler = theHandler; }
};
ksysv'cError::cError() (./kdeadmin/ksysv/error.cpp:35)
cError::cError()
{
SetHandler(DefHandler);
type = ERR_NONE;
}
ksysv'cError::Set() (./kdeadmin/ksysv/error.cpp:41)
void cError::Set(int theType, const char *theDesc)
{
type = theType;
desc = theDesc;
handler(type, desc);
if (type == ERR_WARNING) type = ERR_NONE;
}
ksysv'cError::SetHandler() (./kdeadmin/ksysv/error.h:31)
void SetHandler(void (*theHandler)(int, const char *))
{ handler = theHandler; }
};