4 * Copyright (C) 2011 Collabora Ltd.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation; either version 2.1 of
9 * the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * Author: Stef Walter <stefw@collabora.co.uk>
24 #ifndef __GCR_SINGLE_COLLECTION_H__
25 #define __GCR_SINGLE_COLLECTION_H__
27 #include "gcr-collection.h"
29 #include <glib-object.h>
33 #define GCR_TYPE_SINGLE_COLLECTION (_gcr_single_collection_get_type ())
34 #define GCR_SINGLE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_COLLECTION, GcrSingleCollection))
35 #define GCR_SINGLE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_COLLECTION, GcrSingleCollectionClass))
36 #define GCR_IS_SINGLE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_COLLECTION))
37 #define GCR_IS_SINGLE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_COLLECTION))
38 #define GCR_SINGLE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_COLLECTION, GcrSingleCollectionClass))
40 typedef struct _GcrSingleCollection GcrSingleCollection;
41 typedef struct _GcrSingleCollectionClass GcrSingleCollectionClass;
43 GType _gcr_single_collection_get_type (void);
45 GcrCollection * _gcr_single_collection_new (GObject *object);
47 GObject * _gcr_single_collection_get_object (GcrSingleCollection *self);
49 void _gcr_single_collection_set_object (GcrSingleCollection *self,
54 #endif /* __GCR_SINGLE_COLLECTION_H__ */