29 #ifndef IRCCOMMANDPARSER_H 30 #define IRCCOMMANDPARSER_H 34 #include <QtCore/qobject.h> 35 #include <QtCore/qmetatype.h> 36 #include <QtCore/qstringlist.h> 40 class IrcCommandParserPrivate;
45 Q_PROPERTY(
QStringList commands READ commands NOTIFY commandsChanged)
46 Q_PROPERTY(
QStringList triggers READ triggers WRITE setTriggers NOTIFY triggersChanged)
47 Q_PROPERTY(
QStringList channels READ channels WRITE setChannels NOTIFY channelsChanged)
48 Q_PROPERTY(
QString target READ target WRITE setTarget NOTIFY targetChanged)
49 Q_PROPERTY(
bool tolerant READ isTolerant WRITE setTolerant NOTIFY tolerancyChanged)
66 Visual = NoTarget | NoPrefix | NoEllipsis
68 Q_DECLARE_FLAGS(Details,
Detail)
70 Q_INVOKABLE
QString syntax(const
QString& command, Details details = Visual) const;
77 QString target() const;
80 bool isTolerant() const;
81 void setTolerant(
bool tolerant);
83 Q_INVOKABLE
IrcCommand* parse(const QString& input) const;
91 void setTarget(const QString& target);
97 void targetChanged(const QString& target);
98 void tolerancyChanged(
bool tolerant);
106 Q_DECLARE_OPERATORS_FOR_FLAGS(IrcCommandParser::Details)
110 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcCommandParser*))
112 #endif // IRCCOMMANDPARSER_H Detail
Definition: irccommandparser.h:58
Parses commands from user input.
Definition: irccommandparser.h:42
Provides the most common commands.
Definition: irccommand.h:44