summaryrefslogtreecommitdiffstats
path: root/contrib/wpa_supplicant/wpa_gui/wpamsg.h
blob: 29840175f6f17ff0f55de7897d41903af65b0992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef WPAMSG_H
#define WPAMSG_H

#include <qdatetime.h>

class WpaMsg {
public:
    WpaMsg() {}
    WpaMsg(const QString &_msg, int _priority = 2)
	: msg(_msg), priority(_priority)
    {
	timestamp = QDateTime::currentDateTime();
    }
    
    QString getMsg() const { return msg; }
    int getPriority() const { return priority; }
    QDateTime getTimestamp() const { return timestamp; }
    
private:
    QString msg;
    int priority;
    QDateTime timestamp;
};

typedef QValueList<WpaMsg> WpaMsgList;

#endif /* WPAMSG_H */
OpenPOWER on IntegriCloud