freebsd-skq/contrib/wpa_supplicant/wpa_gui/wpamsg.h
2006-03-07 05:26:33 +00:00

28 lines
532 B
C++

#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 */