Re-initialize hostapd/wpa_supplicant git repository based on 0.6.3 release
[mech_eap.git] / wpa_supplicant / wpa_gui / wpamsg.h
1 #ifndef WPAMSG_H
2 #define WPAMSG_H
3
4 class WpaMsg;
5
6 #if QT_VERSION >= 0x040000
7 #include <QDateTime>
8 #include <QLinkedList>
9 typedef QLinkedList<WpaMsg> WpaMsgList;
10 #else
11 #include <qdatetime.h>
12 typedef QValueList<WpaMsg> WpaMsgList;
13 #endif
14
15 class WpaMsg {
16 public:
17     WpaMsg(const QString &_msg, int _priority = 2)
18         : msg(_msg), priority(_priority)
19     {
20         timestamp = QDateTime::currentDateTime();
21     }
22     
23     QString getMsg() const { return msg; }
24     int getPriority() const { return priority; }
25     QDateTime getTimestamp() const { return timestamp; }
26     
27 private:
28     QString msg;
29     int priority;
30     QDateTime timestamp;
31 };
32
33 #endif /* WPAMSG_H */