aboutsummaryrefslogtreecommitdiff
path: root/src/mm-sms.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm-sms.h')
-rw-r--r--src/mm-sms.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/mm-sms.h b/src/mm-sms.h
new file mode 100644
index 00000000..172c10d4
--- /dev/null
+++ b/src/mm-sms.h
@@ -0,0 +1,71 @@
+/* -*- 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:
+ *
+ * Author: Aleksander Morgado <aleksander@lanedo.com>
+ *
+ * Copyright (C) 2012 Google, Inc.
+ */
+
+#ifndef MM_SMS_H
+#define MM_SMS_H
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libmm-common.h>
+
+#include "mm-sms-part.h"
+#include "mm-base-modem.h"
+
+#define MM_TYPE_SMS (mm_sms_get_type ())
+#define MM_SMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_SMS, MMSms))
+#define MM_SMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MM_TYPE_SMS, MMSmsClass))
+#define MM_IS_SMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_SMS))
+#define MM_IS_SMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MM_TYPE_SMS))
+#define MM_SMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_TYPE_SMS, MMSmsClass))
+
+typedef struct _MMSms MMSms;
+typedef struct _MMSmsClass MMSmsClass;
+typedef struct _MMSmsPrivate MMSmsPrivate;
+
+#define MM_SMS_PATH "sms-path"
+#define MM_SMS_CONNECTION "sms-connection"
+#define MM_SMS_MODEM "sms-modem"
+#define MM_SMS_IS_MULTIPART "sms-is-multipart"
+#define MM_SMS_MAX_PARTS "sms-max-parts"
+#define MM_SMS_MULTIPART_REFERENCE "sms-multipart-reference"
+
+struct _MMSms {
+ MmGdbusSmsSkeleton parent;
+ MMSmsPrivate *priv;
+};
+
+struct _MMSmsClass {
+ MmGdbusSmsSkeletonClass parent;
+};
+
+GType mm_sms_get_type (void);
+
+MMSms *mm_sms_new (MMSmsPart *part);
+
+MMSms *mm_sms_multipart_new (guint reference,
+ guint max_parts,
+ MMSmsPart *first_part);
+gboolean mm_sms_multipart_take_part (MMSms *self,
+ MMSmsPart *part,
+ GError **error);
+
+void mm_sms_export (MMSms *self);
+const gchar *mm_sms_get_path (MMSms *self);
+gboolean mm_sms_is_multipart (MMSms *self);
+
+#endif /* MM_SMS_H */