grim/guifications3

moved guifications-gtk to cmake
cmake
2010-12-13, Gary Kramlich
36e02fafe588
moved guifications-gtk to cmake
/*
* Guifications - The end-all, be-all notification framework
* Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GF_EVENT_H
#define GF_EVENT_H
#define GF_TYPE_EVENT (gf_event_get_type())
#define GF_EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GF_TYPE_EVENT, GfEvent))
#define GF_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GF_TYPE_EVENT, GfEventClass))
#define GF_IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GF_TYPE_EVENT))
#define GF_IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GF_TYPE_EVENT))
#define GF_EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GF_TYPE_EVENT, GfEventClass))
typedef struct _GfEvent GfEvent;
typedef struct _GfEventClass GfEventClass;
#include <gflib/gf_object.h>
/**
* GfEvent:
*
* An object for implementing events.
*/
struct _GfEvent {
/*< private >*/
GfObject parent;
};
struct _GfEventClass {
GfObjectClass parent;
gchar *(*get_name)(const GfEvent *event);
gchar *(*get_i18n)(const GfEvent *event);
gchar *(*get_description)(const GfEvent *event);
void (*_gf_reserved1)(void);
void (*_gf_reserved2)(void);
void (*_gf_reserved3)(void);
void (*_gf_reserved4)(void);
};
G_BEGIN_DECLS
GType gf_event_get_type(void);
GfEvent *gf_event_new(const gchar *name, const gchar *i18n, const gchar *description);
gchar *gf_event_get_name(const GfEvent *event);
gchar *gf_event_get_i18n(const GfEvent *event);
gchar *gf_event_get_description(const GfEvent *event);
void gf_event_freev(GfEvent **events);
G_END_DECLS
#endif /* GF_EVENT_H */