34 #include <QtCore/qobject.h>    35 #include <QtCore/qvariant.h>    36 #include <QtCore/qmetatype.h>    37 #include <QtCore/qscopedpointer.h>    47 class IrcBufferPrivate;
    52     Q_PROPERTY(
QString title READ title NOTIFY titleChanged)
    53     Q_PROPERTY(
QString name READ name WRITE setName NOTIFY nameChanged)
    54     Q_PROPERTY(
QString prefix READ prefix WRITE setPrefix NOTIFY prefixChanged)
    58     Q_PROPERTY(
bool active READ isActive NOTIFY activeChanged)
    59     Q_PROPERTY(
bool channel READ isChannel CONSTANT)
    60     Q_PROPERTY(
bool sticky READ isSticky WRITE setSticky NOTIFY stickyChanged)
    61     Q_PROPERTY(
bool persistent READ isPersistent WRITE setPersistent NOTIFY persistentChanged)
    62     Q_PROPERTY(QVariantMap userData READ userData WRITE setUserData NOTIFY userDataChanged)
    72     bool isChannel() const;
    79     virtual 
bool isActive() const;
    81     bool isSticky() const;
    82     void setSticky(
bool sticky);
    84     bool isPersistent() const;
    85     void setPersistent(
bool persistent);
    87     QVariantMap userData() const;
    88     void setUserData(const QVariantMap& data);
    90     Q_INVOKABLE 
bool sendCommand(
IrcCommand* command);
    93     void setName(const 
QString& name);
    94     void setPrefix(const 
QString& prefix);
    99     void titleChanged(const QString& title);
   100     void nameChanged(const QString& name);
   101     void prefixChanged(const QString& name);
   103     void destroyed(IrcBuffer* buffer);
   104     void activeChanged(
bool active);
   105     void stickyChanged(
bool sticky);
   106     void persistentChanged(
bool persistent);
   107     void userDataChanged(const QVariantMap& data);
   110     IrcBuffer(IrcBufferPrivate& dd, 
QObject* parent);
   113     Q_DECLARE_PRIVATE(IrcBuffer)
   114     Q_DISABLE_COPY(IrcBuffer)
   117 #ifndef QT_NO_DEBUG_STREAM   118 IRC_MODEL_EXPORT 
QDebug operator<<(
QDebug debug, 
const IrcBuffer* buffer);
   119 #endif // QT_NO_DEBUG_STREAM   123 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcBuffer*))
   124 Q_DECLARE_METATYPE(
QList<IRC_PREPEND_NAMESPACE(IrcBuffer*)>)
   126 #endif // IRCBUFFER_H Provides means to establish a connection to an IRC server. 
Definition: ircconnection.h:48
 
Provides network information and capability management. 
Definition: ircnetwork.h:43
 
Keeps track of buffer status. 
Definition: ircbuffer.h:49
 
Keeps track of channel status. 
Definition: ircchannel.h:40
 
Keeps track of buffers. 
Definition: ircbuffermodel.h:47
 
Provides the most common commands. 
Definition: irccommand.h:44
 
The base class of all messages. 
Definition: ircmessage.h:47