]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/wpa_supplicant/wpa_gui-qt4/wpamsg.h
merge fix for boot-time hang on centos' xen
[FreeBSD/FreeBSD.git] / contrib / wpa_supplicant / wpa_gui-qt4 / wpamsg.h
1 #ifndef WPAMSG_H
2 #define WPAMSG_H
3
4 #include <QDateTime>
5 #include <QLinkedList>
6
7 class WpaMsg {
8 public:
9     WpaMsg() {}
10     WpaMsg(const QString &_msg, int _priority = 2)
11         : msg(_msg), priority(_priority)
12     {
13         timestamp = QDateTime::currentDateTime();
14     }
15     
16     QString getMsg() const { return msg; }
17     int getPriority() const { return priority; }
18     QDateTime getTimestamp() const { return timestamp; }
19     
20 private:
21     QString msg;
22     int priority;
23     QDateTime timestamp;
24 };
25
26 typedef QLinkedList<WpaMsg> WpaMsgList;
27
28 #endif /* WPAMSG_H */