|
| 1 | +/* |
| 2 | + * eom-application-activatable.h |
| 3 | + * This file is part of eom |
| 4 | + * |
| 5 | + * Author: Felix Riemann <friemann@gnome.org> |
| 6 | + * |
| 7 | + * Copyright (C) 2012 Felix Riemann |
| 8 | + * |
| 9 | + * Base on code by: |
| 10 | + * - Steve Frécinaux <code@istique.net> |
| 11 | + * |
| 12 | + * This program is free software; you can redistribute it and/or |
| 13 | + * modify it under the terms of the GNU General Public License |
| 14 | + * as published by the Free Software Foundation; either version 2 |
| 15 | + * of the License, or (at your option) any later version. |
| 16 | + * |
| 17 | + * This program is distributed in the hope that it will be useful, |
| 18 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | + * GNU General Public License for more details. |
| 21 | + * |
| 22 | + * You should have received a copy of the GNU General Public License along |
| 23 | + * with this program; if not, write to the Free Software Foundation, Inc., |
| 24 | + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 25 | + */ |
| 26 | + |
| 27 | +#ifndef __EOM_APPLICATION_ACTIVATABLE_H__ |
| 28 | +#define __EOM_APPLICATION_ACTIVATABLE_H__ |
| 29 | + |
| 30 | +#include <glib-object.h> |
| 31 | + |
| 32 | +G_BEGIN_DECLS |
| 33 | + |
| 34 | +#define EOM_TYPE_APPLICATION_ACTIVATABLE (eom_application_activatable_get_type ()) |
| 35 | +#define EOM_APPLICATION_ACTIVATABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ |
| 36 | + EOM_TYPE_APPLICATION_ACTIVATABLE, \ |
| 37 | + EomApplicationActivatable)) |
| 38 | +#define EOM_APPLICATION_ACTIVATABLE_IFACE(obj) \ |
| 39 | + (G_TYPE_CHECK_CLASS_CAST ((obj), \ |
| 40 | + EOM_TYPE_APPLICATION_ACTIVATABLE, \ |
| 41 | + EomApplicationActivatableInterface)) |
| 42 | +#define EOM_IS_APPLICATION_ACTIVATABLE(obj) \ |
| 43 | + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ |
| 44 | + EOM_TYPE_APPLICATION_ACTIVATABLE)) |
| 45 | +#define EOM_APPLICATION_ACTIVATABLE_GET_IFACE(obj) \ |
| 46 | + (G_TYPE_INSTANCE_GET_INTERFACE ((obj), \ |
| 47 | + EOM_TYPE_APPLICATION_ACTIVATABLE, \ |
| 48 | + EomApplicationActivatableInterface)) |
| 49 | + |
| 50 | +typedef struct _EomApplicationActivatable EomApplicationActivatable; |
| 51 | +typedef struct _EomApplicationActivatableInterface EomApplicationActivatableInterface; |
| 52 | + |
| 53 | +struct _EomApplicationActivatableInterface |
| 54 | +{ |
| 55 | + GTypeInterface g_iface; |
| 56 | + |
| 57 | + /* vfuncs */ |
| 58 | + |
| 59 | + void (*activate) (EomApplicationActivatable *activatable); |
| 60 | + void (*deactivate) (EomApplicationActivatable *activatable); |
| 61 | +}; |
| 62 | + |
| 63 | +GType eom_application_activatable_get_type (void) G_GNUC_CONST; |
| 64 | + |
| 65 | +void eom_application_activatable_activate (EomApplicationActivatable *activatable); |
| 66 | +void eom_application_activatable_deactivate (EomApplicationActivatable *activatable); |
| 67 | + |
| 68 | +G_END_DECLS |
| 69 | +#endif /* __EOM_APPLICATION_ACTIVATABLE_H__ */ |
| 70 | + |
0 commit comments