]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - 6/contrib/wpa_supplicant/wpa_gui/wpamsg.h
Clone Kip's Xen on stable/6 tree so that I can work on improving FreeBSD/amd64
[FreeBSD/FreeBSD.git] / 6 / contrib / wpa_supplicant / wpa_gui / wpamsg.h
1 #ifndef WPAMSG_H
2 #define WPAMSG_H
3
4 #include <qdatetime.h>
5
6 class WpaMsg {
7 public:
8     WpaMsg() {}
9     WpaMsg(const QString &_msg, int _priority = 2)
10         : msg(_msg), priority(_priority)
11     {
12         timestamp = QDateTime::currentDateTime();
13     }
14     
15     QString getMsg() const { return msg; }
16     int getPriority() const { return priority; }
17     QDateTime getTimestamp() const { return timestamp; }
18     
19 private:
20     QString msg;
21     int priority;
22     QDateTime timestamp;
23 };
24
25 typedef QValueList<WpaMsg> WpaMsgList;
26
27 #endif /* WPAMSG_H */