7 Teleservice Application Framework
User Manual 147/374
Output Information
Object representing a message received
from or to be sent to another application.
For receiving all information, add the following dbus rules to your source code:
dbus_bus_add_match(mt_dbus_util.pt_dbus_conn, "type='signal',interface='stw.taf.ysmsd'",
NULL);
dbus_bus_add_match(mt_dbus_util.pt_dbus_conn,
"type='signal',interface='stw.taf.ynetworkd'", NULL);
dbus_bus_add_match(mt_dbus_util.pt_dbus_conn,
"type='signal',interface='stw.taf.broadcast'", NULL);
Example
// Global module
static void mv_SMS_Callback (const charn * const opcn_PhoneNumber, const charn * const
opcn_Message)
{
// TODO
}
static void mv_Hello_Callback (const charn * const opcn_DaemonName)
{
// TODO
}
static void mv_NetworkNotification_Callback (const charn * const opcn_InterfaceName, const
charn * const opcn_InterfaceStatus)
{
// TODO
}
static void mv_Goodbye_Callback (const charn * const opcn_DaemonName)
{
// TODO
}
static void mv_NRTI_Callback (const charn * const opcn_NetworkTimeIndicator)
{
// TODO
}
static void mv_WhoIsThere_Callback (const charn * const opcn_DaemonName)
{
// TODO
}
static void mv_UserDBusMessage (DBusMessage * const opt_msg)
{
// TODO
}
// module global variables
static T_DBUS_Util mt_dbus_util;
// main function
int main(int argc, char** argv)
{
// Init stuff ...
...
// Add rules for which messages must be seen on the DBUS
dbus_bus_add_match(mt_dbus_util.pt_dbus_conn,
"type='signal',interface='stw.taf.broadcast'", NULL);