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_NAMED_OBJECT_H
#define GF_NAMED_OBJECT_H
#include <gflib/gf_object.h>
#define GF_TYPE_NAMED_OBJECT (gf_named_object_get_type())
#define GF_NAMED_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GF_TYPE_NAMED_OBJECT, GfNamedObject))
#define GF_NAMED_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GF_TYPE_NAMED_OBJECT, GfNamedObjectClass))
#define GF_IS_NAMED_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GF_TYPE_NAMED_OBJECT))
#define GF_IS_NAMED_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GF_TYPE_NAMED_OBJECT))
#define GF_NAMED_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GF_TYPE_NAMED_OBJECT, GfNamedObjectClass))
/**
* gf_named_object_get_name:
* @obj: The #GfNamedObject.
*
* A helper wrapper around #gf_named_object_class_get_name to avoid an extra
* cast.
*
* Return Value: The name of @obj.
*/
#define gf_named_object_get_name(obj) \
gf_named_object_class_get_name(GF_NAMED_OBJECT_GET_CLASS((obj)))
typedef struct _GfNamedObject GfNamedObject;
typedef struct _GfNamedObjectClass GfNamedObjectClass;
/**
* GfNamedObject:
*
* The base class for all objects that need to named at a class level.
*/
struct _GfNamedObject {
/*< private >*/
GfObject parent;
};
struct _GfNamedObjectClass {
GfObjectClass parent;
const gchar *name;
void (*gf_reserved1)(void);
void (*gf_reserved2)(void);
void (*gf_reserved3)(void);
void (*gf_reserved4)(void);
};
G_BEGIN_DECLS
GType gf_named_object_get_type(void);
const gchar *gf_named_object_class_get_name(GfNamedObjectClass *klass);
G_END_DECLS
#endif /* GF_NAMED_OBJECT_H */