~ubuntu-branches/ubuntu/hardy/wpasupplicant/hardy

« back to all changes in this revision

Viewing changes to wpa_supplicant/wpa_gui/wpamsg.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler, Alexander Sack
  • Date: 2007-08-26 16:06:57 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070826160657-2m8pxoweuxe8f93t
Tags: 0.6.0+0.5.8-0ubuntu1
* New upstream release
* remove patch 11_erroneous_manpage_ref, applied upstream
* remove patch 25_wpas_dbus_unregister_iface_fix, applied upstream

[ Alexander Sack ]
* bumping upstream version to replace development version 0.6.0 with
  this package from stable release branch.
* attempt to fix wierd timeout and high latency issues by going
  back to stable upstream version (0.5.9) (LP: #140763,
  LP: #141233).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef WPAMSG_H
2
 
#define WPAMSG_H
3
 
 
4
 
class WpaMsg;
5
 
 
6
 
#if QT_VERSION >= 0x040000
7
 
#include <QDateTime>
8
 
#include <QLinkedList>
9
 
typedef QLinkedList<WpaMsg> WpaMsgList;
10
 
#else
11
 
#include <qdatetime.h>
12
 
typedef QValueList<WpaMsg> WpaMsgList;
13
 
#endif
14
 
 
15
 
class WpaMsg {
16
 
public:
17
 
    WpaMsg() {}
18
 
    WpaMsg(const QString &_msg, int _priority = 2)
19
 
        : msg(_msg), priority(_priority)
20
 
    {
21
 
        timestamp = QDateTime::currentDateTime();
22
 
    }
23
 
    
24
 
    QString getMsg() const { return msg; }
25
 
    int getPriority() const { return priority; }
26
 
    QDateTime getTimestamp() const { return timestamp; }
27
 
    
28
 
private:
29
 
    QString msg;
30
 
    int priority;
31
 
    QDateTime timestamp;
32
 
};
33
 
 
34
 
#endif /* WPAMSG_H */