33 #include <QtCore/qobject.h>
34 #include <QtCore/qmetatype.h>
35 #include <QtCore/qstringlist.h>
36 #include <QtCore/qscopedpointer.h>
41 class IrcNetworkPrivate;
46 Q_PROPERTY(
bool initialized READ isInitialized NOTIFY initialized)
47 Q_PROPERTY(
QString name READ name NOTIFY nameChanged)
49 Q_PROPERTY(
QStringList prefixes READ prefixes NOTIFY prefixesChanged)
50 Q_PROPERTY(
QStringList channelTypes READ channelTypes NOTIFY channelTypesChanged)
51 Q_PROPERTY(
QStringList statusPrefixes READ statusPrefixes NOTIFY statusPrefixesChanged)
52 Q_PROPERTY(
QStringList availableCapabilities READ availableCapabilities NOTIFY availableCapabilitiesChanged)
53 Q_PROPERTY(
QStringList requestedCapabilities READ requestedCapabilities WRITE setRequestedCapabilities NOTIFY requestedCapabilitiesChanged)
54 Q_PROPERTY(
QStringList activeCapabilities READ activeCapabilities NOTIFY activeCapabilitiesChanged)
74 Q_INVOKABLE
bool isChannel(const
QString& name) const;
83 Q_DECLARE_FLAGS(ModeTypes, ModeType)
100 Q_INVOKABLE
int modeLimit(
const QString& mode)
const;
101 Q_INVOKABLE
int channelLimit(
const QString& type)
const;
102 Q_INVOKABLE
int targetLimit(
const QString& command)
const;
108 Q_INVOKABLE
bool hasCapability(
const QString& capability)
const;
109 Q_INVOKABLE
bool isCapable(
const QString& capability)
const;
112 bool requestCapability(
const QString& capability);
113 bool requestCapabilities(
const QStringList& capabilities);
114 void setRequestedCapabilities(
const QStringList& capabilities);
118 void nameChanged(
const QString& name);
121 void channelTypesChanged(
const QStringList& types);
122 void statusPrefixesChanged(
const QStringList& prefixes);
123 void availableCapabilitiesChanged(
const QStringList& capabilities);
124 void requestedCapabilitiesChanged(
const QStringList& capabilities);
125 void activeCapabilitiesChanged(
const QStringList& capabilities);
126 void requestingCapabilities();
138 #ifndef QT_NO_DEBUG_STREAM
141 IRC_CORE_EXPORT
QDebug operator<<(
QDebug debug, IrcNetwork::ModeTypes types);
142 IRC_CORE_EXPORT
QDebug operator<<(
QDebug debug,
const IrcNetwork* network);
143 #endif // QT_NO_DEBUG_STREAM
145 Q_DECLARE_OPERATORS_FOR_FLAGS(IrcNetwork::ModeTypes)
149 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNetwork*))
151 #endif // IRCNETWORK_H
Provides means to establish a connection to an IRC server.
Definition: ircconnection.h:48
The maximum channel topic length.
Definition: ircnetwork.h:90
Provides network information and capability management.
Definition: ircnetwork.h:43
ModeType
Definition: ircnetwork.h:76
The maximum number of channel modes allowed per mode command.
Definition: ircnetwork.h:94
The maximum kick reason length.
Definition: ircnetwork.h:92
The maximum away reason length.
Definition: ircnetwork.h:93
Limit
Definition: ircnetwork.h:87
Implements the IRC protocol and provides means for implementing support for custom protocols...
Definition: ircprotocol.h:45
The maximum message length.
Definition: ircnetwork.h:91
The maximum channel name length.
Definition: ircnetwork.h:89
The maximum nick name length.
Definition: ircnetwork.h:88