7 Teleservice Application Framework
User Manual
147/374
Output Information
Parameter
Range
Description
opt_msg
DBus_Message
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);
Summary of Contents for TC1
Page 1: ...TC1 User Manual Version of this document V1 00r0 ...
Page 25: ...5 Hardware User Manual 25 374 5 2 2 Block Diagram Variant TC1 WIFI ...
Page 34: ...5 Hardware User Manual 34 374 5 6 Housing Connector Top view and side view Bottom View ...
Page 125: ...7 Teleservice Application Framework User Manual 125 374 TAF overview ...
Page 190: ...7 Teleservice Application Framework User Manual 190 374 How the logger mechanism works ...