summaryrefslogtreecommitdiff
path: root/telepathy-logger/conf.h
diff options
context:
space:
mode:
authorCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-01-14 17:23:58 +0000
committerCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-01-14 17:23:58 +0000
commit29c7fb4da417adebc65b7a0a44ee49a0bfdd2797 (patch)
tree5ea4482ad66b2cf3d8ca70ed3db485f52df5f403 /telepathy-logger/conf.h
parentc5a57433eb4c2ade0fc110d98093eea2bb42de3e (diff)
downloadtelepathy-logger-29c7fb4da417adebc65b7a0a44ee49a0bfdd2797.tar.gz
GConf enabled
* gconf enabled using TplConf. Schema defined in telepathy-logger.schemas file * fixes for the Async API * add_message and add_message_async modified: chat_id, is_chatroom not needed anymore, while using TplLogEntry
Diffstat (limited to 'telepathy-logger/conf.h')
-rw-r--r--telepathy-logger/conf.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/telepathy-logger/conf.h b/telepathy-logger/conf.h
new file mode 100644
index 0000000..4dc0798
--- /dev/null
+++ b/telepathy-logger/conf.h
@@ -0,0 +1,70 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * Copyright (C) 2009 Collabora Ltd.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Authors: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
+ */
+
+#ifndef __TPL_CONF_H__
+#define __TPL_CONF_H__
+
+#include <gconf/gconf-client.h>
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define TPL_TYPE_CONF (tpl_conf_get_type ())
+#define TPL_CONF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TPL_TYPE_CONF, TplConf))
+#define TPL_CONF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TPL_TYPE_CONF, TplConfClass))
+#define TPL_IS_CONF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TPL_TYPE_CONF))
+#define TPL_IS_CONF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TPL_TYPE_CONF))
+#define TPL_CONF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TPL_TYPE_CONF, TplConfClass))
+
+typedef struct
+{
+ GObject parent;
+
+ /* private */
+ gpointer priv;
+} TplConf;
+
+typedef struct
+{
+ GObjectClass parent_class;
+} TplConfClass;
+
+GType tpl_conf_get_type (void);
+
+TplConf *tpl_conf_dup (void);
+
+GConfClient *tpl_conf_get_gconf_client(TplConf *self);
+
+gboolean tpl_conf_is_globally_enabled (TplConf * self, GError **error);
+
+void tpl_conf_set_accounts_ignorelist (TplConf *self, GSList *newlist, GError
+ **error);
+
+void tpl_conf_togle_globally_enable (TplConf *self, gboolean enable, GError **error);
+
+GSList *tpl_conf_get_accounts_ignorelist (TplConf * self, GError **error);
+
+gboolean tpl_conf_is_account_ignored (TplConf *self, const gchar *account_path, GError **error);
+
+
+G_END_DECLS
+
+#endif // __TPL_CONF_H__