mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@8004 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c99da1dd27
commit
697606b0a7
2 changed files with 10 additions and 7 deletions
|
|
@ -119,22 +119,24 @@ RpcGet RpcRequest::Execute()
|
|||
request = XmlHeader();
|
||||
request << XmlTag("methodCall")(XmlTag("methodName")(method) + FormatXmlRpcParams(data.out));
|
||||
}
|
||||
if(sLogRpcCalls)
|
||||
if(sLogRpcCalls) {
|
||||
if(sLogRpcCallsCompress)
|
||||
RLOG("XmlRpc call request:\n" << CompressLog(request));
|
||||
else
|
||||
RLOG("XmlRpc call request:\n" << request);
|
||||
}
|
||||
String response;
|
||||
New();
|
||||
if(shorted)
|
||||
response = RpcExecute(request, "", "127.0.0.1");
|
||||
else
|
||||
response = Post(request).Execute();
|
||||
if(sLogRpcCalls)
|
||||
if(sLogRpcCalls) {
|
||||
if(sLogRpcCallsCompress)
|
||||
RLOG("XmlRpc call response:\n" << CompressLog(response));
|
||||
else
|
||||
RLOG("XmlRpc call response:\n" << response);
|
||||
}
|
||||
RpcGet h;
|
||||
if(IsNull(response)) {
|
||||
faultCode = RPC_CLIENT_HTTP_ERROR;
|
||||
|
|
|
|||
|
|
@ -798,11 +798,12 @@ static void LinuxBeep(const char *name)
|
|||
}
|
||||
|
||||
String fn = "/usr/share/sounds/" + CurrentSoundTheme + "/stereo/dialog-" + name;
|
||||
system(player + " -q " + fn + (FileExists(fn + ".ogg") ? ".ogg" :
|
||||
FileExists(fn + ".oga") ? ".oga" :
|
||||
FileExists(fn + ".wav") ? ".wav" :
|
||||
".*")
|
||||
+ " >/dev/null 2>/dev/null&");
|
||||
IGNORE_RESULT(system(player + " -q " + fn +
|
||||
(FileExists(fn + ".ogg") ? ".ogg" :
|
||||
FileExists(fn + ".oga") ? ".oga" :
|
||||
FileExists(fn + ".wav") ? ".wav" :
|
||||
".*")
|
||||
+ " >/dev/null 2>/dev/null&"));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue