1 /* 2 * slacker.h - header for McdSlacker 3 * Copyright ©2010 Collabora Ltd. 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 */ 19 20 #ifndef MCD_SLACKER_H 21 #define MCD_SLACKER_H 22 23 #include <glib-object.h> 24 25 typedef struct _McdSlacker McdSlacker; 26 typedef struct _McdSlackerClass McdSlackerClass; 27 typedef struct _McdSlackerPrivate McdSlackerPrivate; 28 29 struct _McdSlackerClass { 30 GObjectClass parent_class; 31 }; 32 33 struct _McdSlacker { 34 GObject parent; 35 36 McdSlackerPrivate *priv; 37 }; 38 39 GType mcd_slacker_get_type (void); 40 41 McdSlacker *mcd_slacker_new (void); 42 gboolean mcd_slacker_is_inactive (McdSlacker *self); 43 44 /* TYPE MACROS */ 45 #define MCD_TYPE_SLACKER \ 46 (mcd_slacker_get_type ()) 47 #define MCD_SLACKER(obj) \ 48 (G_TYPE_CHECK_INSTANCE_CAST((obj), MCD_TYPE_SLACKER, McdSlacker)) 49 #define MCD_SLACKER_CLASS(klass) \ 50 (G_TYPE_CHECK_CLASS_CAST((klass), MCD_TYPE_SLACKER,\ 51 McdSlackerClass)) 52 #define MCD_IS_SLACKER(obj) \ 53 (G_TYPE_CHECK_INSTANCE_TYPE((obj), MCD_TYPE_SLACKER)) 54 #define MCD_IS_SLACKER_CLASS(klass) \ 55 (G_TYPE_CHECK_CLASS_TYPE((klass), MCD_TYPE_SLACKER)) 56 #define MCD_SLACKER_GET_CLASS(obj) \ 57 (G_TYPE_INSTANCE_GET_CLASS ((obj), MCD_TYPE_SLACKER, \ 58 McdSlackerClass)) 59 60 #endif /* MCD_SLACKER_H */ 61