FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
DBusMessage* SkypeClient::GetDBusMessage
(
const string &
cmd
)
inline
private
Definition at line
252
of file
skypeclient.cc
.
References
Error()
.
253
{
254
// Create a message to be sent to Skype
255
256
// Constructs a new message to invoke a method on a remote object.
257
// Sets the service the message should be sent to "com.Skype.API"
258
// Sets the object path the message should be sent to "/com/Skype"
259
// Sets the interface to invoke method on to "com.Skype.API"
260
// Sets the method to invoke to "Invoke"
261
DBusMessage *send=
262
dbus_message_new_method_call(
"com.Skype.API"
,
"/com/Skype"
,
263
"com.Skype.API"
,
"Invoke"
);
264
if
(!send)
265
{
266
Error
(
"dbus_message_new_method_call failed."
);
267
return
NULL;
268
}
269
270
// Set the argument of the Invoke method
271
// Sets arg to be an argument to be passed to the Invoke method.
272
// It is an input argument. It has a type string.
273
// There are no output arguments.
274
const
char
*msg = cmd.c_str();
275
dbus_message_append_args(send,
276
DBUS_TYPE_STRING, &msg,
277
DBUS_TYPE_INVALID);
278
279
return
send;
280
}
MessageImp::Error
int Error(const std::string &str)
Definition:
MessageImp.h:49
Here is the call graph for this function:
SkypeClient
Generated on Sun Sep 18 2016 20:50:58 for FACT++ by
1.8.11