summaryrefslogtreecommitdiff
path: root/src/discovery-client.h
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-04-28 14:05:57 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-04-28 16:08:12 +0100
commit243c0b73d7ed3db43d13e37828bd28cb10c16cd6 (patch)
treebf4b4e584c17bfb04cbcda15663eaea945b0baf6 /src/discovery-client.h
parentc1790e71e42d774923b7c8273ea617a22b69acdb (diff)
downloadtelepathy-salut-243c0b73d7ed3db43d13e37828bd28cb10c16cd6.tar.gz
src: remove annoying salut- prefix
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src/discovery-client.h')
-rw-r--r--src/discovery-client.h112
1 files changed, 112 insertions, 0 deletions
diff --git a/src/discovery-client.h b/src/discovery-client.h
new file mode 100644
index 00000000..e741a275
--- /dev/null
+++ b/src/discovery-client.h
@@ -0,0 +1,112 @@
+/*
+ * discovery-client.h - Header for SalutDiscoveryClient interface
+ * Copyright (C) 2008 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
+ */
+
+#ifndef __SALUT_DISCOVERY_CLIENT_H__
+#define __SALUT_DISCOVERY_CLIENT_H__
+
+#include <glib-object.h>
+
+#include "muc-manager.h"
+#include "contact-manager.h"
+#include "roomlist-manager.h"
+#include "self.h"
+#ifdef ENABLE_OLPC
+#include "olpc-activity-manager.h"
+#endif
+
+G_BEGIN_DECLS
+
+typedef enum
+{
+ SALUT_DISCOVERY_CLIENT_STATE_DISCONNECTED,
+ SALUT_DISCOVERY_CLIENT_STATE_CONNECTING,
+ SALUT_DISCOVERY_CLIENT_STATE_DISCONNECTING,
+ SALUT_DISCOVERY_CLIENT_STATE_CONNECTED,
+ NUM_SALUT_DISCOVERY_CLIENT_STATE
+} SalutDiscoveryClientState;
+
+typedef struct _SalutDiscoveryClient SalutDiscoveryClient;
+typedef struct _SalutDiscoveryClientClass SalutDiscoveryClientClass;
+
+struct _SalutDiscoveryClientClass
+{
+ GTypeInterface parent;
+
+ gboolean (*start) (SalutDiscoveryClient *clt, GError **error);
+ SalutMucManager * (*create_muc_manager) (SalutDiscoveryClient *clt,
+ SalutConnection *connection);
+ SalutRoomlistManager * (*create_roomlist_manager) (SalutDiscoveryClient *clt,
+ SalutConnection *connection);
+ SalutContactManager * (*create_contact_manager) (SalutDiscoveryClient *clt,
+ SalutConnection *connection);
+#ifdef ENABLE_OLPC
+ SalutOlpcActivityManager * (*create_olpc_activity_manager) (
+ SalutDiscoveryClient *clt, SalutConnection *connection);
+#endif
+ SalutSelf * (*create_self) (SalutDiscoveryClient *clt, SalutConnection *conn,
+ const gchar *nickname, const gchar *first_name, const gchar *last_name,
+ const gchar *jid, const gchar *email, const gchar *published_name,
+ const GArray *olpc_key, const gchar *olpc_color);
+
+ const gchar * (*get_host_name_fqdn) (SalutDiscoveryClient *clt);
+};
+
+GType salut_discovery_client_get_type (void);
+
+/* TYPE MACROS */
+#define SALUT_TYPE_DISCOVERY_CLIENT \
+ (salut_discovery_client_get_type ())
+#define SALUT_DISCOVERY_CLIENT(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), SALUT_TYPE_DISCOVERY_CLIENT, \
+ SalutDiscoveryClient))
+#define SALUT_IS_DISCOVERY_CLIENT(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), SALUT_TYPE_DISCOVERY_CLIENT))
+#define SALUT_DISCOVERY_CLIENT_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SALUT_TYPE_DISCOVERY_CLIENT,\
+ SalutDiscoveryClientClass))
+
+gboolean salut_discovery_client_start (SalutDiscoveryClient *clt,
+ GError **error);
+
+SalutMucManager * salut_discovery_client_create_muc_manager (
+ SalutDiscoveryClient *clt, SalutConnection *connection);
+
+SalutRoomlistManager * salut_discovery_client_create_roomlist_manager (
+ SalutDiscoveryClient *clt, SalutConnection *connection);
+
+SalutContactManager * salut_discovery_client_create_contact_manager (
+ SalutDiscoveryClient *clt, SalutConnection *connection);
+
+#ifdef ENABLE_OLPC
+SalutOlpcActivityManager * salut_discovery_client_create_olpc_activity_manager (
+ SalutDiscoveryClient *clt, SalutConnection *connection);
+#endif
+
+SalutSelf * salut_discovery_client_create_self (
+ SalutDiscoveryClient *clt, SalutConnection *connection,
+ const gchar *nickname, const gchar *first_name, const gchar *last_name,
+ const gchar *jid, const gchar *email, const gchar *published_name,
+ const GArray *olpc_key, const gchar *olpc_color);
+
+const gchar * salut_discovery_client_get_host_name_fqdn (
+ SalutDiscoveryClient *clt);
+
+G_END_DECLS
+
+#endif /* #ifndef __SALUT_DISCOVERY_CLIENT_H__ */