~stolowski/bamf-qt/fix-bamfview-removal

« back to all changes in this revision

Viewing changes to lib/libbamf/bamf-factory.h

  • Committer: Olivier Tilloy
  • Date: 2010-12-24 14:01:46 UTC
  • mfrom: (359.1.4 bamf-qt-out)
  • Revision ID: olivier.tilloy@canonical.com-20101224140146-bxaoikzzjvks7d8e
Standalone source tree and packaging for libqtbamf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright 2010 Canonical Ltd.
3
 
 *
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:
6
 
 *
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.
11
 
 *
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.
17
 
 *
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/>
21
 
 *
22
 
 * Authored by: Jason Smith <jason.smith@canonical.com>
23
 
 *              Neil Jagdish Patel <neil.patel@canonical.com>
24
 
 *
25
 
 */
26
 
 
27
 
#ifndef _BAMF_FACTORY_H_
28
 
#define _BAMF_FACTORY_H_
29
 
 
30
 
#include <glib-object.h>
31
 
#include <libbamf/bamf-view.h>
32
 
 
33
 
G_BEGIN_DECLS
34
 
 
35
 
#define BAMF_TYPE_FACTORY (bamf_factory_get_type ())
36
 
 
37
 
#define BAMF_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
38
 
        BAMF_TYPE_FACTORY, BamfFactory))
39
 
 
40
 
#define BAMF_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
41
 
        BAMF_TYPE_FACTORY, BamfFactoryClass))
42
 
 
43
 
#define BAMF_IS_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
44
 
        BAMF_TYPE_FACTORY))
45
 
 
46
 
#define BAMF_IS_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
47
 
        BAMF_TYPE_FACTORY))
48
 
 
49
 
#define BAMF_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
50
 
        BAMF_TYPE_FACTORY, BamfFactoryClass))
51
 
 
52
 
typedef struct _BamfFactory        BamfFactory;
53
 
typedef struct _BamfFactoryClass   BamfFactoryClass;
54
 
typedef struct _BamfFactoryPrivate BamfFactoryPrivate;
55
 
 
56
 
struct _BamfFactory
57
 
{
58
 
  GObject parent;
59
 
 
60
 
  BamfFactoryPrivate *priv;
61
 
};
62
 
 
63
 
struct _BamfFactoryClass
64
 
{
65
 
  GObjectClass parent_class;
66
 
};
67
 
 
68
 
GType             bamf_factory_get_type             (void) G_GNUC_CONST;
69
 
 
70
 
BamfView        * bamf_factory_view_for_path        (BamfFactory * factory,
71
 
                                                     const char * path);
72
 
 
73
 
BamfFactory     * bamf_factory_get_default          (void);
74
 
 
75
 
G_END_DECLS
76
 
 
77
 
#endif