The Core Configuration Wizard is back! teH rul!
[quassel.git] / src / common / ircuser.h
index 45be422..da96323 100644 (file)
@@ -25,6 +25,7 @@
 #include <QString>
 #include <QStringList>
 #include <QVariantMap>
+#include <QDateTime>
 
 #include "syncableobject.h"
 
@@ -38,6 +39,13 @@ class IrcUser : public SyncableObject {
   Q_PROPERTY(QString user READ user WRITE setUser STORED false)
   Q_PROPERTY(QString host READ host WRITE setHost STORED false)
   Q_PROPERTY(QString nick READ nick WRITE setNick STORED false)
+  Q_PROPERTY(QString realName READ realName WRITE setRealName STORED false)
+  Q_PROPERTY(bool away READ isAway WRITE setAway STORED false)
+  Q_PROPERTY(QString awayMessage READ awayMessage WRITE setAwayMessage STORED false)
+  Q_PROPERTY(QDateTime idleTime READ idleTime WRITE setIdleTime STORED false)
+  Q_PROPERTY(QString server READ server WRITE setServer STORED false)
+  Q_PROPERTY(QString ircOperator READ ircOperator WRITE setIrcOperator STORED false)
+  Q_PROPERTY(int lastAwayMessage READ lastAwayMessage WRITE setLastAwayMessage STORED false)
 
   Q_PROPERTY(QStringList channels READ channels STORED false)
   //  Q_PROPERTY(QStringList usermodes READ usermodes WRITE setUsermodes)
@@ -49,7 +57,14 @@ public:
   QString user() const;
   QString host() const;
   QString nick() const;
+  QString realName() const; 
   QString hostmask() const;
+  bool isAway() const;
+  QString awayMessage() const;
+  QDateTime idleTime() const;
+  QString server() const;
+  QString ircOperator() const;
+  int lastAwayMessage() const;
   Network *network() const;
 
   QString userModes() const;
@@ -71,6 +86,13 @@ public slots:
   void setUser(const QString &user);
   void setHost(const QString &host);
   void setNick(const QString &nick);
+  void setRealName(const QString &realName);
+  void setAway(const bool &away);
+  void setAwayMessage(const QString &awayMessage);
+  void setIdleTime(const QDateTime &idleTime);
+  void setServer(const QString &server);
+  void setIrcOperator(const QString &ircOperator);
+  void setLastAwayMessage(const int &lastAwayMessage);
   void updateHostmask(const QString &mask);
 
   void setUserModes(const QString &modes);
@@ -90,6 +112,13 @@ signals:
   void userSet(QString user);
   void hostSet(QString host);
   void nickSet(QString newnick);
+  void realNameSet(QString realName);
+  void awaySet(bool away);
+  void awayMessageSet(QString awayMessage);
+  void idleTimeSet(QDateTime idleTime);
+  void serverSet(QString server);
+  void ircOperatorSet(QString ircOperator);
+  void lastAwayMessageSet(int lastAwayMessage);
   void hostmaskUpdated(QString mask);
 
   void userModesSet(QString modes);
@@ -123,7 +152,14 @@ private:
   QString _nick;
   QString _user;
   QString _host;
-
+  QString _realName;
+  QString _awayMessage;
+  bool _away;
+  QString _server;
+  QDateTime _idleTime;
+  QString _ircOperator;
+  int _lastAwayMessage;
+  
   // QSet<QString> _channels;
   QSet<IrcChannel *> _channels;
   QString _userModes;