X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreircchannel.h;h=16c96ebd95effa7b26dc92cd3d6139ce28410730;hp=61c5ecb56d5dcbac005072b998479193591462b5;hb=4ae8f86c1ce452582d6fe576956c7c1bc1460adf;hpb=f824db0e31b54969e0b7fa0b5405b1e9173d482c diff --git a/src/core/coreircchannel.h b/src/core/coreircchannel.h index 61c5ecb5..16c96ebd 100644 --- a/src/core/coreircchannel.h +++ b/src/core/coreircchannel.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2012 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -23,19 +23,34 @@ #include "ircchannel.h" +#ifdef HAVE_QCA2 +# include "cipher.h" +#endif + class CoreIrcChannel : public IrcChannel { + SYNCABLE_OBJECT Q_OBJECT public: CoreIrcChannel(const QString &channelname, Network *network); + virtual ~CoreIrcChannel(); inline virtual const QMetaObject *syncMetaObject() const { return &IrcChannel::staticMetaObject; } +#ifdef HAVE_QCA2 + Cipher *cipher() const; + void setEncrypted(bool); +#endif + inline bool receivedWelcomeMsg() const { return _receivedWelcomeMsg; } inline void setReceivedWelcomeMsg() { _receivedWelcomeMsg = true; } private: bool _receivedWelcomeMsg; + +#ifdef HAVE_QCA2 + mutable Cipher *_cipher; +#endif }; #endif //COREIRCCHANNEL_H