~ubuntu-branches/ubuntu/saucy/evolution-data-server/saucy

« back to all changes in this revision

Viewing changes to libedataserver/e-source-resource.h

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-10-08 12:58:16 UTC
  • mfrom: (181.1.7 quantal)
  • Revision ID: package-import@ubuntu.com-20121008125816-i3n76e8c0m64e7xp
Tags: 3.6.0-0ubuntu2
* Fix LP: #1038047 part 1 - Don't abort in e_source_registry_new* when a
  problem occurs connecting to the Dbus service
  - add debian/patches/dont-abort-in-e_source_registry_new.patch
  - update debian/patches/series
* Fix LP: #1038047 part 2 - libedataserver depends on
  evolution-data-server-common to ensure that the GSettings schemas are
  present
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * e-source-resource.h
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Lesser General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) version 3.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public
 
15
 * License along with the program; if not, see <http://www.gnu.org/licenses/>
 
16
 *
 
17
 */
 
18
 
 
19
#if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
 
20
#error "Only <libedataserver/libedataserver.h> should be included directly."
 
21
#endif
 
22
 
 
23
#ifndef E_SOURCE_RESOURCE_H
 
24
#define E_SOURCE_RESOURCE_H
 
25
 
 
26
#include <libedataserver/e-source-extension.h>
 
27
 
 
28
/* Standard GObject macros */
 
29
#define E_TYPE_SOURCE_RESOURCE \
 
30
        (e_source_resource_get_type ())
 
31
#define E_SOURCE_RESOURCE(obj) \
 
32
        (G_TYPE_CHECK_INSTANCE_CAST \
 
33
        ((obj), E_TYPE_SOURCE_RESOURCE, ESourceResource))
 
34
#define E_SOURCE_RESOURCE_CLASS(cls) \
 
35
        (G_TYPE_CHECK_CLASS_CAST \
 
36
        ((cls), E_TYPE_SOURCE_RESOURCE, ESourceResourceClass))
 
37
#define E_IS_SOURCE_RESOURCE(obj) \
 
38
        (G_TYPE_CHECK_INSTANCE_TYPE \
 
39
        ((obj), E_TYPE_SOURCE_RESOURCE))
 
40
#define E_IS_SOURCE_RESOURCE_CLASS(cls) \
 
41
        (G_TYPE_CHECK_CLASS_TYPE \
 
42
        ((cls), E_TYPE_SOURCE_RESOURCE))
 
43
#define E_SOURCE_RESOURCE_GET_CLASS(obj) \
 
44
        (G_TYPE_INSTANCE_GET_CLASS \
 
45
        ((obj), E_TYPE_SOURCE_RESOURCE, ESourceResourceClass))
 
46
 
 
47
/**
 
48
 * E_SOURCE_EXTENSION_RESOURCE:
 
49
 *
 
50
 * Pass this extension name to e_source_get_extension() to access
 
51
 * #ESourceResource.  This is also used as a group name in key files.
 
52
 *
 
53
 * Since: 3.6
 
54
 **/
 
55
#define E_SOURCE_EXTENSION_RESOURCE "Resource"
 
56
 
 
57
G_BEGIN_DECLS
 
58
 
 
59
typedef struct _ESourceResource ESourceResource;
 
60
typedef struct _ESourceResourceClass ESourceResourceClass;
 
61
typedef struct _ESourceResourcePrivate ESourceResourcePrivate;
 
62
 
 
63
/**
 
64
 * ESourceResource:
 
65
 *
 
66
 * Contains only private data that should be read and manipulated using the
 
67
 * functions below.
 
68
 *
 
69
 * Since: 3.6
 
70
 **/
 
71
struct _ESourceResource {
 
72
        ESourceExtension parent;
 
73
        ESourceResourcePrivate *priv;
 
74
};
 
75
 
 
76
struct _ESourceResourceClass {
 
77
        ESourceExtensionClass parent_class;
 
78
};
 
79
 
 
80
GType           e_source_resource_get_type      (void) G_GNUC_CONST;
 
81
const gchar *   e_source_resource_get_identity  (ESourceResource *extension);
 
82
gchar *         e_source_resource_dup_identity  (ESourceResource *extension);
 
83
void            e_source_resource_set_identity  (ESourceResource *extension,
 
84
                                                 const gchar *identity);
 
85
 
 
86
G_END_DECLS
 
87
 
 
88
#endif /* E_SOURCE_RESOURCE_H */
 
89