From f5749045eb45d050fd10913c442d8c16a805f025 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 6 Feb 2007 18:02:40 +0000 Subject: Delete the generate directory, no longer needed now we've implemented everything in terms of telepathy-glib 20070206180240-53eee-f60fc3414006e333e08607e2de79ac916a1ce647.gz --- Makefile.am | 2 +- configure.ac | 1 - generate/.git-darcs-dir | 0 generate/Makefile.am | 8 - generate/README | 21 - generate/async_annotate.py | 59 -- generate/async_implementations | 13 - generate/do_src.sh | 47 -- generate/do_xml.sh | 24 - generate/gabble.def | 9 - generate/src/.git-darcs-dir | 0 .../gabble-connection-manager-signals-marshal.list | 1 - generate/src/gabble-connection-manager.c | 183 ----- generate/src/gabble-connection-manager.h | 81 -- .../src/gabble-connection-signals-marshal.list | 3 - generate/src/gabble-connection.c | 840 --------------------- generate/src/gabble-connection.h | 237 ------ .../src/gabble-im-channel-signals-marshal.list | 3 - generate/src/gabble-im-channel.c | 326 -------- generate/src/gabble-im-channel.h | 104 --- .../src/gabble-media-channel-signals-marshal.list | 5 - generate/src/gabble-media-channel.c | 582 -------------- generate/src/gabble-media-channel.h | 160 ---- .../src/gabble-media-session-signals-marshal.list | 1 - generate/src/gabble-media-session.c | 158 ---- generate/src/gabble-media-session.h | 72 -- .../src/gabble-media-stream-signals-marshal.list | 2 - generate/src/gabble-media-stream.c | 377 --------- generate/src/gabble-media-stream.h | 109 --- .../src/gabble-muc-channel-signals-marshal.list | 5 - generate/src/gabble-muc-channel.c | 670 ---------------- generate/src/gabble-muc-channel.h | 180 ----- .../gabble-roomlist-channel-signals-marshal.list | 0 generate/src/gabble-roomlist-channel.c | 261 ------- generate/src/gabble-roomlist-channel.h | 91 --- .../src/gabble-roster-channel-signals-marshal.list | 2 - generate/src/gabble-roster-channel.c | 414 ---------- generate/src/gabble-roster-channel.h | 132 ---- generate/src/telepathy-errors.h | 61 -- generate/xml-modified/.git-darcs-dir | 0 .../xml-modified/gabble-connection-manager.xml | 23 - generate/xml-modified/gabble-connection.xml | 173 ----- generate/xml-modified/gabble-im-channel.xml | 53 -- generate/xml-modified/gabble-media-channel.xml | 112 --- generate/xml-modified/gabble-media-session.xml | 16 - generate/xml-modified/gabble-media-stream.xml | 57 -- generate/xml-modified/gabble-muc-channel.xml | 133 ---- generate/xml-modified/gabble-roomlist-channel.xml | 29 - generate/xml-modified/gabble-roster-channel.xml | 64 -- generate/xml-pristine/.git-darcs-dir | 0 .../xml-pristine/gabble-connection-manager.xml | 23 - generate/xml-pristine/gabble-connection.xml | 162 ---- generate/xml-pristine/gabble-im-channel.xml | 53 -- generate/xml-pristine/gabble-media-channel.xml | 112 --- generate/xml-pristine/gabble-media-session.xml | 16 - generate/xml-pristine/gabble-media-stream.xml | 57 -- generate/xml-pristine/gabble-muc-channel.xml | 131 ---- generate/xml-pristine/gabble-roomlist-channel.xml | 29 - generate/xml-pristine/gabble-roster-channel.xml | 64 -- 59 files changed, 1 insertion(+), 6550 deletions(-) delete mode 100644 generate/.git-darcs-dir delete mode 100644 generate/Makefile.am delete mode 100644 generate/README delete mode 100644 generate/async_annotate.py delete mode 100644 generate/async_implementations delete mode 100644 generate/do_src.sh delete mode 100644 generate/do_xml.sh delete mode 100644 generate/gabble.def delete mode 100644 generate/src/.git-darcs-dir delete mode 100644 generate/src/gabble-connection-manager-signals-marshal.list delete mode 100644 generate/src/gabble-connection-manager.c delete mode 100644 generate/src/gabble-connection-manager.h delete mode 100644 generate/src/gabble-connection-signals-marshal.list delete mode 100644 generate/src/gabble-connection.c delete mode 100644 generate/src/gabble-connection.h delete mode 100644 generate/src/gabble-im-channel-signals-marshal.list delete mode 100644 generate/src/gabble-im-channel.c delete mode 100644 generate/src/gabble-im-channel.h delete mode 100644 generate/src/gabble-media-channel-signals-marshal.list delete mode 100644 generate/src/gabble-media-channel.c delete mode 100644 generate/src/gabble-media-channel.h delete mode 100644 generate/src/gabble-media-session-signals-marshal.list delete mode 100644 generate/src/gabble-media-session.c delete mode 100644 generate/src/gabble-media-session.h delete mode 100644 generate/src/gabble-media-stream-signals-marshal.list delete mode 100644 generate/src/gabble-media-stream.c delete mode 100644 generate/src/gabble-media-stream.h delete mode 100644 generate/src/gabble-muc-channel-signals-marshal.list delete mode 100644 generate/src/gabble-muc-channel.c delete mode 100644 generate/src/gabble-muc-channel.h delete mode 100644 generate/src/gabble-roomlist-channel-signals-marshal.list delete mode 100644 generate/src/gabble-roomlist-channel.c delete mode 100644 generate/src/gabble-roomlist-channel.h delete mode 100644 generate/src/gabble-roster-channel-signals-marshal.list delete mode 100644 generate/src/gabble-roster-channel.c delete mode 100644 generate/src/gabble-roster-channel.h delete mode 100644 generate/src/telepathy-errors.h delete mode 100644 generate/xml-modified/.git-darcs-dir delete mode 100644 generate/xml-modified/gabble-connection-manager.xml delete mode 100644 generate/xml-modified/gabble-connection.xml delete mode 100644 generate/xml-modified/gabble-im-channel.xml delete mode 100644 generate/xml-modified/gabble-media-channel.xml delete mode 100644 generate/xml-modified/gabble-media-session.xml delete mode 100644 generate/xml-modified/gabble-media-stream.xml delete mode 100644 generate/xml-modified/gabble-muc-channel.xml delete mode 100644 generate/xml-modified/gabble-roomlist-channel.xml delete mode 100644 generate/xml-modified/gabble-roster-channel.xml delete mode 100644 generate/xml-pristine/.git-darcs-dir delete mode 100644 generate/xml-pristine/gabble-connection-manager.xml delete mode 100644 generate/xml-pristine/gabble-connection.xml delete mode 100644 generate/xml-pristine/gabble-im-channel.xml delete mode 100644 generate/xml-pristine/gabble-media-channel.xml delete mode 100644 generate/xml-pristine/gabble-media-session.xml delete mode 100644 generate/xml-pristine/gabble-media-stream.xml delete mode 100644 generate/xml-pristine/gabble-muc-channel.xml delete mode 100644 generate/xml-pristine/gabble-roomlist-channel.xml delete mode 100644 generate/xml-pristine/gabble-roster-channel.xml diff --git a/Makefile.am b/Makefile.am index 99b979ec4..0e12a88b3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = lib src data m4 generate tests +SUBDIRS = lib src data m4 tests dist-hook: chmod a+w ${distdir}/ChangeLog diff --git a/configure.ac b/configure.ac index 817c4c4ed..4aad06678 100644 --- a/configure.ac +++ b/configure.ac @@ -164,6 +164,5 @@ AC_OUTPUT( Makefile \ src/Makefile \ m4/Makefile \ data/Makefile \ - generate/Makefile \ tests/Makefile ) diff --git a/generate/.git-darcs-dir b/generate/.git-darcs-dir deleted file mode 100644 index e69de29bb..000000000 diff --git a/generate/Makefile.am b/generate/Makefile.am deleted file mode 100644 index 8baf14166..000000000 --- a/generate/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -EXTRA_DIST = \ - do_src.sh \ - do_xml.sh \ - gabble.def \ - src \ - xml-pristine \ - xml-modified - diff --git a/generate/README b/generate/README deleted file mode 100644 index 1e86148ca..000000000 --- a/generate/README +++ /dev/null @@ -1,21 +0,0 @@ -Source code in this tree was originally generated from a magical gobject -generation tool called gengobject.py. It takes D-Bus XML introspection data and -outputs source, header and other files like signal marshallers. To read the XML -from generate/xml-modified/ directory, and output new source in the -generate/src/ directory, where changes can be reveiwed and applied to the src/ -directory by hand, run generate/do_src.sh. - -The XML is generated from the Python classes which are the current canonical -definition of the Telepathy interfaces, according to the definitions in -xml.def, and the list of methods which are to be implemented as asynchronous -in async_implementations. To generate the XML run generate/do_xml.sh. This is -a two-stage process: firstly, the "pristine" XML in generate/xml-pristine/ -is generated from the Python classes and xml.def, and secondly, the "modified" -XML in generate/xml-modified/ is generated by patching xml-pristine/ according -to async_implementations. - -Applying the changes to the C source can be as easy as: - darcs diff -u generate/src | patch -d src -Patch does a much better job of applying generated changes to the modified code -than darcs did when pulling patches from seperate trees (xml -> generate -> -live). diff --git a/generate/async_annotate.py b/generate/async_annotate.py deleted file mode 100644 index f05c0674f..000000000 --- a/generate/async_annotate.py +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/python2.4 - -import sys - -try: - from elementtree.ElementTree import fromstring, tostring, ElementTree, Element -except ImportError: - print "You need to install ElementTree (http://effbot.org/zone/element-index.htm)" - sys.exit(1) - -from xml.dom.minidom import parseString -from telepathy.server import * - -import sys - -def strip (element): - if element.text: - element.text = element.text.strip() - if element.tail: - element.tail = element.tail.strip() - for child in element: - strip (child) - -class AsyncAnnotation: - def __init__(self, line): - self.cls, self.interface, self.method = line.strip().split() - -def annotate(root, annotations): - assert root.tag == 'node' - annotations = [a for a in annotations if root.get('name') == '/' + a.cls] - - for interface_elt in root: - if interface_elt.tag != 'interface': - continue - for method_elt in interface_elt: - if method_elt.tag != 'method': - continue - for a in annotations: - if (interface_elt.get('name') == a.interface - and method_elt.get('name') == a.method): - a_elt = Element('annotation', - name='org.freedesktop.DBus.GLib.Async', - value='') - method_elt.insert(0, a_elt) - -if __name__ == '__main__': - annotations = [AsyncAnnotation(line) for line in file(sys.argv[1])] - - root = ElementTree(file=sys.argv[2]).getroot() - annotate(root, annotations) - - # pretty print - strip(root) - xml = tostring(root) - dom = parseString(xml) - - output = file(sys.argv[3], 'w') - output.write(dom.toprettyxml(' ', '\n')) - output.close() diff --git a/generate/async_implementations b/generate/async_implementations deleted file mode 100644 index 5b60a9160..000000000 --- a/generate/async_implementations +++ /dev/null @@ -1,13 +0,0 @@ -GabbleConnection org.freedesktop.Telepathy.Connection.Interface.Avatars GetAvatarTokens -GabbleConnection org.freedesktop.Telepathy.Connection.Interface.Avatars RequestAvatar -GabbleConnection org.freedesktop.Telepathy.Connection.Interface.Avatars SetAvatar -GabbleConnection org.freedesktop.Telepathy.Connection HoldHandles -GabbleConnection org.freedesktop.Telepathy.Connection InspectHandles -GabbleConnection org.freedesktop.Telepathy.Connection ReleaseHandles -GabbleConnection org.freedesktop.Telepathy.Connection RequestChannel -GabbleConnection org.freedesktop.Telepathy.Connection RequestHandles -GabbleConnection org.freedesktop.Telepathy.Connection.Interface.Aliasing RequestAliases -GabbleConnection org.freedesktop.Telepathy.Connection.Interface.Presence GetPresence -GabbleConnection org.freedesktop.Telepathy.Properties SetProperties -GabbleMucChannel org.freedesktop.Telepathy.Channel.Interface.Password ProvidePassword -GabbleMucChannel org.freedesktop.Telepathy.Properties SetProperties diff --git a/generate/do_src.sh b/generate/do_src.sh deleted file mode 100644 index 1d1563d97..000000000 --- a/generate/do_src.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh - -set -e - -PYVER=2.4 -PYTHON=python$PYVER - -if [ `basename $PWD` == "generate" ]; then - TP=${TELEPATHY_SPEC:=$PWD/../../telepathy-spec} -else - TP=${TELEPATHY_SPEC:=$PWD/../telepathy-spec} -fi - -export PYTHONPATH=$TP:$PYTHONPATH - -if test -d generate; then cd generate; fi -cd src - -echo Generating GabbleConnectionManager files ... -$PYTHON $TP/tools/gengobject.py ../xml-modified/gabble-connection-manager.xml GabbleConnectionManager - -echo Generating GabbleConnection files ... -$PYTHON $TP/tools/gengobject.py ../xml-modified/gabble-connection.xml GabbleConnection - -echo Generating GabbleIMChannel files ... -$PYTHON $TP/tools/gengobject.py ../xml-modified/gabble-im-channel.xml GabbleIMChannel - -echo Generating GabbleMucChannel files ... -$PYTHON $TP/tools/gengobject.py ../xml-modified/gabble-muc-channel.xml GabbleMucChannel - -echo Generating GabbleMediaChannel files ... -$PYTHON $TP/tools/gengobject.py ../xml-modified/gabble-media-channel.xml GabbleMediaChannel - -echo Generating GabbleMediaSession files ... -$PYTHON $TP/tools/gengobject.py ../xml-modified/gabble-media-session.xml GabbleMediaSession - -echo Generating GabbleMediaStream files ... -$PYTHON $TP/tools/gengobject.py ../xml-modified/gabble-media-stream.xml GabbleMediaStream - -echo Generating GabbleRosterChannel files ... -$PYTHON $TP/tools/gengobject.py ../xml-modified/gabble-roster-channel.xml GabbleRosterChannel - -echo Generating GabbleRoomlistChannel files ... -$PYTHON $TP/tools/gengobject.py ../xml-modified/gabble-roomlist-channel.xml GabbleRoomlistChannel - -echo Generating error enums ... -$PYTHON $TP/tools/generrors.py diff --git a/generate/do_xml.sh b/generate/do_xml.sh deleted file mode 100644 index 8ac5fdaf8..000000000 --- a/generate/do_xml.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -set -e - -PYVER=2.4 -PYTHON=python$PYVER - -if [ `basename $PWD` == "generate" ]; then - TP=${TELEPATHY_SPEC:=$PWD/../../telepathy-spec} -else - TP=${TELEPATHY_SPEC:=$PWD/../telepathy-spec} -fi - -export PYTHONPATH=$TP:$PYTHONPATH - -if test -d generate; then cd generate; fi -cd xml-pristine - -echo "Generating pristine XML in generate/xml-pristine..." -$PYTHON $TP/tools/genxml.py ../gabble.def -echo "Patching XML to incorporate async annotations..." -for x in *.xml; do - $PYTHON ../async_annotate.py ../async_implementations $x ../xml-modified/$x -done diff --git a/generate/gabble.def b/generate/gabble.def deleted file mode 100644 index e12cc1ea4..000000000 --- a/generate/gabble.def +++ /dev/null @@ -1,9 +0,0 @@ -gabble-connection-manager.xml GabbleConnectionManager ConnectionManager -gabble-connection.xml GabbleConnection Connection, ConnectionInterfaceAvatars, ConnectionInterfaceAliasing, ConnectionInterfacePresence, PropertiesInterface, ConnectionInterfaceCapabilities -gabble-im-channel.xml GabbleIMChannel ChannelTypeText -gabble-muc-channel.xml GabbleMucChannel ChannelTypeText, ChannelInterfaceGroup, ChannelInterfacePassword, PropertiesInterface -gabble-roster-channel.xml GabbleRosterChannel ChannelTypeContactList, ChannelInterfaceGroup -gabble-media-channel.xml GabbleMediaChannel ChannelTypeStreamedMedia, ChannelInterfaceGroup, ChannelInterfaceMediaSignalling -gabble-media-session.xml GabbleMediaSession MediaSessionHandler -gabble-media-stream.xml GabbleMediaStream MediaStreamHandler -gabble-roomlist-channel.xml GabbleRoomlistChannel ChannelTypeRoomList diff --git a/generate/src/.git-darcs-dir b/generate/src/.git-darcs-dir deleted file mode 100644 index e69de29bb..000000000 diff --git a/generate/src/gabble-connection-manager-signals-marshal.list b/generate/src/gabble-connection-manager-signals-marshal.list deleted file mode 100644 index 41e40276c..000000000 --- a/generate/src/gabble-connection-manager-signals-marshal.list +++ /dev/null @@ -1 +0,0 @@ -VOID:STRING,STRING,STRING diff --git a/generate/src/gabble-connection-manager.c b/generate/src/gabble-connection-manager.c deleted file mode 100644 index 2969b6eb5..000000000 --- a/generate/src/gabble-connection-manager.c +++ /dev/null @@ -1,183 +0,0 @@ -/* - * gabble-connection-manager.c - Source for GabbleConnectionManager - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 - */ - -#include -#include -#include - -#include "gabble-connection-manager.h" -#include "gabble-connection-manager-signals-marshal.h" - -#include "gabble-connection-manager-glue.h" - -G_DEFINE_TYPE(GabbleConnectionManager, gabble_connection_manager, G_TYPE_OBJECT) - -/* signal enum */ -enum -{ - NEW_CONNECTION, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL] = {0}; - -/* private structure */ -typedef struct _GabbleConnectionManagerPrivate GabbleConnectionManagerPrivate; - -struct _GabbleConnectionManagerPrivate -{ - gboolean dispose_has_run; -}; - -#define GABBLE_CONNECTION_MANAGER_GET_PRIVATE(obj) \ - ((GabbleConnectionManagerPrivate *)obj->priv) - -static void -gabble_connection_manager_init (GabbleConnectionManager *self) -{ - GabbleConnectionManagerPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - GABBLE_TYPE_CONNECTION_MANAGER, GabbleConnectionManagerPrivate); - - self->priv = priv; - - /* allocate any data required by the object here */ -} - -static void gabble_connection_manager_dispose (GObject *object); -static void gabble_connection_manager_finalize (GObject *object); - -static void -gabble_connection_manager_class_init (GabbleConnectionManagerClass *gabble_connection_manager_class) -{ - GObjectClass *object_class = G_OBJECT_CLASS (gabble_connection_manager_class); - - g_type_class_add_private (gabble_connection_manager_class, sizeof (GabbleConnectionManagerPrivate)); - - object_class->dispose = gabble_connection_manager_dispose; - object_class->finalize = gabble_connection_manager_finalize; - - signals[NEW_CONNECTION] = - g_signal_new ("new-connection", - G_OBJECT_CLASS_TYPE (gabble_connection_manager_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_connection_manager_marshal_VOID__STRING_STRING_STRING, - G_TYPE_NONE, 3, G_TYPE_STRING, DBUS_TYPE_G_OBJECT_PATH, G_TYPE_STRING); - - dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (gabble_connection_manager_class), &dbus_glib_gabble_connection_manager_object_info); -} - -void -gabble_connection_manager_dispose (GObject *object) -{ - GabbleConnectionManager *self = GABBLE_CONNECTION_MANAGER (object); - GabbleConnectionManagerPrivate *priv = GABBLE_CONNECTION_MANAGER_GET_PRIVATE (self); - - if (priv->dispose_has_run) - return; - - priv->dispose_has_run = TRUE; - - /* release any references held by the object here */ - - if (G_OBJECT_CLASS (gabble_connection_manager_parent_class)->dispose) - G_OBJECT_CLASS (gabble_connection_manager_parent_class)->dispose (object); -} - -void -gabble_connection_manager_finalize (GObject *object) -{ - GabbleConnectionManager *self = GABBLE_CONNECTION_MANAGER (object); - GabbleConnectionManagerPrivate *priv = GABBLE_CONNECTION_MANAGER_GET_PRIVATE (self); - - /* free any data held directly by the object here */ - - G_OBJECT_CLASS (gabble_connection_manager_parent_class)->finalize (object); -} - - - -/** - * gabble_connection_manager_get_parameters - * - * Implements D-Bus method GetParameters - * on interface org.freedesktop.Telepathy.ConnectionManager - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_manager_get_parameters (GabbleConnectionManager *self, - const gchar *proto, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_manager_list_protocols - * - * Implements D-Bus method ListProtocols - * on interface org.freedesktop.Telepathy.ConnectionManager - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_manager_list_protocols (GabbleConnectionManager *self, - gchar ***ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_manager_request_connection - * - * Implements D-Bus method RequestConnection - * on interface org.freedesktop.Telepathy.ConnectionManager - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_manager_request_connection (GabbleConnectionManager *self, - const gchar *proto, - GHashTable *parameters, - gchar **ret, - gchar **ret1, - GError **error) -{ - return TRUE; -} - diff --git a/generate/src/gabble-connection-manager.h b/generate/src/gabble-connection-manager.h deleted file mode 100644 index 1605b0b65..000000000 --- a/generate/src/gabble-connection-manager.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * gabble-connection-manager.h - Header for GabbleConnectionManager - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 __GABBLE_CONNECTION_MANAGER_H__ -#define __GABBLE_CONNECTION_MANAGER_H__ - -#include - -G_BEGIN_DECLS - -typedef struct _GabbleConnectionManager GabbleConnectionManager; -typedef struct _GabbleConnectionManagerClass GabbleConnectionManagerClass; - -struct _GabbleConnectionManagerClass { - GObjectClass parent_class; -}; - -struct _GabbleConnectionManager { - GObject parent; - - gpointer priv; -}; - -GType gabble_connection_manager_get_type(void); - -/* TYPE MACROS */ -#define GABBLE_TYPE_CONNECTION_MANAGER \ - (gabble_connection_manager_get_type()) -#define GABBLE_CONNECTION_MANAGER(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_CONNECTION_MANAGER, GabbleConnectionManager)) -#define GABBLE_CONNECTION_MANAGER_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_CONNECTION_MANAGER, GabbleConnectionManagerClass)) -#define GABBLE_IS_CONNECTION_MANAGER(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_CONNECTION_MANAGER)) -#define GABBLE_IS_CONNECTION_MANAGER_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_CONNECTION_MANAGER)) -#define GABBLE_CONNECTION_MANAGER_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_CONNECTION_MANAGER, GabbleConnectionManagerClass)) - - -gboolean -gabble_connection_manager_get_parameters (GabbleConnectionManager *self, - const gchar *proto, - GPtrArray **ret, - GError **error); - -gboolean -gabble_connection_manager_list_protocols (GabbleConnectionManager *self, - gchar ***ret, - GError **error); - -gboolean -gabble_connection_manager_request_connection (GabbleConnectionManager *self, - const gchar *proto, - GHashTable *parameters, - gchar **ret, - gchar **ret1, - GError **error); - - - -G_END_DECLS - -#endif /* #ifndef __GABBLE_CONNECTION_MANAGER_H__*/ diff --git a/generate/src/gabble-connection-signals-marshal.list b/generate/src/gabble-connection-signals-marshal.list deleted file mode 100644 index 3b6abc580..000000000 --- a/generate/src/gabble-connection-signals-marshal.list +++ /dev/null @@ -1,3 +0,0 @@ -VOID:STRING,STRING,UINT,UINT,BOOLEAN -VOID:UINT,STRING -VOID:UINT,UINT diff --git a/generate/src/gabble-connection.c b/generate/src/gabble-connection.c deleted file mode 100644 index 39cc98407..000000000 --- a/generate/src/gabble-connection.c +++ /dev/null @@ -1,840 +0,0 @@ -/* - * gabble-connection.c - Source for GabbleConnection - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 - */ - -#include -#include -#include - -#include "gabble-connection.h" -#include "gabble-connection-signals-marshal.h" - -#include "gabble-connection-glue.h" - -G_DEFINE_TYPE(GabbleConnection, gabble_connection, G_TYPE_OBJECT) - -/* signal enum */ -enum -{ - ALIASES_CHANGED, - AVATAR_UPDATED, - CAPABILITIES_CHANGED, - NEW_CHANNEL, - PRESENCE_UPDATE, - PROPERTIES_CHANGED, - PROPERTY_FLAGS_CHANGED, - STATUS_CHANGED, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL] = {0}; - -/* private structure */ -typedef struct _GabbleConnectionPrivate GabbleConnectionPrivate; - -struct _GabbleConnectionPrivate -{ - gboolean dispose_has_run; -}; - -#define GABBLE_CONNECTION_GET_PRIVATE(obj) \ - ((GabbleConnectionPrivate *)obj->priv) - -static void -gabble_connection_init (GabbleConnection *self) -{ - GabbleConnectionPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - GABBLE_TYPE_CONNECTION, GabbleConnectionPrivate); - - self->priv = priv; - - /* allocate any data required by the object here */ -} - -static void gabble_connection_dispose (GObject *object); -static void gabble_connection_finalize (GObject *object); - -static void -gabble_connection_class_init (GabbleConnectionClass *gabble_connection_class) -{ - GObjectClass *object_class = G_OBJECT_CLASS (gabble_connection_class); - - g_type_class_add_private (gabble_connection_class, sizeof (GabbleConnectionPrivate)); - - object_class->dispose = gabble_connection_dispose; - object_class->finalize = gabble_connection_finalize; - - signals[ALIASES_CHANGED] = - g_signal_new ("aliases-changed", - G_OBJECT_CLASS_TYPE (gabble_connection_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOXED, - G_TYPE_NONE, 1, (dbus_g_type_get_collection ("GPtrArray", (dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, G_TYPE_STRING, G_TYPE_INVALID))))); - - signals[AVATAR_UPDATED] = - g_signal_new ("avatar-updated", - G_OBJECT_CLASS_TYPE (gabble_connection_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_connection_marshal_VOID__UINT_STRING, - G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_STRING); - - signals[CAPABILITIES_CHANGED] = - g_signal_new ("capabilities-changed", - G_OBJECT_CLASS_TYPE (gabble_connection_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOXED, - G_TYPE_NONE, 1, (dbus_g_type_get_collection ("GPtrArray", (dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INVALID))))); - - signals[NEW_CHANNEL] = - g_signal_new ("new-channel", - G_OBJECT_CLASS_TYPE (gabble_connection_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_connection_marshal_VOID__STRING_STRING_UINT_UINT_BOOLEAN, - G_TYPE_NONE, 5, DBUS_TYPE_G_OBJECT_PATH, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_BOOLEAN); - - signals[PRESENCE_UPDATE] = - g_signal_new ("presence-update", - G_OBJECT_CLASS_TYPE (gabble_connection_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOXED, - G_TYPE_NONE, 1, (dbus_g_type_get_map ("GHashTable", G_TYPE_UINT, (dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, (dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, (dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE)))), G_TYPE_INVALID))))); - - signals[PROPERTIES_CHANGED] = - g_signal_new ("properties-changed", - G_OBJECT_CLASS_TYPE (gabble_connection_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOXED, - G_TYPE_NONE, 1, (dbus_g_type_get_collection ("GPtrArray", (dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, G_TYPE_VALUE, G_TYPE_INVALID))))); - - signals[PROPERTY_FLAGS_CHANGED] = - g_signal_new ("property-flags-changed", - G_OBJECT_CLASS_TYPE (gabble_connection_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOXED, - G_TYPE_NONE, 1, (dbus_g_type_get_collection ("GPtrArray", (dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INVALID))))); - - signals[STATUS_CHANGED] = - g_signal_new ("status-changed", - G_OBJECT_CLASS_TYPE (gabble_connection_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_connection_marshal_VOID__UINT_UINT, - G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT); - - dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (gabble_connection_class), &dbus_glib_gabble_connection_object_info); -} - -void -gabble_connection_dispose (GObject *object) -{ - GabbleConnection *self = GABBLE_CONNECTION (object); - GabbleConnectionPrivate *priv = GABBLE_CONNECTION_GET_PRIVATE (self); - - if (priv->dispose_has_run) - return; - - priv->dispose_has_run = TRUE; - - /* release any references held by the object here */ - - if (G_OBJECT_CLASS (gabble_connection_parent_class)->dispose) - G_OBJECT_CLASS (gabble_connection_parent_class)->dispose (object); -} - -void -gabble_connection_finalize (GObject *object) -{ - GabbleConnection *self = GABBLE_CONNECTION (object); - GabbleConnectionPrivate *priv = GABBLE_CONNECTION_GET_PRIVATE (self); - - /* free any data held directly by the object here */ - - G_OBJECT_CLASS (gabble_connection_parent_class)->finalize (object); -} - - - -/** - * gabble_connection_add_status - * - * Implements D-Bus method AddStatus - * on interface org.freedesktop.Telepathy.Connection.Interface.Presence - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_add_status (GabbleConnection *self, - const gchar *status, - GHashTable *parms, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_advertise_capabilities - * - * Implements D-Bus method AdvertiseCapabilities - * on interface org.freedesktop.Telepathy.Connection.Interface.Capabilities - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_advertise_capabilities (GabbleConnection *self, - const GPtrArray *add, - const gchar **remove, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_clear_status - * - * Implements D-Bus method ClearStatus - * on interface org.freedesktop.Telepathy.Connection.Interface.Presence - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_clear_status (GabbleConnection *self, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_connect - * - * Implements D-Bus method Connect - * on interface org.freedesktop.Telepathy.Connection - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_connect (GabbleConnection *self, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_disconnect - * - * Implements D-Bus method Disconnect - * on interface org.freedesktop.Telepathy.Connection - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_disconnect (GabbleConnection *self, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_get_alias_flags - * - * Implements D-Bus method GetAliasFlags - * on interface org.freedesktop.Telepathy.Connection.Interface.Aliasing - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_get_alias_flags (GabbleConnection *self, - guint *ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_get_avatar_requirements - * - * Implements D-Bus method GetAvatarRequirements - * on interface org.freedesktop.Telepathy.Connection.Interface.Avatars - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_get_avatar_requirements (GabbleConnection *self, - gchar ***ret, - guint *ret1, - guint *ret2, - guint *ret3, - guint *ret4, - guint *ret5, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_get_avatar_tokens - * - * Implements D-Bus method GetAvatarTokens - * on interface org.freedesktop.Telepathy.Connection.Interface.Avatars - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_connection_get_avatar_tokens (GabbleConnection *self, - const GArray *contacts, - DBusGMethodInvocation *context) -{ - return; -} - - -/** - * gabble_connection_get_capabilities - * - * Implements D-Bus method GetCapabilities - * on interface org.freedesktop.Telepathy.Connection.Interface.Capabilities - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_get_capabilities (GabbleConnection *self, - const GArray *handles, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_get_interfaces - * - * Implements D-Bus method GetInterfaces - * on interface org.freedesktop.Telepathy.Connection - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_get_interfaces (GabbleConnection *self, - gchar ***ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_get_presence - * - * Implements D-Bus method GetPresence - * on interface org.freedesktop.Telepathy.Connection.Interface.Presence - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_connection_get_presence (GabbleConnection *self, - const GArray *contacts, - DBusGMethodInvocation *context) -{ - return; -} - - -/** - * gabble_connection_get_properties - * - * Implements D-Bus method GetProperties - * on interface org.freedesktop.Telepathy.Properties - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_get_properties (GabbleConnection *self, - const GArray *properties, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_get_protocol - * - * Implements D-Bus method GetProtocol - * on interface org.freedesktop.Telepathy.Connection - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_get_protocol (GabbleConnection *self, - gchar **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_get_self_handle - * - * Implements D-Bus method GetSelfHandle - * on interface org.freedesktop.Telepathy.Connection - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_get_self_handle (GabbleConnection *self, - guint *ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_get_status - * - * Implements D-Bus method GetStatus - * on interface org.freedesktop.Telepathy.Connection - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_get_status (GabbleConnection *self, - guint *ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_get_statuses - * - * Implements D-Bus method GetStatuses - * on interface org.freedesktop.Telepathy.Connection.Interface.Presence - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_get_statuses (GabbleConnection *self, - GHashTable **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_hold_handles - * - * Implements D-Bus method HoldHandles - * on interface org.freedesktop.Telepathy.Connection - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_connection_hold_handles (GabbleConnection *self, - guint handle_type, - const GArray *handles, - DBusGMethodInvocation *context) -{ - return; -} - - -/** - * gabble_connection_inspect_handles - * - * Implements D-Bus method InspectHandles - * on interface org.freedesktop.Telepathy.Connection - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_connection_inspect_handles (GabbleConnection *self, - guint handle_type, - const GArray *handles, - DBusGMethodInvocation *context) -{ - return; -} - - -/** - * gabble_connection_list_channels - * - * Implements D-Bus method ListChannels - * on interface org.freedesktop.Telepathy.Connection - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_list_channels (GabbleConnection *self, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_list_properties - * - * Implements D-Bus method ListProperties - * on interface org.freedesktop.Telepathy.Properties - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_list_properties (GabbleConnection *self, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_release_handles - * - * Implements D-Bus method ReleaseHandles - * on interface org.freedesktop.Telepathy.Connection - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_connection_release_handles (GabbleConnection *self, - guint handle_type, - const GArray *handles, - DBusGMethodInvocation *context) -{ - return; -} - - -/** - * gabble_connection_remove_status - * - * Implements D-Bus method RemoveStatus - * on interface org.freedesktop.Telepathy.Connection.Interface.Presence - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_remove_status (GabbleConnection *self, - const gchar *status, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_request_aliases - * - * Implements D-Bus method RequestAliases - * on interface org.freedesktop.Telepathy.Connection.Interface.Aliasing - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_connection_request_aliases (GabbleConnection *self, - const GArray *contacts, - DBusGMethodInvocation *context) -{ - return; -} - - -/** - * gabble_connection_request_avatar - * - * Implements D-Bus method RequestAvatar - * on interface org.freedesktop.Telepathy.Connection.Interface.Avatars - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_connection_request_avatar (GabbleConnection *self, - guint contact, - DBusGMethodInvocation *context) -{ - return; -} - - -/** - * gabble_connection_request_channel - * - * Implements D-Bus method RequestChannel - * on interface org.freedesktop.Telepathy.Connection - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_connection_request_channel (GabbleConnection *self, - const gchar *type, - guint handle_type, - guint handle, - gboolean suppress_handler, - DBusGMethodInvocation *context) -{ - return; -} - - -/** - * gabble_connection_request_handles - * - * Implements D-Bus method RequestHandles - * on interface org.freedesktop.Telepathy.Connection - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_connection_request_handles (GabbleConnection *self, - guint handle_type, - const gchar **names, - DBusGMethodInvocation *context) -{ - return; -} - - -/** - * gabble_connection_request_presence - * - * Implements D-Bus method RequestPresence - * on interface org.freedesktop.Telepathy.Connection.Interface.Presence - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_request_presence (GabbleConnection *self, - const GArray *contacts, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_set_aliases - * - * Implements D-Bus method SetAliases - * on interface org.freedesktop.Telepathy.Connection.Interface.Aliasing - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_set_aliases (GabbleConnection *self, - GHashTable *aliases, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_set_avatar - * - * Implements D-Bus method SetAvatar - * on interface org.freedesktop.Telepathy.Connection.Interface.Avatars - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_connection_set_avatar (GabbleConnection *self, - const GArray *avatar, - const gchar *mime_type, - DBusGMethodInvocation *context) -{ - return; -} - - -/** - * gabble_connection_set_last_activity_time - * - * Implements D-Bus method SetLastActivityTime - * on interface org.freedesktop.Telepathy.Connection.Interface.Presence - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_set_last_activity_time (GabbleConnection *self, - guint time, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_connection_set_properties - * - * Implements D-Bus method SetProperties - * on interface org.freedesktop.Telepathy.Properties - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_connection_set_properties (GabbleConnection *self, - const GPtrArray *properties, - DBusGMethodInvocation *context) -{ - return; -} - - -/** - * gabble_connection_set_status - * - * Implements D-Bus method SetStatus - * on interface org.freedesktop.Telepathy.Connection.Interface.Presence - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_connection_set_status (GabbleConnection *self, - GHashTable *statuses, - GError **error) -{ - return TRUE; -} - diff --git a/generate/src/gabble-connection.h b/generate/src/gabble-connection.h deleted file mode 100644 index 4e2e8f31f..000000000 --- a/generate/src/gabble-connection.h +++ /dev/null @@ -1,237 +0,0 @@ -/* - * gabble-connection.h - Header for GabbleConnection - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 __GABBLE_CONNECTION_H__ -#define __GABBLE_CONNECTION_H__ - -#include - -G_BEGIN_DECLS - -typedef struct _GabbleConnection GabbleConnection; -typedef struct _GabbleConnectionClass GabbleConnectionClass; - -struct _GabbleConnectionClass { - GObjectClass parent_class; -}; - -struct _GabbleConnection { - GObject parent; - - gpointer priv; -}; - -GType gabble_connection_get_type(void); - -/* TYPE MACROS */ -#define GABBLE_TYPE_CONNECTION \ - (gabble_connection_get_type()) -#define GABBLE_CONNECTION(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_CONNECTION, GabbleConnection)) -#define GABBLE_CONNECTION_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_CONNECTION, GabbleConnectionClass)) -#define GABBLE_IS_CONNECTION(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_CONNECTION)) -#define GABBLE_IS_CONNECTION_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_CONNECTION)) -#define GABBLE_CONNECTION_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_CONNECTION, GabbleConnectionClass)) - - -gboolean -gabble_connection_add_status (GabbleConnection *self, - const gchar *status, - GHashTable *parms, - GError **error); - -gboolean -gabble_connection_advertise_capabilities (GabbleConnection *self, - const GPtrArray *add, - const gchar **remove, - GPtrArray **ret, - GError **error); - -gboolean -gabble_connection_clear_status (GabbleConnection *self, - GError **error); - -gboolean -gabble_connection_connect (GabbleConnection *self, - GError **error); - -gboolean -gabble_connection_disconnect (GabbleConnection *self, - GError **error); - -gboolean -gabble_connection_get_alias_flags (GabbleConnection *self, - guint *ret, - GError **error); - -gboolean -gabble_connection_get_avatar_requirements (GabbleConnection *self, - gchar ***ret, - guint *ret1, - guint *ret2, - guint *ret3, - guint *ret4, - guint *ret5, - GError **error); - -void -gabble_connection_get_avatar_tokens (GabbleConnection *self, - const GArray *contacts, - DBusGMethodInvocation *context); - -gboolean -gabble_connection_get_capabilities (GabbleConnection *self, - const GArray *handles, - GPtrArray **ret, - GError **error); - -gboolean -gabble_connection_get_interfaces (GabbleConnection *self, - gchar ***ret, - GError **error); - -void -gabble_connection_get_presence (GabbleConnection *self, - const GArray *contacts, - DBusGMethodInvocation *context); - -gboolean -gabble_connection_get_properties (GabbleConnection *self, - const GArray *properties, - GPtrArray **ret, - GError **error); - -gboolean -gabble_connection_get_protocol (GabbleConnection *self, - gchar **ret, - GError **error); - -gboolean -gabble_connection_get_self_handle (GabbleConnection *self, - guint *ret, - GError **error); - -gboolean -gabble_connection_get_status (GabbleConnection *self, - guint *ret, - GError **error); - -gboolean -gabble_connection_get_statuses (GabbleConnection *self, - GHashTable **ret, - GError **error); - -void -gabble_connection_hold_handles (GabbleConnection *self, - guint handle_type, - const GArray *handles, - DBusGMethodInvocation *context); - -void -gabble_connection_inspect_handles (GabbleConnection *self, - guint handle_type, - const GArray *handles, - DBusGMethodInvocation *context); - -gboolean -gabble_connection_list_channels (GabbleConnection *self, - GPtrArray **ret, - GError **error); - -gboolean -gabble_connection_list_properties (GabbleConnection *self, - GPtrArray **ret, - GError **error); - -void -gabble_connection_release_handles (GabbleConnection *self, - guint handle_type, - const GArray *handles, - DBusGMethodInvocation *context); - -gboolean -gabble_connection_remove_status (GabbleConnection *self, - const gchar *status, - GError **error); - -void -gabble_connection_request_aliases (GabbleConnection *self, - const GArray *contacts, - DBusGMethodInvocation *context); - -void -gabble_connection_request_avatar (GabbleConnection *self, - guint contact, - DBusGMethodInvocation *context); - -void -gabble_connection_request_channel (GabbleConnection *self, - const gchar *type, - guint handle_type, - guint handle, - gboolean suppress_handler, - DBusGMethodInvocation *context); - -void -gabble_connection_request_handles (GabbleConnection *self, - guint handle_type, - const gchar **names, - DBusGMethodInvocation *context); - -gboolean -gabble_connection_request_presence (GabbleConnection *self, - const GArray *contacts, - GError **error); - -gboolean -gabble_connection_set_aliases (GabbleConnection *self, - GHashTable *aliases, - GError **error); - -void -gabble_connection_set_avatar (GabbleConnection *self, - const GArray *avatar, - const gchar *mime_type, - DBusGMethodInvocation *context); - -gboolean -gabble_connection_set_last_activity_time (GabbleConnection *self, - guint time, - GError **error); - -void -gabble_connection_set_properties (GabbleConnection *self, - const GPtrArray *properties, - DBusGMethodInvocation *context); - -gboolean -gabble_connection_set_status (GabbleConnection *self, - GHashTable *statuses, - GError **error); - - - -G_END_DECLS - -#endif /* #ifndef __GABBLE_CONNECTION_H__*/ diff --git a/generate/src/gabble-im-channel-signals-marshal.list b/generate/src/gabble-im-channel-signals-marshal.list deleted file mode 100644 index da94b09b2..000000000 --- a/generate/src/gabble-im-channel-signals-marshal.list +++ /dev/null @@ -1,3 +0,0 @@ -VOID:UINT,UINT,UINT,UINT,UINT,STRING -VOID:UINT,UINT,UINT,STRING -VOID:UINT,UINT,STRING diff --git a/generate/src/gabble-im-channel.c b/generate/src/gabble-im-channel.c deleted file mode 100644 index 3e066aa37..000000000 --- a/generate/src/gabble-im-channel.c +++ /dev/null @@ -1,326 +0,0 @@ -/* - * gabble-im-channel.c - Source for GabbleIMChannel - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 - */ - -#include -#include -#include - -#include "gabble-im-channel.h" -#include "gabble-im-channel-signals-marshal.h" - -#include "gabble-im-channel-glue.h" - -G_DEFINE_TYPE(GabbleIMChannel, gabble_im_channel, G_TYPE_OBJECT) - -/* signal enum */ -enum -{ - CLOSED, - LOST_MESSAGE, - RECEIVED, - SEND_ERROR, - SENT, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL] = {0}; - -/* private structure */ -typedef struct _GabbleIMChannelPrivate GabbleIMChannelPrivate; - -struct _GabbleIMChannelPrivate -{ - gboolean dispose_has_run; -}; - -#define GABBLE_IM_CHANNEL_GET_PRIVATE(obj) \ - ((GabbleIMChannelPrivate *)obj->priv) - -static void -gabble_im_channel_init (GabbleIMChannel *self) -{ - GabbleIMChannelPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - GABBLE_TYPE_IM_CHANNEL, GabbleIMChannelPrivate); - - self->priv = priv; - - /* allocate any data required by the object here */ -} - -static void gabble_im_channel_dispose (GObject *object); -static void gabble_im_channel_finalize (GObject *object); - -static void -gabble_im_channel_class_init (GabbleIMChannelClass *gabble_im_channel_class) -{ - GObjectClass *object_class = G_OBJECT_CLASS (gabble_im_channel_class); - - g_type_class_add_private (gabble_im_channel_class, sizeof (GabbleIMChannelPrivate)); - - object_class->dispose = gabble_im_channel_dispose; - object_class->finalize = gabble_im_channel_finalize; - - signals[CLOSED] = - g_signal_new ("closed", - G_OBJECT_CLASS_TYPE (gabble_im_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); - - signals[LOST_MESSAGE] = - g_signal_new ("lost-message", - G_OBJECT_CLASS_TYPE (gabble_im_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); - - signals[RECEIVED] = - g_signal_new ("received", - G_OBJECT_CLASS_TYPE (gabble_im_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_im_channel_marshal_VOID__UINT_UINT_UINT_UINT_UINT_STRING, - G_TYPE_NONE, 6, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING); - - signals[SEND_ERROR] = - g_signal_new ("send-error", - G_OBJECT_CLASS_TYPE (gabble_im_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_im_channel_marshal_VOID__UINT_UINT_UINT_STRING, - G_TYPE_NONE, 4, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING); - - signals[SENT] = - g_signal_new ("sent", - G_OBJECT_CLASS_TYPE (gabble_im_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_im_channel_marshal_VOID__UINT_UINT_STRING, - G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING); - - dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (gabble_im_channel_class), &dbus_glib_gabble_im_channel_object_info); -} - -void -gabble_im_channel_dispose (GObject *object) -{ - GabbleIMChannel *self = GABBLE_IM_CHANNEL (object); - GabbleIMChannelPrivate *priv = GABBLE_IM_CHANNEL_GET_PRIVATE (self); - - if (priv->dispose_has_run) - return; - - priv->dispose_has_run = TRUE; - - /* release any references held by the object here */ - - if (G_OBJECT_CLASS (gabble_im_channel_parent_class)->dispose) - G_OBJECT_CLASS (gabble_im_channel_parent_class)->dispose (object); -} - -void -gabble_im_channel_finalize (GObject *object) -{ - GabbleIMChannel *self = GABBLE_IM_CHANNEL (object); - GabbleIMChannelPrivate *priv = GABBLE_IM_CHANNEL_GET_PRIVATE (self); - - /* free any data held directly by the object here */ - - G_OBJECT_CLASS (gabble_im_channel_parent_class)->finalize (object); -} - - - -/** - * gabble_im_channel_acknowledge_pending_messages - * - * Implements D-Bus method AcknowledgePendingMessages - * on interface org.freedesktop.Telepathy.Channel.Type.Text - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_im_channel_acknowledge_pending_messages (GabbleIMChannel *self, - const GArray *ids, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_im_channel_close - * - * Implements D-Bus method Close - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_im_channel_close (GabbleIMChannel *self, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_im_channel_get_channel_type - * - * Implements D-Bus method GetChannelType - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_im_channel_get_channel_type (GabbleIMChannel *self, - gchar **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_im_channel_get_handle - * - * Implements D-Bus method GetHandle - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_im_channel_get_handle (GabbleIMChannel *self, - guint *ret, - guint *ret1, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_im_channel_get_interfaces - * - * Implements D-Bus method GetInterfaces - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_im_channel_get_interfaces (GabbleIMChannel *self, - gchar ***ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_im_channel_get_message_types - * - * Implements D-Bus method GetMessageTypes - * on interface org.freedesktop.Telepathy.Channel.Type.Text - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_im_channel_get_message_types (GabbleIMChannel *self, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_im_channel_list_pending_messages - * - * Implements D-Bus method ListPendingMessages - * on interface org.freedesktop.Telepathy.Channel.Type.Text - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_im_channel_list_pending_messages (GabbleIMChannel *self, - gboolean clear, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_im_channel_send - * - * Implements D-Bus method Send - * on interface org.freedesktop.Telepathy.Channel.Type.Text - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_im_channel_send (GabbleIMChannel *self, - guint type, - const gchar *text, - GError **error) -{ - return TRUE; -} - diff --git a/generate/src/gabble-im-channel.h b/generate/src/gabble-im-channel.h deleted file mode 100644 index 91e79cba5..000000000 --- a/generate/src/gabble-im-channel.h +++ /dev/null @@ -1,104 +0,0 @@ -/* - * gabble-im-channel.h - Header for GabbleIMChannel - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 __GABBLE_IM_CHANNEL_H__ -#define __GABBLE_IM_CHANNEL_H__ - -#include - -G_BEGIN_DECLS - -typedef struct _GabbleIMChannel GabbleIMChannel; -typedef struct _GabbleIMChannelClass GabbleIMChannelClass; - -struct _GabbleIMChannelClass { - GObjectClass parent_class; -}; - -struct _GabbleIMChannel { - GObject parent; - - gpointer priv; -}; - -GType gabble_im_channel_get_type(void); - -/* TYPE MACROS */ -#define GABBLE_TYPE_IM_CHANNEL \ - (gabble_im_channel_get_type()) -#define GABBLE_IM_CHANNEL(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_IM_CHANNEL, GabbleIMChannel)) -#define GABBLE_IM_CHANNEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_IM_CHANNEL, GabbleIMChannelClass)) -#define GABBLE_IS_IM_CHANNEL(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_IM_CHANNEL)) -#define GABBLE_IS_IM_CHANNEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_IM_CHANNEL)) -#define GABBLE_IM_CHANNEL_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_IM_CHANNEL, GabbleIMChannelClass)) - - -gboolean -gabble_im_channel_acknowledge_pending_messages (GabbleIMChannel *self, - const GArray *ids, - GError **error); - -gboolean -gabble_im_channel_close (GabbleIMChannel *self, - GError **error); - -gboolean -gabble_im_channel_get_channel_type (GabbleIMChannel *self, - gchar **ret, - GError **error); - -gboolean -gabble_im_channel_get_handle (GabbleIMChannel *self, - guint *ret, - guint *ret1, - GError **error); - -gboolean -gabble_im_channel_get_interfaces (GabbleIMChannel *self, - gchar ***ret, - GError **error); - -gboolean -gabble_im_channel_get_message_types (GabbleIMChannel *self, - GArray **ret, - GError **error); - -gboolean -gabble_im_channel_list_pending_messages (GabbleIMChannel *self, - gboolean clear, - GPtrArray **ret, - GError **error); - -gboolean -gabble_im_channel_send (GabbleIMChannel *self, - guint type, - const gchar *text, - GError **error); - - - -G_END_DECLS - -#endif /* #ifndef __GABBLE_IM_CHANNEL_H__*/ diff --git a/generate/src/gabble-media-channel-signals-marshal.list b/generate/src/gabble-media-channel-signals-marshal.list deleted file mode 100644 index 660f1d113..000000000 --- a/generate/src/gabble-media-channel-signals-marshal.list +++ /dev/null @@ -1,5 +0,0 @@ -VOID:UINT,UINT,STRING -VOID:STRING,STRING -VOID:UINT,UINT -VOID:UINT,UINT,UINT -VOID:STRING,BOXED,BOXED,BOXED,BOXED,UINT,UINT diff --git a/generate/src/gabble-media-channel.c b/generate/src/gabble-media-channel.c deleted file mode 100644 index e2f4ea971..000000000 --- a/generate/src/gabble-media-channel.c +++ /dev/null @@ -1,582 +0,0 @@ -/* - * gabble-media-channel.c - Source for GabbleMediaChannel - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 - */ - -#include -#include -#include - -#include "gabble-media-channel.h" -#include "gabble-media-channel-signals-marshal.h" - -#include "gabble-media-channel-glue.h" - -G_DEFINE_TYPE(GabbleMediaChannel, gabble_media_channel, G_TYPE_OBJECT) - -/* signal enum */ -enum -{ - CLOSED, - GROUP_FLAGS_CHANGED, - MEMBERS_CHANGED, - NEW_SESSION_HANDLER, - STREAM_ADDED, - STREAM_DIRECTION_CHANGED, - STREAM_ERROR, - STREAM_REMOVED, - STREAM_STATE_CHANGED, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL] = {0}; - -/* private structure */ -typedef struct _GabbleMediaChannelPrivate GabbleMediaChannelPrivate; - -struct _GabbleMediaChannelPrivate -{ - gboolean dispose_has_run; -}; - -#define GABBLE_MEDIA_CHANNEL_GET_PRIVATE(obj) \ - ((GabbleMediaChannelPrivate *)obj->priv) - -static void -gabble_media_channel_init (GabbleMediaChannel *self) -{ - GabbleMediaChannelPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - GABBLE_TYPE_MEDIA_CHANNEL, GabbleMediaChannelPrivate); - - self->priv = priv; - - /* allocate any data required by the object here */ -} - -static void gabble_media_channel_dispose (GObject *object); -static void gabble_media_channel_finalize (GObject *object); - -static void -gabble_media_channel_class_init (GabbleMediaChannelClass *gabble_media_channel_class) -{ - GObjectClass *object_class = G_OBJECT_CLASS (gabble_media_channel_class); - - g_type_class_add_private (gabble_media_channel_class, sizeof (GabbleMediaChannelPrivate)); - - object_class->dispose = gabble_media_channel_dispose; - object_class->finalize = gabble_media_channel_finalize; - - signals[CLOSED] = - g_signal_new ("closed", - G_OBJECT_CLASS_TYPE (gabble_media_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); - - signals[GROUP_FLAGS_CHANGED] = - g_signal_new ("group-flags-changed", - G_OBJECT_CLASS_TYPE (gabble_media_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_media_channel_marshal_VOID__UINT_UINT, - G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT); - - signals[MEMBERS_CHANGED] = - g_signal_new ("members-changed", - G_OBJECT_CLASS_TYPE (gabble_media_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_media_channel_marshal_VOID__STRING_BOXED_BOXED_BOXED_BOXED_UINT_UINT, - G_TYPE_NONE, 7, G_TYPE_STRING, DBUS_TYPE_G_UINT_ARRAY, DBUS_TYPE_G_UINT_ARRAY, DBUS_TYPE_G_UINT_ARRAY, DBUS_TYPE_G_UINT_ARRAY, G_TYPE_UINT, G_TYPE_UINT); - - signals[NEW_SESSION_HANDLER] = - g_signal_new ("new-session-handler", - G_OBJECT_CLASS_TYPE (gabble_media_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_media_channel_marshal_VOID__STRING_STRING, - G_TYPE_NONE, 2, DBUS_TYPE_G_OBJECT_PATH, G_TYPE_STRING); - - signals[STREAM_ADDED] = - g_signal_new ("stream-added", - G_OBJECT_CLASS_TYPE (gabble_media_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_media_channel_marshal_VOID__UINT_UINT_UINT, - G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT); - - signals[STREAM_DIRECTION_CHANGED] = - g_signal_new ("stream-direction-changed", - G_OBJECT_CLASS_TYPE (gabble_media_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_media_channel_marshal_VOID__UINT_UINT_UINT, - G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT); - - signals[STREAM_ERROR] = - g_signal_new ("stream-error", - G_OBJECT_CLASS_TYPE (gabble_media_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_media_channel_marshal_VOID__UINT_UINT_STRING, - G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING); - - signals[STREAM_REMOVED] = - g_signal_new ("stream-removed", - G_OBJECT_CLASS_TYPE (gabble_media_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__UINT, - G_TYPE_NONE, 1, G_TYPE_UINT); - - signals[STREAM_STATE_CHANGED] = - g_signal_new ("stream-state-changed", - G_OBJECT_CLASS_TYPE (gabble_media_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_media_channel_marshal_VOID__UINT_UINT, - G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT); - - dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (gabble_media_channel_class), &dbus_glib_gabble_media_channel_object_info); -} - -void -gabble_media_channel_dispose (GObject *object) -{ - GabbleMediaChannel *self = GABBLE_MEDIA_CHANNEL (object); - GabbleMediaChannelPrivate *priv = GABBLE_MEDIA_CHANNEL_GET_PRIVATE (self); - - if (priv->dispose_has_run) - return; - - priv->dispose_has_run = TRUE; - - /* release any references held by the object here */ - - if (G_OBJECT_CLASS (gabble_media_channel_parent_class)->dispose) - G_OBJECT_CLASS (gabble_media_channel_parent_class)->dispose (object); -} - -void -gabble_media_channel_finalize (GObject *object) -{ - GabbleMediaChannel *self = GABBLE_MEDIA_CHANNEL (object); - GabbleMediaChannelPrivate *priv = GABBLE_MEDIA_CHANNEL_GET_PRIVATE (self); - - /* free any data held directly by the object here */ - - G_OBJECT_CLASS (gabble_media_channel_parent_class)->finalize (object); -} - - - -/** - * gabble_media_channel_add_members - * - * Implements D-Bus method AddMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_add_members (GabbleMediaChannel *self, - const GArray *contacts, - const gchar *message, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_close - * - * Implements D-Bus method Close - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_close (GabbleMediaChannel *self, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_get_all_members - * - * Implements D-Bus method GetAllMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_get_all_members (GabbleMediaChannel *self, - GArray **ret, - GArray **ret1, - GArray **ret2, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_get_channel_type - * - * Implements D-Bus method GetChannelType - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_get_channel_type (GabbleMediaChannel *self, - gchar **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_get_group_flags - * - * Implements D-Bus method GetGroupFlags - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_get_group_flags (GabbleMediaChannel *self, - guint *ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_get_handle - * - * Implements D-Bus method GetHandle - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_get_handle (GabbleMediaChannel *self, - guint *ret, - guint *ret1, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_get_handle_owners - * - * Implements D-Bus method GetHandleOwners - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_get_handle_owners (GabbleMediaChannel *self, - const GArray *handles, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_get_interfaces - * - * Implements D-Bus method GetInterfaces - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_get_interfaces (GabbleMediaChannel *self, - gchar ***ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_get_local_pending_members - * - * Implements D-Bus method GetLocalPendingMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_get_local_pending_members (GabbleMediaChannel *self, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_get_members - * - * Implements D-Bus method GetMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_get_members (GabbleMediaChannel *self, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_get_remote_pending_members - * - * Implements D-Bus method GetRemotePendingMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_get_remote_pending_members (GabbleMediaChannel *self, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_get_self_handle - * - * Implements D-Bus method GetSelfHandle - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_get_self_handle (GabbleMediaChannel *self, - guint *ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_get_session_handlers - * - * Implements D-Bus method GetSessionHandlers - * on interface org.freedesktop.Telepathy.Channel.Interface.MediaSignalling - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_get_session_handlers (GabbleMediaChannel *self, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_list_streams - * - * Implements D-Bus method ListStreams - * on interface org.freedesktop.Telepathy.Channel.Type.StreamedMedia - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_list_streams (GabbleMediaChannel *self, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_remove_members - * - * Implements D-Bus method RemoveMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_remove_members (GabbleMediaChannel *self, - const GArray *contacts, - const gchar *message, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_remove_streams - * - * Implements D-Bus method RemoveStreams - * on interface org.freedesktop.Telepathy.Channel.Type.StreamedMedia - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_remove_streams (GabbleMediaChannel *self, - const GArray *streams, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_request_stream_direction - * - * Implements D-Bus method RequestStreamDirection - * on interface org.freedesktop.Telepathy.Channel.Type.StreamedMedia - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_request_stream_direction (GabbleMediaChannel *self, - guint stream_id, - guint stream_direction, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_channel_request_streams - * - * Implements D-Bus method RequestStreams - * on interface org.freedesktop.Telepathy.Channel.Type.StreamedMedia - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_channel_request_streams (GabbleMediaChannel *self, - guint contact_handle, - const GArray *types, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - diff --git a/generate/src/gabble-media-channel.h b/generate/src/gabble-media-channel.h deleted file mode 100644 index 9353c08f1..000000000 --- a/generate/src/gabble-media-channel.h +++ /dev/null @@ -1,160 +0,0 @@ -/* - * gabble-media-channel.h - Header for GabbleMediaChannel - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 __GABBLE_MEDIA_CHANNEL_H__ -#define __GABBLE_MEDIA_CHANNEL_H__ - -#include - -G_BEGIN_DECLS - -typedef struct _GabbleMediaChannel GabbleMediaChannel; -typedef struct _GabbleMediaChannelClass GabbleMediaChannelClass; - -struct _GabbleMediaChannelClass { - GObjectClass parent_class; -}; - -struct _GabbleMediaChannel { - GObject parent; - - gpointer priv; -}; - -GType gabble_media_channel_get_type(void); - -/* TYPE MACROS */ -#define GABBLE_TYPE_MEDIA_CHANNEL \ - (gabble_media_channel_get_type()) -#define GABBLE_MEDIA_CHANNEL(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_MEDIA_CHANNEL, GabbleMediaChannel)) -#define GABBLE_MEDIA_CHANNEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_MEDIA_CHANNEL, GabbleMediaChannelClass)) -#define GABBLE_IS_MEDIA_CHANNEL(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_MEDIA_CHANNEL)) -#define GABBLE_IS_MEDIA_CHANNEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_MEDIA_CHANNEL)) -#define GABBLE_MEDIA_CHANNEL_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_MEDIA_CHANNEL, GabbleMediaChannelClass)) - - -gboolean -gabble_media_channel_add_members (GabbleMediaChannel *self, - const GArray *contacts, - const gchar *message, - GError **error); - -gboolean -gabble_media_channel_close (GabbleMediaChannel *self, - GError **error); - -gboolean -gabble_media_channel_get_all_members (GabbleMediaChannel *self, - GArray **ret, - GArray **ret1, - GArray **ret2, - GError **error); - -gboolean -gabble_media_channel_get_channel_type (GabbleMediaChannel *self, - gchar **ret, - GError **error); - -gboolean -gabble_media_channel_get_group_flags (GabbleMediaChannel *self, - guint *ret, - GError **error); - -gboolean -gabble_media_channel_get_handle (GabbleMediaChannel *self, - guint *ret, - guint *ret1, - GError **error); - -gboolean -gabble_media_channel_get_handle_owners (GabbleMediaChannel *self, - const GArray *handles, - GArray **ret, - GError **error); - -gboolean -gabble_media_channel_get_interfaces (GabbleMediaChannel *self, - gchar ***ret, - GError **error); - -gboolean -gabble_media_channel_get_local_pending_members (GabbleMediaChannel *self, - GArray **ret, - GError **error); - -gboolean -gabble_media_channel_get_members (GabbleMediaChannel *self, - GArray **ret, - GError **error); - -gboolean -gabble_media_channel_get_remote_pending_members (GabbleMediaChannel *self, - GArray **ret, - GError **error); - -gboolean -gabble_media_channel_get_self_handle (GabbleMediaChannel *self, - guint *ret, - GError **error); - -gboolean -gabble_media_channel_get_session_handlers (GabbleMediaChannel *self, - GPtrArray **ret, - GError **error); - -gboolean -gabble_media_channel_list_streams (GabbleMediaChannel *self, - GPtrArray **ret, - GError **error); - -gboolean -gabble_media_channel_remove_members (GabbleMediaChannel *self, - const GArray *contacts, - const gchar *message, - GError **error); - -gboolean -gabble_media_channel_remove_streams (GabbleMediaChannel *self, - const GArray *streams, - GError **error); - -gboolean -gabble_media_channel_request_stream_direction (GabbleMediaChannel *self, - guint stream_id, - guint stream_direction, - GError **error); - -gboolean -gabble_media_channel_request_streams (GabbleMediaChannel *self, - guint contact_handle, - const GArray *types, - GPtrArray **ret, - GError **error); - - - -G_END_DECLS - -#endif /* #ifndef __GABBLE_MEDIA_CHANNEL_H__*/ diff --git a/generate/src/gabble-media-session-signals-marshal.list b/generate/src/gabble-media-session-signals-marshal.list deleted file mode 100644 index f46d6646b..000000000 --- a/generate/src/gabble-media-session-signals-marshal.list +++ /dev/null @@ -1 +0,0 @@ -VOID:STRING,UINT,UINT,UINT diff --git a/generate/src/gabble-media-session.c b/generate/src/gabble-media-session.c deleted file mode 100644 index 92613f8d1..000000000 --- a/generate/src/gabble-media-session.c +++ /dev/null @@ -1,158 +0,0 @@ -/* - * gabble-media-session.c - Source for GabbleMediaSession - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 - */ - -#include -#include -#include - -#include "gabble-media-session.h" -#include "gabble-media-session-signals-marshal.h" - -#include "gabble-media-session-glue.h" - -G_DEFINE_TYPE(GabbleMediaSession, gabble_media_session, G_TYPE_OBJECT) - -/* signal enum */ -enum -{ - NEW_STREAM_HANDLER, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL] = {0}; - -/* private structure */ -typedef struct _GabbleMediaSessionPrivate GabbleMediaSessionPrivate; - -struct _GabbleMediaSessionPrivate -{ - gboolean dispose_has_run; -}; - -#define GABBLE_MEDIA_SESSION_GET_PRIVATE(obj) \ - ((GabbleMediaSessionPrivate *)obj->priv) - -static void -gabble_media_session_init (GabbleMediaSession *self) -{ - GabbleMediaSessionPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - GABBLE_TYPE_MEDIA_SESSION, GabbleMediaSessionPrivate); - - self->priv = priv; - - /* allocate any data required by the object here */ -} - -static void gabble_media_session_dispose (GObject *object); -static void gabble_media_session_finalize (GObject *object); - -static void -gabble_media_session_class_init (GabbleMediaSessionClass *gabble_media_session_class) -{ - GObjectClass *object_class = G_OBJECT_CLASS (gabble_media_session_class); - - g_type_class_add_private (gabble_media_session_class, sizeof (GabbleMediaSessionPrivate)); - - object_class->dispose = gabble_media_session_dispose; - object_class->finalize = gabble_media_session_finalize; - - signals[NEW_STREAM_HANDLER] = - g_signal_new ("new-stream-handler", - G_OBJECT_CLASS_TYPE (gabble_media_session_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_media_session_marshal_VOID__STRING_UINT_UINT_UINT, - G_TYPE_NONE, 4, DBUS_TYPE_G_OBJECT_PATH, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT); - - dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (gabble_media_session_class), &dbus_glib_gabble_media_session_object_info); -} - -void -gabble_media_session_dispose (GObject *object) -{ - GabbleMediaSession *self = GABBLE_MEDIA_SESSION (object); - GabbleMediaSessionPrivate *priv = GABBLE_MEDIA_SESSION_GET_PRIVATE (self); - - if (priv->dispose_has_run) - return; - - priv->dispose_has_run = TRUE; - - /* release any references held by the object here */ - - if (G_OBJECT_CLASS (gabble_media_session_parent_class)->dispose) - G_OBJECT_CLASS (gabble_media_session_parent_class)->dispose (object); -} - -void -gabble_media_session_finalize (GObject *object) -{ - GabbleMediaSession *self = GABBLE_MEDIA_SESSION (object); - GabbleMediaSessionPrivate *priv = GABBLE_MEDIA_SESSION_GET_PRIVATE (self); - - /* free any data held directly by the object here */ - - G_OBJECT_CLASS (gabble_media_session_parent_class)->finalize (object); -} - - - -/** - * gabble_media_session_error - * - * Implements D-Bus method Error - * on interface org.freedesktop.Telepathy.Media.SessionHandler - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_session_error (GabbleMediaSession *self, - guint errno, - const gchar *message, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_session_ready - * - * Implements D-Bus method Ready - * on interface org.freedesktop.Telepathy.Media.SessionHandler - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_session_ready (GabbleMediaSession *self, - GError **error) -{ - return TRUE; -} - diff --git a/generate/src/gabble-media-session.h b/generate/src/gabble-media-session.h deleted file mode 100644 index f8cbec03f..000000000 --- a/generate/src/gabble-media-session.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * gabble-media-session.h - Header for GabbleMediaSession - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 __GABBLE_MEDIA_SESSION_H__ -#define __GABBLE_MEDIA_SESSION_H__ - -#include - -G_BEGIN_DECLS - -typedef struct _GabbleMediaSession GabbleMediaSession; -typedef struct _GabbleMediaSessionClass GabbleMediaSessionClass; - -struct _GabbleMediaSessionClass { - GObjectClass parent_class; -}; - -struct _GabbleMediaSession { - GObject parent; - - gpointer priv; -}; - -GType gabble_media_session_get_type(void); - -/* TYPE MACROS */ -#define GABBLE_TYPE_MEDIA_SESSION \ - (gabble_media_session_get_type()) -#define GABBLE_MEDIA_SESSION(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_MEDIA_SESSION, GabbleMediaSession)) -#define GABBLE_MEDIA_SESSION_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_MEDIA_SESSION, GabbleMediaSessionClass)) -#define GABBLE_IS_MEDIA_SESSION(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_MEDIA_SESSION)) -#define GABBLE_IS_MEDIA_SESSION_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_MEDIA_SESSION)) -#define GABBLE_MEDIA_SESSION_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_MEDIA_SESSION, GabbleMediaSessionClass)) - - -gboolean -gabble_media_session_error (GabbleMediaSession *self, - guint errno, - const gchar *message, - GError **error); - -gboolean -gabble_media_session_ready (GabbleMediaSession *self, - GError **error); - - - -G_END_DECLS - -#endif /* #ifndef __GABBLE_MEDIA_SESSION_H__*/ diff --git a/generate/src/gabble-media-stream-signals-marshal.list b/generate/src/gabble-media-stream-signals-marshal.list deleted file mode 100644 index 60e5cb9f9..000000000 --- a/generate/src/gabble-media-stream-signals-marshal.list +++ /dev/null @@ -1,2 +0,0 @@ -VOID:STRING,STRING -VOID:STRING,BOXED diff --git a/generate/src/gabble-media-stream.c b/generate/src/gabble-media-stream.c deleted file mode 100644 index 46adbec60..000000000 --- a/generate/src/gabble-media-stream.c +++ /dev/null @@ -1,377 +0,0 @@ -/* - * gabble-media-stream.c - Source for GabbleMediaStream - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 - */ - -#include -#include -#include - -#include "gabble-media-stream.h" -#include "gabble-media-stream-signals-marshal.h" - -#include "gabble-media-stream-glue.h" - -G_DEFINE_TYPE(GabbleMediaStream, gabble_media_stream, G_TYPE_OBJECT) - -/* signal enum */ -enum -{ - ADD_REMOTE_CANDIDATE, - CLOSE, - REMOVE_REMOTE_CANDIDATE, - SET_ACTIVE_CANDIDATE_PAIR, - SET_REMOTE_CANDIDATE_LIST, - SET_REMOTE_CODECS, - SET_STREAM_PLAYING, - SET_STREAM_SENDING, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL] = {0}; - -/* private structure */ -typedef struct _GabbleMediaStreamPrivate GabbleMediaStreamPrivate; - -struct _GabbleMediaStreamPrivate -{ - gboolean dispose_has_run; -}; - -#define GABBLE_MEDIA_STREAM_GET_PRIVATE(obj) \ - ((GabbleMediaStreamPrivate *)obj->priv) - -static void -gabble_media_stream_init (GabbleMediaStream *self) -{ - GabbleMediaStreamPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - GABBLE_TYPE_MEDIA_STREAM, GabbleMediaStreamPrivate); - - self->priv = priv; - - /* allocate any data required by the object here */ -} - -static void gabble_media_stream_dispose (GObject *object); -static void gabble_media_stream_finalize (GObject *object); - -static void -gabble_media_stream_class_init (GabbleMediaStreamClass *gabble_media_stream_class) -{ - GObjectClass *object_class = G_OBJECT_CLASS (gabble_media_stream_class); - - g_type_class_add_private (gabble_media_stream_class, sizeof (GabbleMediaStreamPrivate)); - - object_class->dispose = gabble_media_stream_dispose; - object_class->finalize = gabble_media_stream_finalize; - - signals[ADD_REMOTE_CANDIDATE] = - g_signal_new ("add-remote-candidate", - G_OBJECT_CLASS_TYPE (gabble_media_stream_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_media_stream_marshal_VOID__STRING_BOXED, - G_TYPE_NONE, 2, G_TYPE_STRING, (dbus_g_type_get_collection ("GPtrArray", (dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_DOUBLE, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID))))); - - signals[CLOSE] = - g_signal_new ("close", - G_OBJECT_CLASS_TYPE (gabble_media_stream_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); - - signals[REMOVE_REMOTE_CANDIDATE] = - g_signal_new ("remove-remote-candidate", - G_OBJECT_CLASS_TYPE (gabble_media_stream_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__STRING, - G_TYPE_NONE, 1, G_TYPE_STRING); - - signals[SET_ACTIVE_CANDIDATE_PAIR] = - g_signal_new ("set-active-candidate-pair", - G_OBJECT_CLASS_TYPE (gabble_media_stream_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_media_stream_marshal_VOID__STRING_STRING, - G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING); - - signals[SET_REMOTE_CANDIDATE_LIST] = - g_signal_new ("set-remote-candidate-list", - G_OBJECT_CLASS_TYPE (gabble_media_stream_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOXED, - G_TYPE_NONE, 1, (dbus_g_type_get_collection ("GPtrArray", (dbus_g_type_get_struct ("GValueArray", G_TYPE_STRING, (dbus_g_type_get_collection ("GPtrArray", (dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_DOUBLE, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID)))), G_TYPE_INVALID))))); - - signals[SET_REMOTE_CODECS] = - g_signal_new ("set-remote-codecs", - G_OBJECT_CLASS_TYPE (gabble_media_stream_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOXED, - G_TYPE_NONE, 1, (dbus_g_type_get_collection ("GPtrArray", (dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, DBUS_TYPE_G_STRING_STRING_HASHTABLE, G_TYPE_INVALID))))); - - signals[SET_STREAM_PLAYING] = - g_signal_new ("set-stream-playing", - G_OBJECT_CLASS_TYPE (gabble_media_stream_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOOLEAN, - G_TYPE_NONE, 1, G_TYPE_BOOLEAN); - - signals[SET_STREAM_SENDING] = - g_signal_new ("set-stream-sending", - G_OBJECT_CLASS_TYPE (gabble_media_stream_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOOLEAN, - G_TYPE_NONE, 1, G_TYPE_BOOLEAN); - - dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (gabble_media_stream_class), &dbus_glib_gabble_media_stream_object_info); -} - -void -gabble_media_stream_dispose (GObject *object) -{ - GabbleMediaStream *self = GABBLE_MEDIA_STREAM (object); - GabbleMediaStreamPrivate *priv = GABBLE_MEDIA_STREAM_GET_PRIVATE (self); - - if (priv->dispose_has_run) - return; - - priv->dispose_has_run = TRUE; - - /* release any references held by the object here */ - - if (G_OBJECT_CLASS (gabble_media_stream_parent_class)->dispose) - G_OBJECT_CLASS (gabble_media_stream_parent_class)->dispose (object); -} - -void -gabble_media_stream_finalize (GObject *object) -{ - GabbleMediaStream *self = GABBLE_MEDIA_STREAM (object); - GabbleMediaStreamPrivate *priv = GABBLE_MEDIA_STREAM_GET_PRIVATE (self); - - /* free any data held directly by the object here */ - - G_OBJECT_CLASS (gabble_media_stream_parent_class)->finalize (object); -} - - - -/** - * gabble_media_stream_codec_choice - * - * Implements D-Bus method CodecChoice - * on interface org.freedesktop.Telepathy.Media.StreamHandler - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_stream_codec_choice (GabbleMediaStream *self, - guint codec_id, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_stream_error - * - * Implements D-Bus method Error - * on interface org.freedesktop.Telepathy.Media.StreamHandler - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_stream_error (GabbleMediaStream *self, - guint errno, - const gchar *message, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_stream_native_candidates_prepared - * - * Implements D-Bus method NativeCandidatesPrepared - * on interface org.freedesktop.Telepathy.Media.StreamHandler - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_stream_native_candidates_prepared (GabbleMediaStream *self, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_stream_new_active_candidate_pair - * - * Implements D-Bus method NewActiveCandidatePair - * on interface org.freedesktop.Telepathy.Media.StreamHandler - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_stream_new_active_candidate_pair (GabbleMediaStream *self, - const gchar *native_candidate_id, - const gchar *remote_candidate_id, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_stream_new_native_candidate - * - * Implements D-Bus method NewNativeCandidate - * on interface org.freedesktop.Telepathy.Media.StreamHandler - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_stream_new_native_candidate (GabbleMediaStream *self, - const gchar *candidate_id, - const GPtrArray *transports, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_stream_ready - * - * Implements D-Bus method Ready - * on interface org.freedesktop.Telepathy.Media.StreamHandler - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_stream_ready (GabbleMediaStream *self, - const GPtrArray *codecs, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_stream_set_local_codecs - * - * Implements D-Bus method SetLocalCodecs - * on interface org.freedesktop.Telepathy.Media.StreamHandler - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_stream_set_local_codecs (GabbleMediaStream *self, - const GPtrArray *codecs, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_stream_stream_state - * - * Implements D-Bus method StreamState - * on interface org.freedesktop.Telepathy.Media.StreamHandler - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_stream_stream_state (GabbleMediaStream *self, - guint state, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_media_stream_supported_codecs - * - * Implements D-Bus method SupportedCodecs - * on interface org.freedesktop.Telepathy.Media.StreamHandler - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_media_stream_supported_codecs (GabbleMediaStream *self, - const GPtrArray *codecs, - GError **error) -{ - return TRUE; -} - diff --git a/generate/src/gabble-media-stream.h b/generate/src/gabble-media-stream.h deleted file mode 100644 index 862ee76f7..000000000 --- a/generate/src/gabble-media-stream.h +++ /dev/null @@ -1,109 +0,0 @@ -/* - * gabble-media-stream.h - Header for GabbleMediaStream - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 __GABBLE_MEDIA_STREAM_H__ -#define __GABBLE_MEDIA_STREAM_H__ - -#include - -G_BEGIN_DECLS - -typedef struct _GabbleMediaStream GabbleMediaStream; -typedef struct _GabbleMediaStreamClass GabbleMediaStreamClass; - -struct _GabbleMediaStreamClass { - GObjectClass parent_class; -}; - -struct _GabbleMediaStream { - GObject parent; - - gpointer priv; -}; - -GType gabble_media_stream_get_type(void); - -/* TYPE MACROS */ -#define GABBLE_TYPE_MEDIA_STREAM \ - (gabble_media_stream_get_type()) -#define GABBLE_MEDIA_STREAM(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_MEDIA_STREAM, GabbleMediaStream)) -#define GABBLE_MEDIA_STREAM_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_MEDIA_STREAM, GabbleMediaStreamClass)) -#define GABBLE_IS_MEDIA_STREAM(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_MEDIA_STREAM)) -#define GABBLE_IS_MEDIA_STREAM_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_MEDIA_STREAM)) -#define GABBLE_MEDIA_STREAM_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_MEDIA_STREAM, GabbleMediaStreamClass)) - - -gboolean -gabble_media_stream_codec_choice (GabbleMediaStream *self, - guint codec_id, - GError **error); - -gboolean -gabble_media_stream_error (GabbleMediaStream *self, - guint errno, - const gchar *message, - GError **error); - -gboolean -gabble_media_stream_native_candidates_prepared (GabbleMediaStream *self, - GError **error); - -gboolean -gabble_media_stream_new_active_candidate_pair (GabbleMediaStream *self, - const gchar *native_candidate_id, - const gchar *remote_candidate_id, - GError **error); - -gboolean -gabble_media_stream_new_native_candidate (GabbleMediaStream *self, - const gchar *candidate_id, - const GPtrArray *transports, - GError **error); - -gboolean -gabble_media_stream_ready (GabbleMediaStream *self, - const GPtrArray *codecs, - GError **error); - -gboolean -gabble_media_stream_set_local_codecs (GabbleMediaStream *self, - const GPtrArray *codecs, - GError **error); - -gboolean -gabble_media_stream_stream_state (GabbleMediaStream *self, - guint state, - GError **error); - -gboolean -gabble_media_stream_supported_codecs (GabbleMediaStream *self, - const GPtrArray *codecs, - GError **error); - - - -G_END_DECLS - -#endif /* #ifndef __GABBLE_MEDIA_STREAM_H__*/ diff --git a/generate/src/gabble-muc-channel-signals-marshal.list b/generate/src/gabble-muc-channel-signals-marshal.list deleted file mode 100644 index 8fd20bec7..000000000 --- a/generate/src/gabble-muc-channel-signals-marshal.list +++ /dev/null @@ -1,5 +0,0 @@ -VOID:UINT,UINT,UINT,UINT,UINT,STRING -VOID:UINT,UINT,UINT,STRING -VOID:UINT,UINT,STRING -VOID:UINT,UINT -VOID:STRING,BOXED,BOXED,BOXED,BOXED,UINT,UINT diff --git a/generate/src/gabble-muc-channel.c b/generate/src/gabble-muc-channel.c deleted file mode 100644 index c30237494..000000000 --- a/generate/src/gabble-muc-channel.c +++ /dev/null @@ -1,670 +0,0 @@ -/* - * gabble-muc-channel.c - Source for GabbleMucChannel - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 - */ - -#include -#include -#include - -#include "gabble-muc-channel.h" -#include "gabble-muc-channel-signals-marshal.h" - -#include "gabble-muc-channel-glue.h" - -G_DEFINE_TYPE(GabbleMucChannel, gabble_muc_channel, G_TYPE_OBJECT) - -/* signal enum */ -enum -{ - CLOSED, - GROUP_FLAGS_CHANGED, - LOST_MESSAGE, - MEMBERS_CHANGED, - PASSWORD_FLAGS_CHANGED, - PROPERTIES_CHANGED, - PROPERTY_FLAGS_CHANGED, - RECEIVED, - SEND_ERROR, - SENT, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL] = {0}; - -/* private structure */ -typedef struct _GabbleMucChannelPrivate GabbleMucChannelPrivate; - -struct _GabbleMucChannelPrivate -{ - gboolean dispose_has_run; -}; - -#define GABBLE_MUC_CHANNEL_GET_PRIVATE(obj) \ - ((GabbleMucChannelPrivate *)obj->priv) - -static void -gabble_muc_channel_init (GabbleMucChannel *self) -{ - GabbleMucChannelPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - GABBLE_TYPE_MUC_CHANNEL, GabbleMucChannelPrivate); - - self->priv = priv; - - /* allocate any data required by the object here */ -} - -static void gabble_muc_channel_dispose (GObject *object); -static void gabble_muc_channel_finalize (GObject *object); - -static void -gabble_muc_channel_class_init (GabbleMucChannelClass *gabble_muc_channel_class) -{ - GObjectClass *object_class = G_OBJECT_CLASS (gabble_muc_channel_class); - - g_type_class_add_private (gabble_muc_channel_class, sizeof (GabbleMucChannelPrivate)); - - object_class->dispose = gabble_muc_channel_dispose; - object_class->finalize = gabble_muc_channel_finalize; - - signals[CLOSED] = - g_signal_new ("closed", - G_OBJECT_CLASS_TYPE (gabble_muc_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); - - signals[GROUP_FLAGS_CHANGED] = - g_signal_new ("group-flags-changed", - G_OBJECT_CLASS_TYPE (gabble_muc_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_muc_channel_marshal_VOID__UINT_UINT, - G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT); - - signals[LOST_MESSAGE] = - g_signal_new ("lost-message", - G_OBJECT_CLASS_TYPE (gabble_muc_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); - - signals[MEMBERS_CHANGED] = - g_signal_new ("members-changed", - G_OBJECT_CLASS_TYPE (gabble_muc_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_muc_channel_marshal_VOID__STRING_BOXED_BOXED_BOXED_BOXED_UINT_UINT, - G_TYPE_NONE, 7, G_TYPE_STRING, DBUS_TYPE_G_UINT_ARRAY, DBUS_TYPE_G_UINT_ARRAY, DBUS_TYPE_G_UINT_ARRAY, DBUS_TYPE_G_UINT_ARRAY, G_TYPE_UINT, G_TYPE_UINT); - - signals[PASSWORD_FLAGS_CHANGED] = - g_signal_new ("password-flags-changed", - G_OBJECT_CLASS_TYPE (gabble_muc_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_muc_channel_marshal_VOID__UINT_UINT, - G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT); - - signals[PROPERTIES_CHANGED] = - g_signal_new ("properties-changed", - G_OBJECT_CLASS_TYPE (gabble_muc_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOXED, - G_TYPE_NONE, 1, (dbus_g_type_get_collection ("GPtrArray", (dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, G_TYPE_VALUE, G_TYPE_INVALID))))); - - signals[PROPERTY_FLAGS_CHANGED] = - g_signal_new ("property-flags-changed", - G_OBJECT_CLASS_TYPE (gabble_muc_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOXED, - G_TYPE_NONE, 1, (dbus_g_type_get_collection ("GPtrArray", (dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INVALID))))); - - signals[RECEIVED] = - g_signal_new ("received", - G_OBJECT_CLASS_TYPE (gabble_muc_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_muc_channel_marshal_VOID__UINT_UINT_UINT_UINT_UINT_STRING, - G_TYPE_NONE, 6, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING); - - signals[SEND_ERROR] = - g_signal_new ("send-error", - G_OBJECT_CLASS_TYPE (gabble_muc_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_muc_channel_marshal_VOID__UINT_UINT_UINT_STRING, - G_TYPE_NONE, 4, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING); - - signals[SENT] = - g_signal_new ("sent", - G_OBJECT_CLASS_TYPE (gabble_muc_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_muc_channel_marshal_VOID__UINT_UINT_STRING, - G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING); - - dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (gabble_muc_channel_class), &dbus_glib_gabble_muc_channel_object_info); -} - -void -gabble_muc_channel_dispose (GObject *object) -{ - GabbleMucChannel *self = GABBLE_MUC_CHANNEL (object); - GabbleMucChannelPrivate *priv = GABBLE_MUC_CHANNEL_GET_PRIVATE (self); - - if (priv->dispose_has_run) - return; - - priv->dispose_has_run = TRUE; - - /* release any references held by the object here */ - - if (G_OBJECT_CLASS (gabble_muc_channel_parent_class)->dispose) - G_OBJECT_CLASS (gabble_muc_channel_parent_class)->dispose (object); -} - -void -gabble_muc_channel_finalize (GObject *object) -{ - GabbleMucChannel *self = GABBLE_MUC_CHANNEL (object); - GabbleMucChannelPrivate *priv = GABBLE_MUC_CHANNEL_GET_PRIVATE (self); - - /* free any data held directly by the object here */ - - G_OBJECT_CLASS (gabble_muc_channel_parent_class)->finalize (object); -} - - - -/** - * gabble_muc_channel_acknowledge_pending_messages - * - * Implements D-Bus method AcknowledgePendingMessages - * on interface org.freedesktop.Telepathy.Channel.Type.Text - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_acknowledge_pending_messages (GabbleMucChannel *self, - const GArray *ids, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_add_members - * - * Implements D-Bus method AddMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_add_members (GabbleMucChannel *self, - const GArray *contacts, - const gchar *message, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_close - * - * Implements D-Bus method Close - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_close (GabbleMucChannel *self, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_all_members - * - * Implements D-Bus method GetAllMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_all_members (GabbleMucChannel *self, - GArray **ret, - GArray **ret1, - GArray **ret2, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_channel_type - * - * Implements D-Bus method GetChannelType - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_channel_type (GabbleMucChannel *self, - gchar **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_group_flags - * - * Implements D-Bus method GetGroupFlags - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_group_flags (GabbleMucChannel *self, - guint *ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_handle - * - * Implements D-Bus method GetHandle - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_handle (GabbleMucChannel *self, - guint *ret, - guint *ret1, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_handle_owners - * - * Implements D-Bus method GetHandleOwners - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_handle_owners (GabbleMucChannel *self, - const GArray *handles, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_interfaces - * - * Implements D-Bus method GetInterfaces - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_interfaces (GabbleMucChannel *self, - gchar ***ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_local_pending_members - * - * Implements D-Bus method GetLocalPendingMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_local_pending_members (GabbleMucChannel *self, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_members - * - * Implements D-Bus method GetMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_members (GabbleMucChannel *self, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_message_types - * - * Implements D-Bus method GetMessageTypes - * on interface org.freedesktop.Telepathy.Channel.Type.Text - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_message_types (GabbleMucChannel *self, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_password_flags - * - * Implements D-Bus method GetPasswordFlags - * on interface org.freedesktop.Telepathy.Channel.Interface.Password - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_password_flags (GabbleMucChannel *self, - guint *ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_properties - * - * Implements D-Bus method GetProperties - * on interface org.freedesktop.Telepathy.Properties - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_properties (GabbleMucChannel *self, - const GArray *properties, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_remote_pending_members - * - * Implements D-Bus method GetRemotePendingMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_remote_pending_members (GabbleMucChannel *self, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_get_self_handle - * - * Implements D-Bus method GetSelfHandle - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_get_self_handle (GabbleMucChannel *self, - guint *ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_list_pending_messages - * - * Implements D-Bus method ListPendingMessages - * on interface org.freedesktop.Telepathy.Channel.Type.Text - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_list_pending_messages (GabbleMucChannel *self, - gboolean clear, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_list_properties - * - * Implements D-Bus method ListProperties - * on interface org.freedesktop.Telepathy.Properties - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_list_properties (GabbleMucChannel *self, - GPtrArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_provide_password - * - * Implements D-Bus method ProvidePassword - * on interface org.freedesktop.Telepathy.Channel.Interface.Password - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_muc_channel_provide_password (GabbleMucChannel *self, - const gchar *password, - DBusGMethodInvocation *context) -{ - return; -} - - -/** - * gabble_muc_channel_remove_members - * - * Implements D-Bus method RemoveMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_remove_members (GabbleMucChannel *self, - const GArray *contacts, - const gchar *message, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_send - * - * Implements D-Bus method Send - * on interface org.freedesktop.Telepathy.Channel.Type.Text - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_muc_channel_send (GabbleMucChannel *self, - guint type, - const gchar *text, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_muc_channel_set_properties - * - * Implements D-Bus method SetProperties - * on interface org.freedesktop.Telepathy.Properties - * - * @context: The D-Bus invocation context to use to return values - * or throw an error. - */ -void -gabble_muc_channel_set_properties (GabbleMucChannel *self, - const GPtrArray *properties, - DBusGMethodInvocation *context) -{ - return; -} - diff --git a/generate/src/gabble-muc-channel.h b/generate/src/gabble-muc-channel.h deleted file mode 100644 index 95c02466b..000000000 --- a/generate/src/gabble-muc-channel.h +++ /dev/null @@ -1,180 +0,0 @@ -/* - * gabble-muc-channel.h - Header for GabbleMucChannel - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 __GABBLE_MUC_CHANNEL_H__ -#define __GABBLE_MUC_CHANNEL_H__ - -#include - -G_BEGIN_DECLS - -typedef struct _GabbleMucChannel GabbleMucChannel; -typedef struct _GabbleMucChannelClass GabbleMucChannelClass; - -struct _GabbleMucChannelClass { - GObjectClass parent_class; -}; - -struct _GabbleMucChannel { - GObject parent; - - gpointer priv; -}; - -GType gabble_muc_channel_get_type(void); - -/* TYPE MACROS */ -#define GABBLE_TYPE_MUC_CHANNEL \ - (gabble_muc_channel_get_type()) -#define GABBLE_MUC_CHANNEL(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_MUC_CHANNEL, GabbleMucChannel)) -#define GABBLE_MUC_CHANNEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_MUC_CHANNEL, GabbleMucChannelClass)) -#define GABBLE_IS_MUC_CHANNEL(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_MUC_CHANNEL)) -#define GABBLE_IS_MUC_CHANNEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_MUC_CHANNEL)) -#define GABBLE_MUC_CHANNEL_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_MUC_CHANNEL, GabbleMucChannelClass)) - - -gboolean -gabble_muc_channel_acknowledge_pending_messages (GabbleMucChannel *self, - const GArray *ids, - GError **error); - -gboolean -gabble_muc_channel_add_members (GabbleMucChannel *self, - const GArray *contacts, - const gchar *message, - GError **error); - -gboolean -gabble_muc_channel_close (GabbleMucChannel *self, - GError **error); - -gboolean -gabble_muc_channel_get_all_members (GabbleMucChannel *self, - GArray **ret, - GArray **ret1, - GArray **ret2, - GError **error); - -gboolean -gabble_muc_channel_get_channel_type (GabbleMucChannel *self, - gchar **ret, - GError **error); - -gboolean -gabble_muc_channel_get_group_flags (GabbleMucChannel *self, - guint *ret, - GError **error); - -gboolean -gabble_muc_channel_get_handle (GabbleMucChannel *self, - guint *ret, - guint *ret1, - GError **error); - -gboolean -gabble_muc_channel_get_handle_owners (GabbleMucChannel *self, - const GArray *handles, - GArray **ret, - GError **error); - -gboolean -gabble_muc_channel_get_interfaces (GabbleMucChannel *self, - gchar ***ret, - GError **error); - -gboolean -gabble_muc_channel_get_local_pending_members (GabbleMucChannel *self, - GArray **ret, - GError **error); - -gboolean -gabble_muc_channel_get_members (GabbleMucChannel *self, - GArray **ret, - GError **error); - -gboolean -gabble_muc_channel_get_message_types (GabbleMucChannel *self, - GArray **ret, - GError **error); - -gboolean -gabble_muc_channel_get_password_flags (GabbleMucChannel *self, - guint *ret, - GError **error); - -gboolean -gabble_muc_channel_get_properties (GabbleMucChannel *self, - const GArray *properties, - GPtrArray **ret, - GError **error); - -gboolean -gabble_muc_channel_get_remote_pending_members (GabbleMucChannel *self, - GArray **ret, - GError **error); - -gboolean -gabble_muc_channel_get_self_handle (GabbleMucChannel *self, - guint *ret, - GError **error); - -gboolean -gabble_muc_channel_list_pending_messages (GabbleMucChannel *self, - gboolean clear, - GPtrArray **ret, - GError **error); - -gboolean -gabble_muc_channel_list_properties (GabbleMucChannel *self, - GPtrArray **ret, - GError **error); - -void -gabble_muc_channel_provide_password (GabbleMucChannel *self, - const gchar *password, - DBusGMethodInvocation *context); - -gboolean -gabble_muc_channel_remove_members (GabbleMucChannel *self, - const GArray *contacts, - const gchar *message, - GError **error); - -gboolean -gabble_muc_channel_send (GabbleMucChannel *self, - guint type, - const gchar *text, - GError **error); - -void -gabble_muc_channel_set_properties (GabbleMucChannel *self, - const GPtrArray *properties, - DBusGMethodInvocation *context); - - - -G_END_DECLS - -#endif /* #ifndef __GABBLE_MUC_CHANNEL_H__*/ diff --git a/generate/src/gabble-roomlist-channel-signals-marshal.list b/generate/src/gabble-roomlist-channel-signals-marshal.list deleted file mode 100644 index e69de29bb..000000000 diff --git a/generate/src/gabble-roomlist-channel.c b/generate/src/gabble-roomlist-channel.c deleted file mode 100644 index 5875de9f5..000000000 --- a/generate/src/gabble-roomlist-channel.c +++ /dev/null @@ -1,261 +0,0 @@ -/* - * gabble-roomlist-channel.c - Source for GabbleRoomlistChannel - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 - */ - -#include -#include -#include - -#include "gabble-roomlist-channel.h" -#include "gabble-roomlist-channel-signals-marshal.h" - -#include "gabble-roomlist-channel-glue.h" - -G_DEFINE_TYPE(GabbleRoomlistChannel, gabble_roomlist_channel, G_TYPE_OBJECT) - -/* signal enum */ -enum -{ - CLOSED, - GOT_ROOMS, - LISTING_ROOMS, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL] = {0}; - -/* private structure */ -typedef struct _GabbleRoomlistChannelPrivate GabbleRoomlistChannelPrivate; - -struct _GabbleRoomlistChannelPrivate -{ - gboolean dispose_has_run; -}; - -#define GABBLE_ROOMLIST_CHANNEL_GET_PRIVATE(obj) \ - ((GabbleRoomlistChannelPrivate *)obj->priv) - -static void -gabble_roomlist_channel_init (GabbleRoomlistChannel *self) -{ - GabbleRoomlistChannelPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - GABBLE_TYPE_ROOMLIST_CHANNEL, GabbleRoomlistChannelPrivate); - - self->priv = priv; - - /* allocate any data required by the object here */ -} - -static void gabble_roomlist_channel_dispose (GObject *object); -static void gabble_roomlist_channel_finalize (GObject *object); - -static void -gabble_roomlist_channel_class_init (GabbleRoomlistChannelClass *gabble_roomlist_channel_class) -{ - GObjectClass *object_class = G_OBJECT_CLASS (gabble_roomlist_channel_class); - - g_type_class_add_private (gabble_roomlist_channel_class, sizeof (GabbleRoomlistChannelPrivate)); - - object_class->dispose = gabble_roomlist_channel_dispose; - object_class->finalize = gabble_roomlist_channel_finalize; - - signals[CLOSED] = - g_signal_new ("closed", - G_OBJECT_CLASS_TYPE (gabble_roomlist_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); - - signals[GOT_ROOMS] = - g_signal_new ("got-rooms", - G_OBJECT_CLASS_TYPE (gabble_roomlist_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOXED, - G_TYPE_NONE, 1, (dbus_g_type_get_collection ("GPtrArray", (dbus_g_type_get_struct ("GValueArray", G_TYPE_UINT, G_TYPE_STRING, (dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE)), G_TYPE_INVALID))))); - - signals[LISTING_ROOMS] = - g_signal_new ("listing-rooms", - G_OBJECT_CLASS_TYPE (gabble_roomlist_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__BOOLEAN, - G_TYPE_NONE, 1, G_TYPE_BOOLEAN); - - dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (gabble_roomlist_channel_class), &dbus_glib_gabble_roomlist_channel_object_info); -} - -void -gabble_roomlist_channel_dispose (GObject *object) -{ - GabbleRoomlistChannel *self = GABBLE_ROOMLIST_CHANNEL (object); - GabbleRoomlistChannelPrivate *priv = GABBLE_ROOMLIST_CHANNEL_GET_PRIVATE (self); - - if (priv->dispose_has_run) - return; - - priv->dispose_has_run = TRUE; - - /* release any references held by the object here */ - - if (G_OBJECT_CLASS (gabble_roomlist_channel_parent_class)->dispose) - G_OBJECT_CLASS (gabble_roomlist_channel_parent_class)->dispose (object); -} - -void -gabble_roomlist_channel_finalize (GObject *object) -{ - GabbleRoomlistChannel *self = GABBLE_ROOMLIST_CHANNEL (object); - GabbleRoomlistChannelPrivate *priv = GABBLE_ROOMLIST_CHANNEL_GET_PRIVATE (self); - - /* free any data held directly by the object here */ - - G_OBJECT_CLASS (gabble_roomlist_channel_parent_class)->finalize (object); -} - - - -/** - * gabble_roomlist_channel_close - * - * Implements D-Bus method Close - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roomlist_channel_close (GabbleRoomlistChannel *self, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roomlist_channel_get_channel_type - * - * Implements D-Bus method GetChannelType - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roomlist_channel_get_channel_type (GabbleRoomlistChannel *self, - gchar **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roomlist_channel_get_handle - * - * Implements D-Bus method GetHandle - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roomlist_channel_get_handle (GabbleRoomlistChannel *self, - guint *ret, - guint *ret1, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roomlist_channel_get_interfaces - * - * Implements D-Bus method GetInterfaces - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roomlist_channel_get_interfaces (GabbleRoomlistChannel *self, - gchar ***ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roomlist_channel_get_listing_rooms - * - * Implements D-Bus method GetListingRooms - * on interface org.freedesktop.Telepathy.Channel.Type.RoomList - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roomlist_channel_get_listing_rooms (GabbleRoomlistChannel *self, - gboolean *ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roomlist_channel_list_rooms - * - * Implements D-Bus method ListRooms - * on interface org.freedesktop.Telepathy.Channel.Type.RoomList - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roomlist_channel_list_rooms (GabbleRoomlistChannel *self, - GError **error) -{ - return TRUE; -} - diff --git a/generate/src/gabble-roomlist-channel.h b/generate/src/gabble-roomlist-channel.h deleted file mode 100644 index b6617c1d8..000000000 --- a/generate/src/gabble-roomlist-channel.h +++ /dev/null @@ -1,91 +0,0 @@ -/* - * gabble-roomlist-channel.h - Header for GabbleRoomlistChannel - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 __GABBLE_ROOMLIST_CHANNEL_H__ -#define __GABBLE_ROOMLIST_CHANNEL_H__ - -#include - -G_BEGIN_DECLS - -typedef struct _GabbleRoomlistChannel GabbleRoomlistChannel; -typedef struct _GabbleRoomlistChannelClass GabbleRoomlistChannelClass; - -struct _GabbleRoomlistChannelClass { - GObjectClass parent_class; -}; - -struct _GabbleRoomlistChannel { - GObject parent; - - gpointer priv; -}; - -GType gabble_roomlist_channel_get_type(void); - -/* TYPE MACROS */ -#define GABBLE_TYPE_ROOMLIST_CHANNEL \ - (gabble_roomlist_channel_get_type()) -#define GABBLE_ROOMLIST_CHANNEL(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_ROOMLIST_CHANNEL, GabbleRoomlistChannel)) -#define GABBLE_ROOMLIST_CHANNEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_ROOMLIST_CHANNEL, GabbleRoomlistChannelClass)) -#define GABBLE_IS_ROOMLIST_CHANNEL(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_ROOMLIST_CHANNEL)) -#define GABBLE_IS_ROOMLIST_CHANNEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_ROOMLIST_CHANNEL)) -#define GABBLE_ROOMLIST_CHANNEL_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_ROOMLIST_CHANNEL, GabbleRoomlistChannelClass)) - - -gboolean -gabble_roomlist_channel_close (GabbleRoomlistChannel *self, - GError **error); - -gboolean -gabble_roomlist_channel_get_channel_type (GabbleRoomlistChannel *self, - gchar **ret, - GError **error); - -gboolean -gabble_roomlist_channel_get_handle (GabbleRoomlistChannel *self, - guint *ret, - guint *ret1, - GError **error); - -gboolean -gabble_roomlist_channel_get_interfaces (GabbleRoomlistChannel *self, - gchar ***ret, - GError **error); - -gboolean -gabble_roomlist_channel_get_listing_rooms (GabbleRoomlistChannel *self, - gboolean *ret, - GError **error); - -gboolean -gabble_roomlist_channel_list_rooms (GabbleRoomlistChannel *self, - GError **error); - - - -G_END_DECLS - -#endif /* #ifndef __GABBLE_ROOMLIST_CHANNEL_H__*/ diff --git a/generate/src/gabble-roster-channel-signals-marshal.list b/generate/src/gabble-roster-channel-signals-marshal.list deleted file mode 100644 index c1333dfa3..000000000 --- a/generate/src/gabble-roster-channel-signals-marshal.list +++ /dev/null @@ -1,2 +0,0 @@ -VOID:UINT,UINT -VOID:STRING,BOXED,BOXED,BOXED,BOXED,UINT,UINT diff --git a/generate/src/gabble-roster-channel.c b/generate/src/gabble-roster-channel.c deleted file mode 100644 index 89a83fccb..000000000 --- a/generate/src/gabble-roster-channel.c +++ /dev/null @@ -1,414 +0,0 @@ -/* - * gabble-roster-channel.c - Source for GabbleRosterChannel - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 - */ - -#include -#include -#include - -#include "gabble-roster-channel.h" -#include "gabble-roster-channel-signals-marshal.h" - -#include "gabble-roster-channel-glue.h" - -G_DEFINE_TYPE(GabbleRosterChannel, gabble_roster_channel, G_TYPE_OBJECT) - -/* signal enum */ -enum -{ - CLOSED, - GROUP_FLAGS_CHANGED, - MEMBERS_CHANGED, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL] = {0}; - -/* private structure */ -typedef struct _GabbleRosterChannelPrivate GabbleRosterChannelPrivate; - -struct _GabbleRosterChannelPrivate -{ - gboolean dispose_has_run; -}; - -#define GABBLE_ROSTER_CHANNEL_GET_PRIVATE(obj) \ - ((GabbleRosterChannelPrivate *)obj->priv) - -static void -gabble_roster_channel_init (GabbleRosterChannel *self) -{ - GabbleRosterChannelPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - GABBLE_TYPE_ROSTER_CHANNEL, GabbleRosterChannelPrivate); - - self->priv = priv; - - /* allocate any data required by the object here */ -} - -static void gabble_roster_channel_dispose (GObject *object); -static void gabble_roster_channel_finalize (GObject *object); - -static void -gabble_roster_channel_class_init (GabbleRosterChannelClass *gabble_roster_channel_class) -{ - GObjectClass *object_class = G_OBJECT_CLASS (gabble_roster_channel_class); - - g_type_class_add_private (gabble_roster_channel_class, sizeof (GabbleRosterChannelPrivate)); - - object_class->dispose = gabble_roster_channel_dispose; - object_class->finalize = gabble_roster_channel_finalize; - - signals[CLOSED] = - g_signal_new ("closed", - G_OBJECT_CLASS_TYPE (gabble_roster_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); - - signals[GROUP_FLAGS_CHANGED] = - g_signal_new ("group-flags-changed", - G_OBJECT_CLASS_TYPE (gabble_roster_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_roster_channel_marshal_VOID__UINT_UINT, - G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT); - - signals[MEMBERS_CHANGED] = - g_signal_new ("members-changed", - G_OBJECT_CLASS_TYPE (gabble_roster_channel_class), - G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, - 0, - NULL, NULL, - gabble_roster_channel_marshal_VOID__STRING_BOXED_BOXED_BOXED_BOXED_UINT_UINT, - G_TYPE_NONE, 7, G_TYPE_STRING, DBUS_TYPE_G_UINT_ARRAY, DBUS_TYPE_G_UINT_ARRAY, DBUS_TYPE_G_UINT_ARRAY, DBUS_TYPE_G_UINT_ARRAY, G_TYPE_UINT, G_TYPE_UINT); - - dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (gabble_roster_channel_class), &dbus_glib_gabble_roster_channel_object_info); -} - -void -gabble_roster_channel_dispose (GObject *object) -{ - GabbleRosterChannel *self = GABBLE_ROSTER_CHANNEL (object); - GabbleRosterChannelPrivate *priv = GABBLE_ROSTER_CHANNEL_GET_PRIVATE (self); - - if (priv->dispose_has_run) - return; - - priv->dispose_has_run = TRUE; - - /* release any references held by the object here */ - - if (G_OBJECT_CLASS (gabble_roster_channel_parent_class)->dispose) - G_OBJECT_CLASS (gabble_roster_channel_parent_class)->dispose (object); -} - -void -gabble_roster_channel_finalize (GObject *object) -{ - GabbleRosterChannel *self = GABBLE_ROSTER_CHANNEL (object); - GabbleRosterChannelPrivate *priv = GABBLE_ROSTER_CHANNEL_GET_PRIVATE (self); - - /* free any data held directly by the object here */ - - G_OBJECT_CLASS (gabble_roster_channel_parent_class)->finalize (object); -} - - - -/** - * gabble_roster_channel_add_members - * - * Implements D-Bus method AddMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_add_members (GabbleRosterChannel *self, - const GArray *contacts, - const gchar *message, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roster_channel_close - * - * Implements D-Bus method Close - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_close (GabbleRosterChannel *self, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roster_channel_get_all_members - * - * Implements D-Bus method GetAllMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_get_all_members (GabbleRosterChannel *self, - GArray **ret, - GArray **ret1, - GArray **ret2, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roster_channel_get_channel_type - * - * Implements D-Bus method GetChannelType - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_get_channel_type (GabbleRosterChannel *self, - gchar **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roster_channel_get_group_flags - * - * Implements D-Bus method GetGroupFlags - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_get_group_flags (GabbleRosterChannel *self, - guint *ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roster_channel_get_handle - * - * Implements D-Bus method GetHandle - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_get_handle (GabbleRosterChannel *self, - guint *ret, - guint *ret1, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roster_channel_get_handle_owners - * - * Implements D-Bus method GetHandleOwners - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_get_handle_owners (GabbleRosterChannel *self, - const GArray *handles, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roster_channel_get_interfaces - * - * Implements D-Bus method GetInterfaces - * on interface org.freedesktop.Telepathy.Channel - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_get_interfaces (GabbleRosterChannel *self, - gchar ***ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roster_channel_get_local_pending_members - * - * Implements D-Bus method GetLocalPendingMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_get_local_pending_members (GabbleRosterChannel *self, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roster_channel_get_members - * - * Implements D-Bus method GetMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_get_members (GabbleRosterChannel *self, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roster_channel_get_remote_pending_members - * - * Implements D-Bus method GetRemotePendingMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_get_remote_pending_members (GabbleRosterChannel *self, - GArray **ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roster_channel_get_self_handle - * - * Implements D-Bus method GetSelfHandle - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_get_self_handle (GabbleRosterChannel *self, - guint *ret, - GError **error) -{ - return TRUE; -} - - -/** - * gabble_roster_channel_remove_members - * - * Implements D-Bus method RemoveMembers - * on interface org.freedesktop.Telepathy.Channel.Interface.Group - * - * @error: Used to return a pointer to a GError detailing any error - * that occurred, D-Bus will throw the error only if this - * function returns FALSE. - * - * Returns: TRUE if successful, FALSE if an error was thrown. - */ -gboolean -gabble_roster_channel_remove_members (GabbleRosterChannel *self, - const GArray *contacts, - const gchar *message, - GError **error) -{ - return TRUE; -} - diff --git a/generate/src/gabble-roster-channel.h b/generate/src/gabble-roster-channel.h deleted file mode 100644 index b9441bd92..000000000 --- a/generate/src/gabble-roster-channel.h +++ /dev/null @@ -1,132 +0,0 @@ -/* - * gabble-roster-channel.h - Header for GabbleRosterChannel - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 __GABBLE_ROSTER_CHANNEL_H__ -#define __GABBLE_ROSTER_CHANNEL_H__ - -#include - -G_BEGIN_DECLS - -typedef struct _GabbleRosterChannel GabbleRosterChannel; -typedef struct _GabbleRosterChannelClass GabbleRosterChannelClass; - -struct _GabbleRosterChannelClass { - GObjectClass parent_class; -}; - -struct _GabbleRosterChannel { - GObject parent; - - gpointer priv; -}; - -GType gabble_roster_channel_get_type(void); - -/* TYPE MACROS */ -#define GABBLE_TYPE_ROSTER_CHANNEL \ - (gabble_roster_channel_get_type()) -#define GABBLE_ROSTER_CHANNEL(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_ROSTER_CHANNEL, GabbleRosterChannel)) -#define GABBLE_ROSTER_CHANNEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_ROSTER_CHANNEL, GabbleRosterChannelClass)) -#define GABBLE_IS_ROSTER_CHANNEL(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_ROSTER_CHANNEL)) -#define GABBLE_IS_ROSTER_CHANNEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_ROSTER_CHANNEL)) -#define GABBLE_ROSTER_CHANNEL_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_ROSTER_CHANNEL, GabbleRosterChannelClass)) - - -gboolean -gabble_roster_channel_add_members (GabbleRosterChannel *self, - const GArray *contacts, - const gchar *message, - GError **error); - -gboolean -gabble_roster_channel_close (GabbleRosterChannel *self, - GError **error); - -gboolean -gabble_roster_channel_get_all_members (GabbleRosterChannel *self, - GArray **ret, - GArray **ret1, - GArray **ret2, - GError **error); - -gboolean -gabble_roster_channel_get_channel_type (GabbleRosterChannel *self, - gchar **ret, - GError **error); - -gboolean -gabble_roster_channel_get_group_flags (GabbleRosterChannel *self, - guint *ret, - GError **error); - -gboolean -gabble_roster_channel_get_handle (GabbleRosterChannel *self, - guint *ret, - guint *ret1, - GError **error); - -gboolean -gabble_roster_channel_get_handle_owners (GabbleRosterChannel *self, - const GArray *handles, - GArray **ret, - GError **error); - -gboolean -gabble_roster_channel_get_interfaces (GabbleRosterChannel *self, - gchar ***ret, - GError **error); - -gboolean -gabble_roster_channel_get_local_pending_members (GabbleRosterChannel *self, - GArray **ret, - GError **error); - -gboolean -gabble_roster_channel_get_members (GabbleRosterChannel *self, - GArray **ret, - GError **error); - -gboolean -gabble_roster_channel_get_remote_pending_members (GabbleRosterChannel *self, - GArray **ret, - GError **error); - -gboolean -gabble_roster_channel_get_self_handle (GabbleRosterChannel *self, - guint *ret, - GError **error); - -gboolean -gabble_roster_channel_remove_members (GabbleRosterChannel *self, - const GArray *contacts, - const gchar *message, - GError **error); - - - -G_END_DECLS - -#endif /* #ifndef __GABBLE_ROSTER_CHANNEL_H__*/ diff --git a/generate/src/telepathy-errors.h b/generate/src/telepathy-errors.h deleted file mode 100644 index 18c00cca4..000000000 --- a/generate/src/telepathy-errors.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * telepathy-errors.h - Header for Telepathy error types - * Copyright (C) 2005 Collabora Ltd. - * Copyright (C) 2005 Nokia Corporation - * - * 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 __TELEPATHY_ERRORS_H__ -#define __TELEPATHY_ERRORS_H__ - -#include - -G_BEGIN_DECLS - -typedef enum -{ - ChannelBanned, /** You are banned from the channel. - */ - ChannelFull, /** The channel is full. - */ - ChannelInviteOnly, /** The requested channel is invite-only. - */ - Disconnected, /** The connection is not currently connected and cannot - * be used. - */ - InvalidArgument, /** Raised when one of the provided arguments is invalid. - */ - InvalidHandle, /** The contact name specified is unknown on this channel - * or connection. - */ - NetworkError, /** Raised when there is an error reading from or writing - * to the network. - */ - NotAvailable, /** Raised when the requested functionality is temporarily - * unavailable. - */ - NotImplemented, /** Raised when the requested method, channel, etc is not - * available on this connection. - */ - PermissionDenied, /** The user is not permitted to perform the requested - * operation. - */ -} TelepathyErrors; - - -G_END_DECLS - -#endif /* #ifndef __TELEPATHY_ERRORS_H__*/ diff --git a/generate/xml-modified/.git-darcs-dir b/generate/xml-modified/.git-darcs-dir deleted file mode 100644 index e69de29bb..000000000 diff --git a/generate/xml-modified/gabble-connection-manager.xml b/generate/xml-modified/gabble-connection-manager.xml deleted file mode 100644 index 74c654590..000000000 --- a/generate/xml-modified/gabble-connection-manager.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-modified/gabble-connection.xml b/generate/xml-modified/gabble-connection.xml deleted file mode 100644 index 9b7581547..000000000 --- a/generate/xml-modified/gabble-connection.xml +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-modified/gabble-im-channel.xml b/generate/xml-modified/gabble-im-channel.xml deleted file mode 100644 index 36307b54c..000000000 --- a/generate/xml-modified/gabble-im-channel.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-modified/gabble-media-channel.xml b/generate/xml-modified/gabble-media-channel.xml deleted file mode 100644 index 7575ee619..000000000 --- a/generate/xml-modified/gabble-media-channel.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-modified/gabble-media-session.xml b/generate/xml-modified/gabble-media-session.xml deleted file mode 100644 index db7c995e7..000000000 --- a/generate/xml-modified/gabble-media-session.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/generate/xml-modified/gabble-media-stream.xml b/generate/xml-modified/gabble-media-stream.xml deleted file mode 100644 index 103c1e810..000000000 --- a/generate/xml-modified/gabble-media-stream.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-modified/gabble-muc-channel.xml b/generate/xml-modified/gabble-muc-channel.xml deleted file mode 100644 index c1d05727b..000000000 --- a/generate/xml-modified/gabble-muc-channel.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-modified/gabble-roomlist-channel.xml b/generate/xml-modified/gabble-roomlist-channel.xml deleted file mode 100644 index b1d060016..000000000 --- a/generate/xml-modified/gabble-roomlist-channel.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-modified/gabble-roster-channel.xml b/generate/xml-modified/gabble-roster-channel.xml deleted file mode 100644 index 8dbc49c34..000000000 --- a/generate/xml-modified/gabble-roster-channel.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-pristine/.git-darcs-dir b/generate/xml-pristine/.git-darcs-dir deleted file mode 100644 index e69de29bb..000000000 diff --git a/generate/xml-pristine/gabble-connection-manager.xml b/generate/xml-pristine/gabble-connection-manager.xml deleted file mode 100644 index 74c654590..000000000 --- a/generate/xml-pristine/gabble-connection-manager.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-pristine/gabble-connection.xml b/generate/xml-pristine/gabble-connection.xml deleted file mode 100644 index 0771cf60a..000000000 --- a/generate/xml-pristine/gabble-connection.xml +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-pristine/gabble-im-channel.xml b/generate/xml-pristine/gabble-im-channel.xml deleted file mode 100644 index 36307b54c..000000000 --- a/generate/xml-pristine/gabble-im-channel.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-pristine/gabble-media-channel.xml b/generate/xml-pristine/gabble-media-channel.xml deleted file mode 100644 index 7575ee619..000000000 --- a/generate/xml-pristine/gabble-media-channel.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-pristine/gabble-media-session.xml b/generate/xml-pristine/gabble-media-session.xml deleted file mode 100644 index db7c995e7..000000000 --- a/generate/xml-pristine/gabble-media-session.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/generate/xml-pristine/gabble-media-stream.xml b/generate/xml-pristine/gabble-media-stream.xml deleted file mode 100644 index 103c1e810..000000000 --- a/generate/xml-pristine/gabble-media-stream.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-pristine/gabble-muc-channel.xml b/generate/xml-pristine/gabble-muc-channel.xml deleted file mode 100644 index 3b59b5426..000000000 --- a/generate/xml-pristine/gabble-muc-channel.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-pristine/gabble-roomlist-channel.xml b/generate/xml-pristine/gabble-roomlist-channel.xml deleted file mode 100644 index b1d060016..000000000 --- a/generate/xml-pristine/gabble-roomlist-channel.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/generate/xml-pristine/gabble-roster-channel.xml b/generate/xml-pristine/gabble-roster-channel.xml deleted file mode 100644 index 8dbc49c34..000000000 --- a/generate/xml-pristine/gabble-roster-channel.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3