Go to the documentation of this file.00001 #ifndef WPAMSG_H
00002 #define WPAMSG_H
00003
00004 class WpaMsg;
00005
00006 #if QT_VERSION >= 0x040000
00007 #include <QDateTime>
00008 #include <QLinkedList>
00009 typedef QLinkedList<WpaMsg> WpaMsgList;
00010 #else
00011 #include <qdatetime.h>
00012 typedef QValueList<WpaMsg> WpaMsgList;
00013 #endif
00014
00015 class WpaMsg {
00016 public:
00017 WpaMsg() {}
00018 WpaMsg(const QString &_msg, int _priority = 2)
00019 : msg(_msg), priority(_priority)
00020 {
00021 timestamp = QDateTime::currentDateTime();
00022 }
00023
00024 QString getMsg() const { return msg; }
00025 int getPriority() const { return priority; }
00026 QDateTime getTimestamp() const { return timestamp; }
00027
00028 private:
00029 QString msg;
00030 int priority;
00031 QDateTime timestamp;
00032 };
00033
00034 #endif