| 1 |
#ifndef TNY_MOBLIN_PLATFORM_FACTORY_H |
| 2 |
#define TNY_MOBLIN_PLATFORM_FACTORY_H |
| 3 |
|
| 4 |
/* libtinymail-moblin - The Tinymail base library for Moblin |
| 5 |
* Copyright (C) 2010 Sergio Villar Senin <svillar@igalia.com> |
| 6 |
* |
| 7 |
* This library is free software; you can redistribute it and/or |
| 8 |
* modify it under the terms of the GNU Lesser General Public |
| 9 |
* License as published by the Free Software Foundation; either |
| 10 |
* version 2 of the License, or (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 GNU |
| 15 |
* Lesser General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU Lesser General Public |
| 18 |
* License along with self library; if not, write to the |
| 19 |
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 20 |
* Boston, MA 02110-1301, USA. |
| 21 |
*/ |
| 22 |
|
| 23 |
#include <glib.h> |
| 24 |
#include <glib-object.h> |
| 25 |
#include <tny-platform-factory.h> |
| 26 |
|
| 27 |
G_BEGIN_DECLS |
| 28 |
|
| 29 |
#define TNY_TYPE_MOBLIN_PLATFORM_FACTORY (tny_moblin_platform_factory_get_type ()) |
| 30 |
#define TNY_MOBLIN_PLATFORM_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TNY_TYPE_MOBLIN_PLATFORM_FACTORY, TnyMoblinPlatformFactory)) |
| 31 |
#define TNY_MOBLIN_PLATFORM_FACTORY_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), TNY_TYPE_MOBLIN_PLATFORM_FACTORY, TnyMoblinPlatformFactoryClass)) |
| 32 |
#define TNY_IS_MOBLIN_PLATFORM_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TNY_TYPE_MOBLIN_PLATFORM_FACTORY)) |
| 33 |
#define TNY_IS_MOBLIN_PLATFORM_FACTORY_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), TNY_TYPE_MOBLIN_PLATFORM_FACTORY)) |
| 34 |
#define TNY_MOBLIN_PLATFORM_FACTORY_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), TNY_TYPE_MOBLIN_PLATFORM_FACTORY, TnyMoblinPlatformFactoryClass)) |
| 35 |
|
| 36 |
typedef struct _TnyMoblinPlatformFactory TnyMoblinPlatformFactory; |
| 37 |
typedef struct _TnyMoblinPlatformFactoryClass TnyMoblinPlatformFactoryClass; |
| 38 |
|
| 39 |
struct _TnyMoblinPlatformFactory |
| 40 |
{ |
| 41 |
GObject parent; |
| 42 |
}; |
| 43 |
|
| 44 |
struct _TnyMoblinPlatformFactoryClass |
| 45 |
{ |
| 46 |
GObjectClass parent; |
| 47 |
}; |
| 48 |
|
| 49 |
GType tny_moblin_platform_factory_get_type (void); |
| 50 |
|
| 51 |
TnyPlatformFactory* tny_moblin_platform_factory_get_instance (void); |
| 52 |
|
| 53 |
G_END_DECLS |
| 54 |
|
| 55 |
#endif |