/* * Copyright (C) 2008-2014 The Communi Project * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * License for more details. */ #ifndef IRCCHANNEL_P_H #define IRCCHANNEL_P_H #include "ircchannel.h" #include "ircnetwork.h" #include "ircbuffer_p.h" #include #include #include IRC_BEGIN_NAMESPACE class IrcChannelPrivate : public IrcBufferPrivate { Q_DECLARE_PUBLIC(IrcChannel) public: IrcChannelPrivate(); virtual ~IrcChannelPrivate(); virtual void init(const QString& title, IrcBufferModel* model); virtual void connected(); virtual void disconnected(); void setActive(bool active); void changeModes(const QString& value, const QStringList& arguments); void setModes(const QString& value, const QStringList& arguments); void setTopic(const QString& value); void setKey(const QString& value); void addUser(const QString& user); bool removeUser(const QString& user); void setUsers(const QStringList& users); bool renameUser(const QString& from, const QString& to); void setUserMode(const QString& user, const QString& mode); void promoteUser(const QString& user); void setUserAway(const QString &name, const bool& away); void setUserServOp(const QString &name, const bool& servOp); virtual bool processJoinMessage(IrcJoinMessage* message); virtual bool processKickMessage(IrcKickMessage* message); virtual bool processModeMessage(IrcModeMessage* message); virtual bool processNamesMessage(IrcNamesMessage* message); virtual bool processNickMessage(IrcNickMessage* message); virtual bool processNoticeMessage(IrcNoticeMessage* message); virtual bool processNumericMessage(IrcNumericMessage* message); virtual bool processPartMessage(IrcPartMessage* message); virtual bool processPrivateMessage(IrcPrivateMessage* message); virtual bool processQuitMessage(IrcQuitMessage* message); virtual bool processTopicMessage(IrcTopicMessage* message); virtual bool processWhoReplyMessage(IrcWhoReplyMessage* message); static IrcChannelPrivate* get(IrcChannel* channel) { return channel->d_func(); } QMap modes; QString topic; bool active; QStringList names; QList userList; QList activeUsers; QMap userMap; QList userModels; }; IRC_END_NAMESPACE #endif // IRCCHANNEL_P_H