X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircchannel.h;h=a499b24cdf5c314f12be74fdb9608eaaf83cd6e0;hp=c66bf2b0a16de830d33767c8aacebe606db23876;hb=0b881e26eb5d741effae4a8096b319c9f5bcd462;hpb=e671e9da1edaab37ec403f575979f9a92a766e9a diff --git a/src/common/ircchannel.h b/src/common/ircchannel.h index c66bf2b0..a499b24c 100644 --- a/src/common/ircchannel.h +++ b/src/common/ircchannel.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005/06 by The Quassel Team * + * Copyright (C) 2005/06 by the Quassel IRC Team * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -53,6 +53,16 @@ public: QString userModes(IrcUser *ircuser) const; QString userModes(const QString &nick) const; + QTextCodec *codecForEncoding() const; + QTextCodec *codecForDecoding() const; + void setCodecForEncoding(const QString &codecName); + void setCodecForEncoding(QTextCodec *codec); + void setCodecForDecoding(const QString &codecName); + void setCodecForDecoding(QTextCodec *codec); + + QString decodeString(const QByteArray &text) const; + QByteArray encodeString(const QString string) const; + public slots: void setTopic(const QString &topic); @@ -109,6 +119,9 @@ private: QHash _userModes; NetworkInfo *networkInfo; + + QTextCodec *_codecForEncoding; + QTextCodec *_codecForDecoding; }; #endif