X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircchannel.h;h=a499b24cdf5c314f12be74fdb9608eaaf83cd6e0;hp=6dab1e20cbcea86769253530e2f6aef89d2977e6;hb=0b881e26eb5d741effae4a8096b319c9f5bcd462;hpb=eaa92c3648f551569e504971ebc75021a7e3e720 diff --git a/src/common/ircchannel.h b/src/common/ircchannel.h index 6dab1e20..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); @@ -90,7 +100,6 @@ signals: void ircUserJoined(IrcUser *ircuser); void ircUserParted(IrcUser *ircuser); - void ircUserDestroyed(IrcUser *ircuser); void ircUserNickSet(IrcUser *ircuser, QString nick); void ircUserModeAdded(IrcUser *ircuser, QString mode); void ircUserModeRemoved(IrcUser *ircuser, QString mode); @@ -110,6 +119,9 @@ private: QHash _userModes; NetworkInfo *networkInfo; + + QTextCodec *_codecForEncoding; + QTextCodec *_codecForDecoding; }; #endif