iface-modem-messaging: new properties to define preferred mem1/mem2/mem3 storages
This commit is contained in:
@@ -786,7 +786,6 @@ interface_initialization_step (InitializationContext *ctx)
|
|||||||
/* If there is no implementation to check support, assume we DON'T
|
/* If there is no implementation to check support, assume we DON'T
|
||||||
* support it. */
|
* support it. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fall down to next step */
|
/* Fall down to next step */
|
||||||
ctx->step++;
|
ctx->step++;
|
||||||
|
|
||||||
@@ -931,6 +930,33 @@ iface_modem_messaging_init (gpointer g_iface)
|
|||||||
FALSE,
|
FALSE,
|
||||||
G_PARAM_READWRITE));
|
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;
|
initialized = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -28,9 +28,12 @@
|
|||||||
#define MM_IS_IFACE_MODEM_MESSAGING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_IFACE_MODEM_MESSAGING))
|
#define MM_IS_IFACE_MODEM_MESSAGING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_IFACE_MODEM_MESSAGING))
|
||||||
#define MM_IFACE_MODEM_MESSAGING_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), MM_TYPE_IFACE_MODEM_MESSAGING, MMIfaceModemMessaging))
|
#define MM_IFACE_MODEM_MESSAGING_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), MM_TYPE_IFACE_MODEM_MESSAGING, MMIfaceModemMessaging))
|
||||||
|
|
||||||
#define MM_IFACE_MODEM_MESSAGING_DBUS_SKELETON "iface-modem-messaging-dbus-skeleton"
|
#define MM_IFACE_MODEM_MESSAGING_DBUS_SKELETON "iface-modem-messaging-dbus-skeleton"
|
||||||
#define MM_IFACE_MODEM_MESSAGING_SMS_LIST "iface-modem-messaging-sms-list"
|
#define MM_IFACE_MODEM_MESSAGING_SMS_LIST "iface-modem-messaging-sms-list"
|
||||||
#define MM_IFACE_MODEM_MESSAGING_SMS_PDU_MODE "iface-modem-messaging-sms-pdu-mode"
|
#define MM_IFACE_MODEM_MESSAGING_SMS_PDU_MODE "iface-modem-messaging-sms-pdu-mode"
|
||||||
|
#define MM_IFACE_MODEM_MESSAGING_SMS_MEM1_STORAGE "iface-modem-messaging-sms-mem1-storage"
|
||||||
|
#define MM_IFACE_MODEM_MESSAGING_SMS_MEM2_STORAGE "iface-modem-messaging-sms-mem2-storage"
|
||||||
|
#define MM_IFACE_MODEM_MESSAGING_SMS_MEM3_STORAGE "iface-modem-messaging-sms-mem3-storage"
|
||||||
|
|
||||||
typedef struct _MMIfaceModemMessaging MMIfaceModemMessaging;
|
typedef struct _MMIfaceModemMessaging MMIfaceModemMessaging;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user