20 #include <QtCore/qobject.h>
21 #include <QtCore/qmetatype.h>
22 #include <QtCore/qscopedpointer.h>
32 class IrcBufferPrivate;
37 Q_PROPERTY(
QString title READ title NOTIFY titleChanged)
38 Q_PROPERTY(
QString name READ name WRITE setName NOTIFY nameChanged)
39 Q_PROPERTY(
QString prefix READ prefix WRITE setPrefix NOTIFY prefixChanged)
43 Q_PROPERTY(
bool active READ isActive NOTIFY activeChanged)
44 Q_PROPERTY(
bool channel READ isChannel CONSTANT)
45 Q_PROPERTY(
bool sticky READ isSticky WRITE setSticky NOTIFY stickyChanged)
46 Q_PROPERTY(
bool persistent READ isPersistent WRITE setPersistent NOTIFY persistentChanged)
56 bool isChannel() const;
63 virtual
bool isActive() const;
65 bool isSticky() const;
66 void setSticky(
bool sticky);
68 bool isPersistent() const;
69 void setPersistent(
bool persistent);
71 Q_INVOKABLE
bool sendCommand(
IrcCommand* command);
74 void setName(const
QString& name);
75 void setPrefix(const
QString& prefix);
79 void titleChanged(const
QString& title);
80 void nameChanged(const
QString& name);
81 void prefixChanged(const
QString& name);
83 void destroyed(IrcBuffer* buffer);
84 void activeChanged(
bool active);
85 void stickyChanged(
bool sticky);
86 void persistentChanged(
bool persistent);
89 IrcBuffer(IrcBufferPrivate& dd,
QObject* parent);
92 Q_DECLARE_PRIVATE(IrcBuffer)
93 Q_DISABLE_COPY(IrcBuffer)
96 #ifndef QT_NO_DEBUG_STREAM
97 IRC_MODEL_EXPORT
QDebug operator<<(
QDebug debug,
const IrcBuffer* buffer);
98 #endif // QT_NO_DEBUG_STREAM
102 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcBuffer*))
103 Q_DECLARE_METATYPE(
QList<IRC_PREPEND_NAMESPACE(IrcBuffer*)>)
105 #endif // IRCBUFFER_H
Provides the most common commands.
Definition: irccommand.h:29
Keeps track of channel status.
Definition: ircchannel.h:26
Keeps track of buffer status.
Definition: ircbuffer.h:34
Provides means to establish a connection to an IRC server.
Definition: ircconnection.h:32
The base class of all messages.
Definition: ircmessage.h:32
Keeps track of buffers.
Definition: ircbuffermodel.h:32
Provides network information and capability management.
Definition: ircnetwork.h:29