2
* Copyright 2010 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of either or both of the following licenses:
7
* 1) the GNU Lesser General Public License version 3, as published by the
8
* Free Software Foundation; and/or
9
* 2) the GNU Lesser General Public License version 2.1, as published by
10
* the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranties of
14
* MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
15
* PURPOSE. See the applicable version of the GNU Lesser General Public
16
* License for more details.
18
* You should have received a copy of both the GNU Lesser General Public
19
* License version 3 and version 2.1 along with this program. If not, see
20
* <http://www.gnu.org/licenses/>
22
* Authored by: Jason Smith <jason.smith@canonical.com>
23
* Neil Jagdish Patel <neil.patel@canonical.com>
27
#ifndef _BAMF_FACTORY_H_
28
#define _BAMF_FACTORY_H_
30
#include <glib-object.h>
31
#include <libbamf/bamf-view.h>
35
#define BAMF_TYPE_FACTORY (bamf_factory_get_type ())
37
#define BAMF_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
38
BAMF_TYPE_FACTORY, BamfFactory))
40
#define BAMF_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
41
BAMF_TYPE_FACTORY, BamfFactoryClass))
43
#define BAMF_IS_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
46
#define BAMF_IS_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
49
#define BAMF_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
50
BAMF_TYPE_FACTORY, BamfFactoryClass))
52
typedef struct _BamfFactory BamfFactory;
53
typedef struct _BamfFactoryClass BamfFactoryClass;
54
typedef struct _BamfFactoryPrivate BamfFactoryPrivate;
60
BamfFactoryPrivate *priv;
63
struct _BamfFactoryClass
65
GObjectClass parent_class;
68
GType bamf_factory_get_type (void) G_GNUC_CONST;
70
BamfView * bamf_factory_view_for_path (BamfFactory * factory,
73
BamfFactory * bamf_factory_get_default (void);