iface-modem-messaging: new properties to define preferred mem1/mem2/mem3 storages

This commit is contained in:
Aleksander Morgado
2012-02-09 23:47:36 +01:00
parent 55ba297fb8
commit f6ef117d32
2 changed files with 33 additions and 4 deletions

View File

@@ -786,7 +786,6 @@ interface_initialization_step (InitializationContext *ctx)
/* If there is no implementation to check support, assume we DON'T
* support it. */
}
/* Fall down to next step */
ctx->step++;
@@ -931,6 +930,33 @@ iface_modem_messaging_init (gpointer g_iface)
FALSE,
G_PARAM_READWRITE));
g_object_interface_install_property
(g_iface,
g_param_spec_enum (MM_IFACE_MODEM_MESSAGING_SMS_MEM1_STORAGE,
"SMS mem1 storage",
"Default storage to be used when listing/reading/deleting SMS messages",
MM_TYPE_SMS_STORAGE,
MM_SMS_STORAGE_ME,
G_PARAM_READWRITE));
g_object_interface_install_property
(g_iface,
g_param_spec_enum (MM_IFACE_MODEM_MESSAGING_SMS_MEM2_STORAGE,
"SMS mem2 storage",
"Default storage to be used when writing/sending SMS messages",
MM_TYPE_SMS_STORAGE,
MM_SMS_STORAGE_ME,
G_PARAM_READWRITE));
g_object_interface_install_property
(g_iface,
g_param_spec_enum (MM_IFACE_MODEM_MESSAGING_SMS_MEM3_STORAGE,
"SMS mem3 storage",
"Default storage to be used when receiving SMS messages",
MM_TYPE_SMS_STORAGE,
MM_SMS_STORAGE_ME,
G_PARAM_READWRITE));
initialized = TRUE;
}