summaryrefslogtreecommitdiffstats
path: root/src/kvirc/kvs/kvi_kvs_coresimplecommands_sz.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvirc/kvs/kvi_kvs_coresimplecommands_sz.cpp')
-rw-r--r--src/kvirc/kvs/kvi_kvs_coresimplecommands_sz.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/kvirc/kvs/kvi_kvs_coresimplecommands_sz.cpp b/src/kvirc/kvs/kvi_kvs_coresimplecommands_sz.cpp
index 1dfc4549..96548ad9 100644
--- a/src/kvirc/kvs/kvi_kvs_coresimplecommands_sz.cpp
+++ b/src/kvirc/kvs/kvi_kvs_coresimplecommands_sz.cpp
@@ -81,17 +81,17 @@ namespace KviKvsCoreSimpleCommands
KVSCSC(say)
{
- QString szText;
+ TQString szText;
KVSCSC_PARAMETERS_BEGIN
KVSCSC_PARAMETER("text",KVS_PT_STRING,KVS_PF_APPENDREMAINING,szText)
KVSCSC_PARAMETERS_END
- if(KVSCSC_pSwitches->find('x',"allow-exec"))
+ if(KVSCSC_pSwitches->tqfind('x',"allow-exec"))
{
// allow execution of commands
if(!KviUserInput::parse(szText,KVSCSC_pWindow,__tr2qs("say: injected commandline")))
{
- if(!KVSCSC_pSwitches->find('q',"quiet"))
+ if(!KVSCSC_pSwitches->tqfind('q',"quiet"))
KVSCSC_pContext->warning(__tr2qs("Say parse error: Broken command"));
}
} else {
@@ -205,7 +205,7 @@ namespace KviKvsCoreSimpleCommands
KVSCSC(server)
{
- QString szServer;
+ TQString szServer;
kvs_uint_t uPort;
KVSCSC_PARAMETERS_BEGIN
KVSCSC_PARAMETER("server",KVS_PT_STRING,KVS_PF_OPTIONAL,szServer)
@@ -213,9 +213,9 @@ namespace KviKvsCoreSimpleCommands
KVSCSC_PARAMETERS_END
KviConsole * console = 0;
- if(KVSCSC_pSwitches->find('n',"new-context"))console = KVSCSC_pWindow->frame()->createNewConsole();
+ if(KVSCSC_pSwitches->tqfind('n',"new-context"))console = KVSCSC_pWindow->frame()->createNewConsole();
else {
- if(KVSCSC_pSwitches->find('u',"unused-context"))
+ if(KVSCSC_pSwitches->tqfind('u',"unused-context"))
{
// first try the current console
console = KVSCSC_pWindow->console();
@@ -239,7 +239,7 @@ namespace KviKvsCoreSimpleCommands
} else console = KVSCSC_pWindow->console();
}
- QString szCmd,szBindAddress,szSocketFilter,szPassword,szNick;
+ TQString szCmd,szBindAddress,szSocketFilter,szPassword,szNick;
KVSCSC_pSwitches->getAsStringIfExisting('c',"command",szCmd);
KVSCSC_pSwitches->getAsStringIfExisting('b',"bind-address",szBindAddress);
KVSCSC_pSwitches->getAsStringIfExisting('f',"filter",szSocketFilter);
@@ -261,7 +261,7 @@ namespace KviKvsCoreSimpleCommands
return false;
} else {
KviAsynchronousConnectionData * d = new KviAsynchronousConnectionData();
- d->bUseLastServerInContext = KVSCSC_pSwitches->find('l',"last") != 0;
+ d->bUseLastServerInContext = KVSCSC_pSwitches->tqfind('l',"last") != 0;
d->szCommandToExecAfterConnect = szCmd;
d->szBindAddress = szBindAddress;
d->szPass = szPassword;
@@ -273,13 +273,13 @@ namespace KviKvsCoreSimpleCommands
} else {
// server is not empty.
KviAsynchronousConnectionData * d = new KviAsynchronousConnectionData();
- d->bUseSSL = (KVSCSC_pSwitches->find('s',"ssl") != 0);
+ d->bUseSSL = (KVSCSC_pSwitches->tqfind('s',"ssl") != 0);
d->szServer = szServer;
d->uPort = (kvi_u32_t)uPort;
d->szLinkFilter = szSocketFilter;
d->bPortIsOk = (uPort > 0);
#ifdef COMPILE_IPV6_SUPPORT
- d->bUseIpV6 = (KVSCSC_pSwitches->find('i',"ipv6") != 0) || KviNetUtils::isValidStringIp_V6(szServer);
+ d->bUseIpV6 = (KVSCSC_pSwitches->tqfind('i',"ipv6") != 0) || KviNetUtils::isValidStringIp_V6(szServer);
#else
d->bUseIpV6 = false;
#endif
@@ -357,7 +357,7 @@ namespace KviKvsCoreSimpleCommands
KVSCSC(setmenu)
{
- QString szVisibleText,szPopupName;
+ TQString szVisibleText,szPopupName;
KVSCSC_PARAMETERS_BEGIN
KVSCSC_PARAMETER("visible_text",KVS_PT_NONEMPTYSTRING,0,szVisibleText)
KVSCSC_PARAMETER("popup_name",KVS_PT_STRING,KVS_PF_OPTIONAL,szPopupName)
@@ -367,20 +367,20 @@ namespace KviKvsCoreSimpleCommands
{
if(!(KVSCSC_pWindow->frame()->mainMenuBar()->removeMenu(szVisibleText)))
{
- if(!KVSCSC_pSwitches->find('q',"quiet"))KVSCSC_pContext->warning(__tr2qs("No menu bar item with text '%Q'"),&szPopupName);
+ if(!KVSCSC_pSwitches->tqfind('q',"quiet"))KVSCSC_pContext->warning(__tr2qs("No menu bar item with text '%Q'"),&szPopupName);
}
return true;
}
KviKvsPopupMenu * p = KviKvsPopupManager::instance()->lookup(szPopupName);
int idx = -1;
- if(KviKvsVariant * pIdx = KVSCSC_pSwitches->find('i',"index"))
+ if(KviKvsVariant * pIdx = KVSCSC_pSwitches->tqfind('i',"index"))
{
kvs_int_t iIdx;
if(pIdx->asInteger(iIdx))
idx = iIdx;
else {
- if(!KVSCSC_pSwitches->find('q',"quiet"))
+ if(!KVSCSC_pSwitches->tqfind('q',"quiet"))
KVSCSC_pContext->warning(__tr2qs("Invalid index specified: ignored"));
}
}
@@ -390,7 +390,7 @@ namespace KviKvsCoreSimpleCommands
if(p)KVSCSC_pWindow->frame()->mainMenuBar()->addMenu(szVisibleText,p,idx);
else {
- if(!KVSCSC_pSwitches->find('q',"quiet"))KVSCSC_pContext->warning(__tr2qs("The popup '%Q' is not defined"),&szPopupName);
+ if(!KVSCSC_pSwitches->tqfind('q',"quiet"))KVSCSC_pContext->warning(__tr2qs("The popup '%Q' is not defined"),&szPopupName);
}
return true;
@@ -430,7 +430,7 @@ namespace KviKvsCoreSimpleCommands
return false;
}
- QString all;
+ TQString all;
KVSCSC_pParams->allAsString(all);
KVSCSC_pContext->returnValue()->setString(all);
return true;
@@ -445,12 +445,12 @@ namespace KviKvsCoreSimpleCommands
@title:
sockets
@syntax:
- sockets [[remote server] server mask]
+ sockets [[remote server] server tqmask]
@short:
Requests the sockets info from a server
@description:
Requests the sockets information from the specified server or the current server if no [remote server] is specified.[br]
- The reply can be filtered by <server mask>.[br]
+ The reply can be filtered by <server tqmask>.[br]
This command is a [doc:rfc2821wrappers]RFC2821 command wrapper[/doc]; see that document for more information.[br]
*/
// RFC2821 wrapper
@@ -588,14 +588,14 @@ namespace KviKvsCoreSimpleCommands
KVSCSC(topic)
{
- QString szChannel;
- QString szTopic;
+ TQString szChannel;
+ TQString szTopic;
KVSCSC_PARAMETERS_BEGIN
KVSCSC_PARAMETER("channel",KVS_PT_NONEMPTYSTRING,KVS_PF_OPTIONAL,szChannel)
KVSCSC_PARAMETER("topic",KVS_PT_STRING,KVS_PF_OPTIONAL | KVS_PF_APPENDREMAINING,szTopic)
KVSCSC_PARAMETERS_END
- KVSCSC_REQUIRE_CONNECTION
+ KVSCSC_RETQUIRE_CONNECTION
if(szChannel.isEmpty())
{
@@ -607,8 +607,8 @@ namespace KviKvsCoreSimpleCommands
}
}
- KviQCString szC = KVSCSC_pConnection->encodeText(szChannel);
- KviQCString szT = KVSCSC_pConnection->encodeText(szTopic);
+ KviTQCString szC = KVSCSC_pConnection->encodeText(szChannel);
+ KviTQCString szT = KVSCSC_pConnection->encodeText(szTopic);
if(szTopic.isEmpty())
{
if(!KVSCSC_pConnection->sendFmtData("TOPIC %s",szC.data()))
@@ -673,14 +673,14 @@ namespace KviKvsCoreSimpleCommands
to load catalogues that reside in different directories.[br]
[b]NOTE[/b][br]
This feature is currently work in progress: the scripting engine
- is not yet fully unicode and thus some more exotic translations may still suffer...
+ is not yet fully tqunicode and thus some more exotic translations may still suffer...
@seealso:
[fnc]$tr[/fnc], [cmd]trunload[/cmd]
*/
KVSCSC(trload)
{
- QString szCatalogue,szDir;
+ TQString szCatalogue,szDir;
KVSCSC_PARAMETERS_BEGIN
KVSCSC_PARAMETER("catalogue",KVS_PT_NONEMPTYSTRING,0,szCatalogue)
KVSCSC_PARAMETER("catalogueDir",KVS_PT_STRING,KVS_PF_OPTIONAL,szDir)
@@ -702,7 +702,7 @@ namespace KviKvsCoreSimpleCommands
if(KviLocale::loadCatalogue(szCatalogue,szDir))
return true;
- if(KVSCSC_pSwitches->find('v',"verbose"))
+ if(KVSCSC_pSwitches->tqfind('v',"verbose"))
KVSCSC_pContext->warning(__tr2qs("No catalogue %Q for the current language found"),&szCatalogue);
return true;
@@ -734,14 +734,14 @@ namespace KviKvsCoreSimpleCommands
KVSCSC(trunload)
{
- QString szCatalogue;
+ TQString szCatalogue;
KVSCSC_PARAMETERS_BEGIN
KVSCSC_PARAMETER("catalogue",KVS_PT_NONEMPTYSTRING,0,szCatalogue)
KVSCSC_PARAMETERS_END
if(!KviLocale::unloadCatalogue(szCatalogue))
{
- if(KVSCSC_pSwitches->find('v',"verbose"))
+ if(KVSCSC_pSwitches->tqfind('v',"verbose"))
KVSCSC_pContext->warning(__tr2qs("The catalogue %Q was not loaded"),&szCatalogue);
}
return true;
@@ -756,11 +756,11 @@ namespace KviKvsCoreSimpleCommands
@title:
unban
@syntax:
- unban <mask_list>
+ unban <tqmask_list>
@short:
- Unsets ban masks for the channel
+ Unsets ban tqmasks for the channel
@description:
- Removes the ban masks specified in the <mask_list>,
+ Removes the ban tqmasks specified in the <tqmask_list>,
which is a comma separated list of nicknames.
This command works only if executed in a channel window.
The command is translated to a set of MODE messages containing
@@ -859,7 +859,7 @@ namespace KviKvsCoreSimpleCommands
KVSCSC(warning)
{
- QString szAll;
+ TQString szAll;
KVSCSC_pParams->allAsString(szAll);
KVSCSC_pContext->warning("%Q",&szAll);
@@ -875,7 +875,7 @@ namespace KviKvsCoreSimpleCommands
@title:
who
@syntax:
- who {[mask] | [channel]}
+ who {[tqmask] | [channel]}
@short:
Requests WHO information
@description:
@@ -919,12 +919,12 @@ namespace KviKvsCoreSimpleCommands
KVSCSC(whois)
{
- QString szNick;
+ TQString szNick;
KVSCSC_PARAMETERS_BEGIN
KVSCSC_PARAMETER("nickname",KVS_PT_NONEMPTYSTRING,KVS_PF_APPENDREMAINING,szNick)
KVSCSC_PARAMETERS_END
- KviQCString szData = KVSCSC_pContext->window()->encodeText(szNick);
+ KviTQCString szData = KVSCSC_pContext->window()->encodeText(szNick);
if(!KVSCSC_pContext->connection())return KVSCSC_pContext->warningNoIrcConnection();
if(!KVSCSC_pContext->connection()->sendFmtData("WHOIS %s",szData.data()))return KVSCSC_pContext->warningNoIrcConnection();
@@ -959,12 +959,12 @@ namespace KviKvsCoreSimpleCommands
KVSCSC(whowas)
{
- QString szNick;
+ TQString szNick;
KVSCSC_PARAMETERS_BEGIN
KVSCSC_PARAMETER("nickname",KVS_PT_NONEMPTYSTRING,KVS_PF_APPENDREMAINING,szNick)
KVSCSC_PARAMETERS_END
- KviQCString szData = KVSCSC_pContext->window()->encodeText(szNick);
+ KviTQCString szData = KVSCSC_pContext->window()->encodeText(szNick);
if(!KVSCSC_pContext->connection())return KVSCSC_pContext->warningNoIrcConnection();
if(!KVSCSC_pContext->connection()->sendFmtData("WHOWAS %s",szData.data()))return KVSCSC_pContext->warningNoIrcConnection();