Back to index

bamf  0.2.120
bamf-tab.h
Go to the documentation of this file.
00001 /*
00002  * bamf-tab.h
00003  * This file is part of BAMF
00004  *
00005  * Copyright (C) 2010 - Jason Smith
00006  *
00007  * BAMF is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * BAMF is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with BAMF; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, 
00020  * Boston, MA  02110-1301  USA
00021  */
00022 
00023 
00024 
00025 #ifndef __BAMF_TAB_H__
00026 #define __BAMF_TAB_H__
00027 
00028 #include <libbamf/bamf-view.h>
00029 #include <glib-object.h>
00030 
00031 G_BEGIN_DECLS
00032 
00033 #define BAMF_TYPE_TAB                     (bamf_tab_get_type ())
00034 #define BAMF_TAB(obj)                     (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB, BamfTab))
00035 #define BAMF_TAB_CONST(obj)        (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB, BamfTab const))
00036 #define BAMF_TAB_CLASS(klass)             (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_TAB, BamfTabClass))
00037 #define BAMF_IS_TAB(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_TAB))
00038 #define BAMF_IS_TAB_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_TAB))
00039 #define BAMF_TAB_GET_CLASS(obj)           (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_TAB, BamfTabClass))
00040 
00041 typedef struct _BamfTab            BamfTab;
00042 typedef struct _BamfTabClass       BamfTabClass;
00043 typedef struct _BamfTabPrivate     BamfTabPrivate;
00044 
00045 struct _BamfTab {
00046   BamfView parent;
00047        
00048   BamfTabPrivate *priv;
00049 };
00050 
00051 struct _BamfTabClass {
00052   BamfViewClass parent_class;
00053 
00054   void (*show) (BamfTab *self);
00055 
00056   /*< signals >*/
00057   void  (*uri_changed)      (char *old_uri, char *new_uri);
00058   void  (*preview_updated)  (void);
00059   
00060   void (*_tab_padding1) (void);
00061   void (*_tab_padding2) (void);
00062   void (*_tab_padding3) (void);
00063   void (*_tab_padding4) (void);
00064   void (*_tab_padding5) (void);
00065   void (*_tab_padding6) (void);
00066 };
00067 
00068 GType bamf_tab_get_type (void) G_GNUC_CONST;
00069 
00070 gchar   * bamf_tab_get_id      (BamfTab *self);
00071 
00072 gchar   * bamf_tab_get_preview (BamfTab *self);
00073 
00074 void      bamf_tab_set_preview (BamfTab *self,
00075                                 gchar *uri);
00076 
00077 gchar   * bamf_tab_get_uri     (BamfTab *self);
00078 
00079 void      bamf_tab_set_uri     (BamfTab *self,
00080                                 gchar *uri);
00081                                 
00082 void      bamf_tab_show        (BamfTab *self);
00083 
00084 BamfTab * bamf_tab_new         (gchar *id, gchar *uri);
00085 
00086 
00087 G_END_DECLS
00088 
00089 #endif /* __BAMF_TAB_H__ */