/* * cli-nmc4.c - the Nokia Mission Control 4.x D-Bus interface (client side) * * Copyright (C) 2008 Collabora Ltd. * Copyright (C) 2008 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 "libmissioncontrol/cli-nmc4.h" #include #include "libmissioncontrol/mission-control.h" #include "libmissioncontrol/_gen/cli-nmc4-body.h" /** * SECTION:cli-nmc4 * @title: McCliNMC4 * @short_description: proxy object for the Nokia Mission Control 4.x D-Bus API * * This module provides a client-side proxy object for the NMC 4.x D-Bus API, * for use until the modular D-Bus API becomes available. * * Since: FIXME */ /** * McCliNMC4Class: * * The class of a #McCliNMC4. * * Since: FIXME */ struct _McCliNMC4Class { TpProxyClass parent_class; /**/ gpointer priv; }; /** * McCliNMC4: * * A proxy object for the Nokia Mission Control 4.x D-Bus API. This is a * subclass of #TpProxy. * * Since: FIXME */ struct _McCliNMC4 { TpProxy parent; /**/ gpointer priv; }; G_DEFINE_TYPE (McCliNMC4, mc_cli_nmc4, TP_TYPE_PROXY); static void mc_cli_nmc4_init (McCliNMC4 *self) { } static void mc_cli_nmc4_class_init (McCliNMC4Class *klass) { GType type = MC_TYPE_CLI_NMC4; TpProxyClass *proxy_class = (TpProxyClass *) klass; /* the API is stateless, so we can keep the same proxy across restarts */ proxy_class->must_have_unique_name = FALSE; proxy_class->interface = MC_IFACE_QUARK_NMC4; tp_proxy_or_subclass_hook_on_interface_add (type, mc_cli_nmc4_add_signals); tp_proxy_subclass_add_error_mapping (type, TP_ERROR_PREFIX, TP_ERRORS, TP_TYPE_ERROR); } /** * mc_cli_nmc4_new: * @dbus: a D-Bus daemon; may not be %NULL * * * * Returns: a new NMC 4.x proxy * * Since: FIXME */ McCliNMC4 * mc_cli_nmc4_new (TpDBusDaemon *dbus) { return MC_CLI_NMC4 (g_object_new (MC_TYPE_CLI_NMC4, "dbus-daemon", dbus, "bus-name", MISSION_CONTROL_SERVICE, "object-path", MISSION_CONTROL_PATH, NULL)); }