diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-02-08 00:14:58 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:15:01 +0100 |
commit | d30c101e53d974abdb1e9242b301104d0ffd9167 (patch) | |
tree | 5543f2ad2ec3036be6816ac85cc8bac6cb47fe7b /libmm-glib/mm-sms-properties.h | |
parent | 76aaac23ec3ad86a02fe283179dc5bd022f17b78 (diff) |
libmm-glib: new common object to handle SMS properties
To be used when requesting to create new SMS.
Diffstat (limited to 'libmm-glib/mm-sms-properties.h')
-rw-r--r-- | libmm-glib/mm-sms-properties.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/libmm-glib/mm-sms-properties.h b/libmm-glib/mm-sms-properties.h new file mode 100644 index 00000000..f37e499d --- /dev/null +++ b/libmm-glib/mm-sms-properties.h @@ -0,0 +1,54 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details: + * + * Copyright (C) 2012 Google, Inc. + */ + +#ifndef MM_SMS_PROPERTIES_H +#define MM_SMS_PROPERTIES_H + +#include <ModemManager.h> +#include <glib-object.h> + +#include <libmm-common.h> + +G_BEGIN_DECLS + +typedef MMCommonSmsProperties MMSmsProperties; +#define MM_TYPE_SMS_PROPERTIES(o) MM_TYPE_COMMON_SMS_PROPERTIES (o) +#define MM_SMS_PROPERTIES(o) MM_COMMON_SMS_PROPERTIES(o) +#define MM_IS_SMS_PROPERTIES(o) MM_IS_COMMON_SMS_PROPERTIES(o) + +MMSmsProperties *mm_sms_properties_new (void); +MMSmsProperties *mm_sms_properties_new_from_string ( + const gchar *str, + GError **error); + +void mm_sms_properties_set_text ( + MMSmsProperties *properties, + const gchar *text); +void mm_sms_properties_set_number ( + MMSmsProperties *properties, + const gchar *number); +void mm_sms_properties_set_smsc ( + MMSmsProperties *properties, + const gchar *smsc); +void mm_sms_properties_set_validity ( + MMSmsProperties *properties, + guint validity); +void mm_sms_properties_set_class ( + MMSmsProperties *properties, + guint class); + +G_END_DECLS + +#endif /* MM_SMS_PROPERTIES_H */ |