~ubuntu-branches/ubuntu/precise/folks/precise

« back to all changes in this revision

Viewing changes to folks/web-service-details.c

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-06-10 11:28:11 UTC
  • mfrom: (1.2.11 upstream) (4.2.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20110610112811-whyeodbo9mjezxfp
Tags: 0.5.2-1ubuntu1
* Merge with Debian experimental, remaining Ubuntu changes:
  - debian/control:
    + Add Vcs-Bzr link

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* web-service-details.c generated by valac 0.12.0, the Vala compiler
 
2
 * generated from web-service-details.vala, do not modify */
 
3
 
 
4
/*
 
5
 * Copyright (C) 2011 Collabora Ltd.
 
6
 *
 
7
 * This library is free software: you can redistribute it and/or modify
 
8
 * it under the terms of the GNU Lesser General Public License as published by
 
9
 * the Free Software Foundation, either version 2.1 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU Lesser General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public License
 
18
 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
 
19
 *
 
20
 * Authors:
 
21
 *       Alban Crequy <alban.crequy@collabora.co.uk>
 
22
 */
 
23
 
 
24
#include <glib.h>
 
25
#include <glib-object.h>
 
26
#include <gee.h>
 
27
#include <stdlib.h>
 
28
#include <string.h>
 
29
 
 
30
 
 
31
#define FOLKS_TYPE_WEB_SERVICE_DETAILS (folks_web_service_details_get_type ())
 
32
#define FOLKS_WEB_SERVICE_DETAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLKS_TYPE_WEB_SERVICE_DETAILS, FolksWebServiceDetails))
 
33
#define FOLKS_IS_WEB_SERVICE_DETAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLKS_TYPE_WEB_SERVICE_DETAILS))
 
34
#define FOLKS_WEB_SERVICE_DETAILS_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FOLKS_TYPE_WEB_SERVICE_DETAILS, FolksWebServiceDetailsIface))
 
35
 
 
36
typedef struct _FolksWebServiceDetails FolksWebServiceDetails;
 
37
typedef struct _FolksWebServiceDetailsIface FolksWebServiceDetailsIface;
 
38
 
 
39
struct _FolksWebServiceDetailsIface {
 
40
        GTypeInterface parent_iface;
 
41
        GeeMultiMap* (*get_web_service_addresses) (FolksWebServiceDetails* self);
 
42
        void (*set_web_service_addresses) (FolksWebServiceDetails* self, GeeMultiMap* value);
 
43
};
 
44
 
 
45
 
 
46
 
 
47
GType folks_web_service_details_get_type (void) G_GNUC_CONST;
 
48
GeeMultiMap* folks_web_service_details_get_web_service_addresses (FolksWebServiceDetails* self);
 
49
void folks_web_service_details_set_web_service_addresses (FolksWebServiceDetails* self, GeeMultiMap* value);
 
50
 
 
51
 
 
52
GeeMultiMap* folks_web_service_details_get_web_service_addresses (FolksWebServiceDetails* self) {
 
53
        return FOLKS_WEB_SERVICE_DETAILS_GET_INTERFACE (self)->get_web_service_addresses (self);
 
54
}
 
55
 
 
56
 
 
57
void folks_web_service_details_set_web_service_addresses (FolksWebServiceDetails* self, GeeMultiMap* value) {
 
58
        FOLKS_WEB_SERVICE_DETAILS_GET_INTERFACE (self)->set_web_service_addresses (self, value);
 
59
}
 
60
 
 
61
 
 
62
static void folks_web_service_details_base_init (FolksWebServiceDetailsIface * iface) {
 
63
        static gboolean initialized = FALSE;
 
64
        if (!initialized) {
 
65
                initialized = TRUE;
 
66
                /**
 
67
                   * A mapping of web service to an (unordered) set of web service addresses.
 
68
                   *
 
69
                   * Each mapping is from an arbitrary web service identifier to a set of web
 
70
                   * service addresses for the contact, listed in no particular order.
 
71
                   *
 
72
                   * Web service addresses are guaranteed to be unique per web service, but
 
73
                   * not necessarily unique amongst all web services.
 
74
                   *
 
75
                   * @since 0.5.1
 
76
                   */
 
77
                g_object_interface_install_property (iface, g_param_spec_object ("web-service-addresses", "web-service-addresses", "web-service-addresses", GEE_TYPE_MULTI_MAP, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
 
78
        }
 
79
}
 
80
 
 
81
 
 
82
/**
 
83
 * web service addresses exposed by an object implementing
 
84
 * {@link PresenceDetails}.
 
85
 *
 
86
 * @since 0.5.0
 
87
 */
 
88
GType folks_web_service_details_get_type (void) {
 
89
        static volatile gsize folks_web_service_details_type_id__volatile = 0;
 
90
        if (g_once_init_enter (&folks_web_service_details_type_id__volatile)) {
 
91
                static const GTypeInfo g_define_type_info = { sizeof (FolksWebServiceDetailsIface), (GBaseInitFunc) folks_web_service_details_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
 
92
                GType folks_web_service_details_type_id;
 
93
                folks_web_service_details_type_id = g_type_register_static (G_TYPE_INTERFACE, "FolksWebServiceDetails", &g_define_type_info, 0);
 
94
                g_type_interface_add_prerequisite (folks_web_service_details_type_id, G_TYPE_OBJECT);
 
95
                g_once_init_leave (&folks_web_service_details_type_id__volatile, folks_web_service_details_type_id);
 
96
        }
 
97
        return folks_web_service_details_type_id__volatile;
 
98
}
 
99
 
 
100
 
 
101