00001 /* Give - Statusbar plugin for easy drag & drop data sending via Bluetooth. 00002 * Copyright (C) 2008 Dénes Mátételki 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to the Free 00016 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef GIVE_EBOOK_H 00020 #define GIVE_EBOOK_H 00021 00022 #include <glib-object.h> 00023 00024 G_BEGIN_DECLS 00025 00026 typedef struct _give_ebook give_ebook; 00027 typedef struct _give_ebookClass give_ebookClass; 00028 00029 #define GIVE_EBOOK_TYPE (give_ebook_get_type ()) 00030 #define GIVE_EBOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ 00031 GIVE_EBOOK_TYPE, give_ebook)) 00032 #define GIVE_EBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \ 00033 GIVE_EBOOK_TYPE, give_ebookClass)) 00034 #define GIVE_EBOOK_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ 00035 GIVE_EBOOK_TYPE)) 00036 #define GIVE_EBOOK_IS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ 00037 GIVE_EBOOK_TYPE)) 00038 00039 struct _give_ebook { 00040 GObject parent_object; 00041 }; 00042 00043 struct _give_ebookClass { 00044 GObjectClass parent_class; 00045 }; 00046 00047 00048 GType give_ebook_get_type (void) G_GNUC_CONST; 00049 00050 give_ebook* give_ebook_new(void); 00051 gchar *give_ebook_get_contact_name(give_ebook *self, const gchar *id); 00052 gchar *give_ebook_get_contact_vcard(give_ebook *self, const gchar *id); 00053 00054 G_END_DECLS 00055 00056 #endif
1.5.3