19 #include <QtCore/qobject.h>
20 #include <QtCore/qmetatype.h>
21 #include <QtCore/qstringlist.h>
22 #include <QtCore/qscopedpointer.h>
27 class IrcNetworkPrivate;
32 Q_PROPERTY(
bool initialized READ isInitialized NOTIFY initialized)
33 Q_PROPERTY(
QString name READ name NOTIFY nameChanged)
35 Q_PROPERTY(
QStringList prefixes READ prefixes NOTIFY prefixesChanged)
36 Q_PROPERTY(
QStringList channelTypes READ channelTypes NOTIFY channelTypesChanged)
37 Q_PROPERTY(
QStringList availableCapabilities READ availableCapabilities NOTIFY availableCapabilitiesChanged)
38 Q_PROPERTY(
QStringList requestedCapabilities READ requestedCapabilities WRITE setRequestedCapabilities NOTIFY requestedCapabilitiesChanged)
39 Q_PROPERTY(
QStringList activeCapabilities READ activeCapabilities NOTIFY activeCapabilitiesChanged)
58 Q_INVOKABLE
bool isChannel(const
QString& name) const;
67 Q_DECLARE_FLAGS(ModeTypes, ModeType)
83 Q_INVOKABLE
int modeLimit(
const QString& mode)
const;
84 Q_INVOKABLE
int channelLimit(
const QString& type)
const;
85 Q_INVOKABLE
int targetLimit(
const QString& command)
const;
91 Q_INVOKABLE
bool hasCapability(
const QString& capability)
const;
92 Q_INVOKABLE
bool isCapable(
const QString& capability)
const;
95 bool requestCapability(
const QString& capability);
96 bool requestCapabilities(
const QStringList& capabilities);
97 void setRequestedCapabilities(
const QStringList& capabilities);
101 void nameChanged(
const QString& name);
104 void channelTypesChanged(
const QStringList& types);
105 void availableCapabilitiesChanged(
const QStringList& capabilities);
106 void requestedCapabilitiesChanged(
const QStringList& capabilities);
107 void activeCapabilitiesChanged(
const QStringList& capabilities);
108 void requestingCapabilities();
111 friend class IrcProtocol;
120 #ifndef QT_NO_DEBUG_STREAM
123 IRC_CORE_EXPORT
QDebug operator<<(
QDebug debug, IrcNetwork::ModeTypes types);
124 IRC_CORE_EXPORT
QDebug operator<<(
QDebug debug,
const IrcNetwork* network);
125 #endif // QT_NO_DEBUG_STREAM
127 Q_DECLARE_OPERATORS_FOR_FLAGS(IrcNetwork::ModeTypes)
131 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNetwork*))
133 #endif // IRCNETWORK_H
The maximum nick name length.
Definition: ircnetwork.h:72
The maximum channel name length.
Definition: ircnetwork.h:73
The maximum message length.
Definition: ircnetwork.h:75
The maximum away reason length.
Definition: ircnetwork.h:77
Provides means to establish a connection to an IRC server.
Definition: ircconnection.h:32
The maximum kick reason length.
Definition: ircnetwork.h:76
The maximum channel topic length.
Definition: ircnetwork.h:74
Provides network information and capability management.
Definition: ircnetwork.h:29
ModeType
Definition: ircnetwork.h:60
Limit
Definition: ircnetwork.h:71