Back to index

bamf  0.2.120
bamf-tab.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010-2011 Canonical Ltd
00003  *
00004  * This program is free software: you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 3 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00015  *
00016  * Authored by: Jason Smith <jason.smith@canonical.com>
00017  *              Marco Trevisan (TreviƱo) <3v1n0@ubuntu.com>
00018  *
00019  */
00020 
00021 #ifndef __BAMFTAB_H__
00022 #define __BAMFTAB_H__
00023 
00024 #include "bamf.h"
00025 #include "bamf-view.h"
00026 #include "bamf-tab-source.h"
00027 #include <glib.h>
00028 #include <glib-object.h>
00029 
00030 #define BAMF_TYPE_TAB                     (bamf_tab_get_type ())
00031 #define BAMF_TAB(obj)                     (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB, BamfTab))
00032 #define BAMF_IS_TAB(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_TAB))
00033 #define BAMF_TAB_CLASS(klass)             (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_TAB, BamfTabClass))
00034 #define BAMF_IS_TAB_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_TAB))
00035 #define BAMF_TAB_GET_CLASS(obj)           (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_TAB, BamfTabClass))
00036 
00037 typedef struct _BamfTab BamfTab;
00038 typedef struct _BamfTabClass BamfTabClass;
00039 typedef struct _BamfTabPrivate BamfTabPrivate;
00040 
00041 struct _BamfTabClass
00042 {
00043   BamfViewClass parent;
00044 };
00045 
00046 struct _BamfTab
00047 {
00048   BamfView parent;
00049 
00050   /* private */
00051   BamfTabPrivate *priv;
00052 };
00053 
00054 GType       bamf_tab_get_type    (void) G_GNUC_CONST;
00055 
00056 char      * bamf_tab_current_uri (BamfTab *self);
00057 
00058 void        bamf_tab_show        (BamfTab *self);
00059 
00060 guint32     bamf_tab_parent_xid  (BamfTab *tab);
00061 
00062 gchar     * bamf_tab_get_preview (BamfTab *tab);
00063 
00064 BamfTab   * bamf_tab_new         (BamfTabSource *source, const char *tab_id);
00065 
00066 #endif