wpamsg.h
Go to the documentation of this file.
00001 /*
00002  * wpa_gui - WpaMsg class for storing event messages
00003  * Copyright (c) 2005-2006, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  */
00014 
00015 #ifndef WPAMSG_H
00016 #define WPAMSG_H
00017 
00018 #include <QDateTime>
00019 #include <QLinkedList>
00020 
00021 class WpaMsg {
00022 public:
00023         WpaMsg(const QString &_msg, int _priority = 2)
00024                 : msg(_msg), priority(_priority)
00025         {
00026                 timestamp = QDateTime::currentDateTime();
00027         }
00028 
00029         QString getMsg() const { return msg; }
00030         int getPriority() const { return priority; }
00031         QDateTime getTimestamp() const { return timestamp; }
00032 
00033 private:
00034         QString msg;
00035         int priority;
00036         QDateTime timestamp;
00037 };
00038 
00039 typedef QLinkedList<WpaMsg> WpaMsgList;
00040 
00041 #endif /* WPAMSG_H */


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:26:39