Fix license header for cipher.{cpp|h}
[quassel.git] / src / common / ircuser.h
index 7ec878e..f74c46f 100644 (file)
 #include "syncableobject.h"
 #include "types.h"
 
+#ifdef HAVE_QCA2
+#include "cipher.h"
+#endif
+
 class SignalProxy;
 class Network;
 class IrcChannel;
@@ -96,6 +100,12 @@ public:
   inline QDateTime lastSpokenTo(BufferId id) const { return _lastSpokenTo.value(id); }
   void setLastSpokenTo(BufferId id, const QDateTime &time);
 
+  #ifdef HAVE_QCA2
+  Cipher* cipher();
+  #endif
+
+  void setEncrypted(bool);
+  
 public slots:
   void setUser(const QString &user);
   void setHost(const QString &host);
@@ -122,7 +132,7 @@ public slots:
 
   void addUserModes(const QString &modes);
   void removeUserModes(const QString &modes);
-
+  
 signals:
 //   void userSet(QString user);
 //   void hostSet(QString host);
@@ -190,6 +200,10 @@ private:
 
   QHash<BufferId, QDateTime> _lastActivity;
   QHash<BufferId, QDateTime> _lastSpokenTo;
+  
+  #ifdef HAVE_QCA2
+  Cipher *_cipher;
+  #endif
 };
 
 #endif