kpilot/lib

Messages Class Reference

List of all members.

Detailed Description

Definition at line 109 of file kpilotdevicelinkPrivate.h.


Public Types

enum  { OpenMessage = 1, OpenFailMessage = 2 }

Public Member Functions

 Messages (KPilotDeviceLink *parent)
void reset ()
void block (unsigned int m, bool force=false)
bool shouldPrint (int msgid)

Public Attributes

int messages
int messagesMask

Static Public Attributes

static const int messageIsError = 0

Protected Attributes

KPilotDeviceLinkfDeviceLink

Member Enumeration Documentation

anonymous enum
 

Some messages are only printed once and are suppressed after that.

These are indicated by flag bits in messages. The following enum is a bitfield.

Enumerator:
OpenMessage  Trying to open device ..
OpenFailMessage  Failed to open device ...

Definition at line 142 of file kpilotdevicelinkPrivate.h.


Member Function Documentation

bool Messages::shouldPrint int  msgid  )  [inline]
 

Determines whether message s which has an id of msgid (one of the enum values mentioned above) should be printed, which is only if that message has not been suppressed through messagesMask.

If return is true, this method also adds it to the messagesMask.

Definition at line 156 of file kpilotdevicelinkPrivate.h.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys