kpilot

Messages Class Reference

#include <kpilotdevicelinkPrivate.h>

List of all members.


Public Types

enum  { OpenMessage = 1, OpenFailMessage = 2 }

Public Member Functions

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

Public Attributes

int messages
int messagesMask

Static Public Attributes

static const int messageIsError = 0

Protected Attributes

KPilotDeviceLinkfDeviceLink

Detailed Description

Definition at line 109 of file kpilotdevicelinkPrivate.h.


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.


Constructor & Destructor Documentation

Messages::Messages ( KPilotDeviceLink parent  )  [inline]

Definition at line 112 of file kpilotdevicelinkPrivate.h.


Member Function Documentation

void Messages::block ( unsigned int  m,
bool  force = false 
) [inline]

Definition at line 124 of file kpilotdevicelinkPrivate.h.

void Messages::reset (  )  [inline]

Definition at line 118 of file kpilotdevicelinkPrivate.h.

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.


Member Data Documentation

Definition at line 170 of file kpilotdevicelinkPrivate.h.

const int Messages::messageIsError = 0 [static]

Definition at line 149 of file kpilotdevicelinkPrivate.h.

Definition at line 147 of file kpilotdevicelinkPrivate.h.

Definition at line 148 of file kpilotdevicelinkPrivate.h.


The documentation for this class was generated from the following file: