aboutsummaryrefslogtreecommitdiff
path: root/src/mm-sms-list.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-02-01 09:51:57 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:59 +0100
commitfba16a2a2c1bccf8bef6181b09fda07752f8f7a2 (patch)
treebe279973b68028b5f8ee8aff24a0e279a967993f /src/mm-sms-list.h
parentad8fbcd1a6b37aabc18b14864eecc17f48a1b927 (diff)
sms-list: new object to handle SMS objects and SMS parts
Diffstat (limited to 'src/mm-sms-list.h')
-rw-r--r--src/mm-sms-list.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/mm-sms-list.h b/src/mm-sms-list.h
new file mode 100644
index 00000000..db39613c
--- /dev/null
+++ b/src/mm-sms-list.h
@@ -0,0 +1,59 @@
+/* -*- 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_LIST_H
+#define MM_SMS_LIST_H
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include "mm-base-modem.h"
+#include "mm-sms-part.h"
+
+#define MM_TYPE_SMS_LIST (mm_sms_list_get_type ())
+#define MM_SMS_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_SMS_LIST, MMSmsList))
+#define MM_SMS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MM_TYPE_SMS_LIST, MMSmsListClass))
+#define MM_IS_SMS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_SMS_LIST))
+#define MM_IS_SMS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MM_TYPE_SMS_LIST))
+#define MM_SMS_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_TYPE_SMS_LIST, MMSmsListClass))
+
+typedef struct _MMSmsList MMSmsList;
+typedef struct _MMSmsListClass MMSmsListClass;
+typedef struct _MMSmsListPrivate MMSmsListPrivate;
+
+#define MM_SMS_LIST_MODEM "sms-list-modem"
+
+struct _MMSmsList {
+ GObject parent;
+ MMSmsListPrivate *priv;
+};
+
+struct _MMSmsListClass {
+ GObjectClass parent;
+};
+
+GType mm_sms_list_get_type (void);
+
+MMSmsList *mm_sms_list_new (MMBaseModem *modem);
+
+GStrv mm_sms_list_get_paths (MMSmsList *self);
+guint mm_sms_list_get_count (MMSmsList *self);
+
+gboolean mm_sms_list_take_part (MMSmsList *self,
+ MMSmsPart *part,
+ gboolean received,
+ GError **error);
+
+#endif /* MM_SMS_LIST_H */