34 #include <QtCore/qmetatype.h>
38 class IrcChannelPrivate;
43 Q_PROPERTY(QString key READ key NOTIFY keyChanged)
44 Q_PROPERTY(QString mode READ mode NOTIFY modeChanged)
45 Q_PROPERTY(QString topic READ topic NOTIFY topicChanged)
48 Q_INVOKABLE
explicit IrcChannel(QObject* parent =
nullptr);
53 QString topic()
const;
55 bool isActive()
const override;
61 void join(
const QString& key = QString());
62 void part(
const QString& reason = QString());
63 void close(
const QString& reason = QString())
override;
66 void keyChanged(
const QString& key);
67 void modeChanged(
const QString& mode);
68 void topicChanged(
const QString& topic);
75 #ifndef QT_NO_DEBUG_STREAM
76 IRC_MODEL_EXPORT QDebug operator<<(QDebug debug,
const IrcChannel* channel);
81 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(
IrcChannel*))
82 Q_DECLARE_METATYPE(QList<IRC_PREPEND_NAMESPACE(
IrcChannel*)>)
Keeps track of buffer status.
Definition: ircbuffer.h:50
virtual IrcBuffer * clone(QObject *parent=nullptr)
Definition: ircbuffer.cpp:590
virtual void close(const QString &reason=QString())
Definition: ircbuffer.cpp:622
Keeps track of channel status.
Definition: ircchannel.h:41