![]() |
KVIrc
4.9.2
DeveloperAPIs
|
Namespace that contains parsing function for the user input. More...
Functions | |
| KVIRC_API void | escapeString (QString &szData) |
| Escapes any kvs special character from a string. More... | |
| bool | parse (QString &szData, KviWindow *pWindow, const QString &szContext=KviQString::Empty, bool bUserFriendlyCommandline=false) |
| Returns false if szData is a command and it fails to run. More... | |
| bool | parseCommand (const QString &szData, KviWindow *pWindow, const QString &szContext=KviQString::Empty, bool bUserFriendlyCommandline=false) |
| Returns true if the command run. More... | |
| void | parseNonCommand (QString &szData, KviWindow *pWindow) |
| Parses the non command input data. More... | |
Namespace that contains parsing function for the user input.
| KVIRC_API void KviUserInput::escapeString | ( | QString & | szData | ) |
Escapes any kvs special character from a string.
| szData | The string to escape |
| KVIRC_API bool KviUserInput::parse | ( | QString & | szData, |
| KviWindow * | pWindow, | ||
| const QString & | szContext = KviQString::Empty, |
||
| bool | bUserFriendlyCommandline = false |
||
| ) |
Returns false if szData is a command and it fails to run.
| szData | The input data to parse |
| pWindow | The window associated to the input |
| szContext | The context associated to the input |
| bUserFriendlyCommandline | Whether the commandline is in user friendly mode |
References c, KviEvent_OnTextInput, KVS_TRIGGER_EVENT_1_HALTED, parseCommand(), and parseNonCommand().
Referenced by KviInput::inputEditorEnterPressed(), KviInput::keyPressEvent(), KviKvsCoreSimpleCommands::KVSCSC(), and NotifierWindow::returnPressed().
| KVIRC_API bool KviUserInput::parseCommand | ( | const QString & | szData, |
| KviWindow * | pWindow, | ||
| const QString & | szContext = KviQString::Empty, |
||
| bool | bUserFriendlyCommandline = false |
||
| ) |
Returns true if the command run.
| szData | The input data to parse |
| pWindow | The window associated to the input |
| szContext | The context associated to the input |
| bUserFriendlyCommandline | Whether the commandline is in user friendly mode |
References __tr2qs, KviKvsScript::Error, KviQString::escapeKvs(), and KviQString::EscapeParenthesis.
Referenced by parse(), parseNonCommand(), and KviInputEditor::sendKvs().
Parses the non command input data.
| szData | The input data to parse |
| pWindow | The window associated to the input |
References __tr2qs, KviWindow::Channel, KviWindow::connection(), KviWindow::Console, KviWindow::console(), KviWindow::DccChat, KviWindow::DccVideo, KviIrcConnection::encodeText(), KviIrcConnectionUserInfo::isAway(), KVI_OPTION_BOOL, KVI_OUT_PARSERERROR, KVI_OUT_RAW, KviOption_boolExitAwayOnInput, KviWindow::output(), KviWindow::ownMessage(), parseCommand(), KviWindow::Query, KviWindow::type(), and KviIrcConnection::userInfo().
Referenced by KviKvsCoreSimpleCommands::KVSCSC(), parse(), and KviInputEditor::sendPlain().
1.8.7