Back to index

bamf  0.2.120
Classes | Defines | Typedefs | Functions
bamf-tab-source.h File Reference
#include <glib-object.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _BamfTabSource
struct  _BamfTabSourceClass

Defines

#define BAMF_TYPE_TAB_SOURCE   (bamf_tab_source_get_type ())
#define BAMF_TAB_SOURCE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB_SOURCE, BamfTabSource))
#define BAMF_TAB_SOURCE_CONST(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB_SOURCE, BamfTabSource const))
#define BAMF_TAB_SOURCE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_TAB_SOURCE, BamfTabSourceClass))
#define BAMF_IS_TAB_SOURCE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_TAB_SOURCE))
#define BAMF_IS_TAB_SOURCE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_TAB_SOURCE))
#define BAMF_TAB_SOURCE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_TAB_SOURCE, BamfTabSourceClass))

Typedefs

typedef struct _BamfTabSource
typedef struct _BamfTabSourceClass
typedef struct _BamfTabSourcePrivate

Functions

GType bamf_tab_source_get_type (void) G_GNUC_CONST
gboolean bamf_tab_source_show_tab (BamfTabSource *source, char *tab_id, GError *error)
char ** bamf_tab_source_get_tab_ids (BamfTabSource *source)
GArray * bamf_tab_source_get_tab_preview (BamfTabSource *source, char *tab_id)
char * bamf_tab_source_get_tab_uri (BamfTabSource *source, char *tab_id)
guint32 bamf_tab_source_get_tab_xid (BamfTabSource *source, char *tab_id)

Class Documentation

struct _BamfTabSource

Definition at line 45 of file bamf-tab-source.h.

Class Members
GObject parent
BamfTabSourcePrivate * priv

Define Documentation

#define BAMF_IS_TAB_SOURCE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_TAB_SOURCE))

Definition at line 37 of file bamf-tab-source.h.

#define BAMF_IS_TAB_SOURCE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_TAB_SOURCE))

Definition at line 38 of file bamf-tab-source.h.

#define BAMF_TAB_SOURCE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB_SOURCE, BamfTabSource))

Definition at line 34 of file bamf-tab-source.h.

#define BAMF_TAB_SOURCE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_TAB_SOURCE, BamfTabSourceClass))

Definition at line 36 of file bamf-tab-source.h.

#define BAMF_TAB_SOURCE_CONST (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB_SOURCE, BamfTabSource const))

Definition at line 35 of file bamf-tab-source.h.

#define BAMF_TAB_SOURCE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_TAB_SOURCE, BamfTabSourceClass))

Definition at line 39 of file bamf-tab-source.h.

Definition at line 33 of file bamf-tab-source.h.


Typedef Documentation

typedef struct _BamfTabSource

Definition at line 41 of file bamf-tab-source.h.

typedef struct _BamfTabSourceClass

Definition at line 42 of file bamf-tab-source.h.

typedef struct _BamfTabSourcePrivate

Definition at line 43 of file bamf-tab-source.h.


Function Documentation

char** bamf_tab_source_get_tab_ids ( BamfTabSource *  source)

Definition at line 72 of file bamf-tab-source.c.

{
  g_return_val_if_fail (BAMF_IS_TAB_SOURCE (source), NULL);

  if (BAMF_TAB_SOURCE_GET_CLASS (source)->tab_ids)
    return BAMF_TAB_SOURCE_GET_CLASS (source)->tab_ids (source);

  return NULL;
}
GArray* bamf_tab_source_get_tab_preview ( BamfTabSource *  source,
char *  tab_id 
)

Definition at line 83 of file bamf-tab-source.c.

{
  g_return_val_if_fail (BAMF_IS_TAB_SOURCE (source), NULL);

  if (BAMF_TAB_SOURCE_GET_CLASS (source)->tab_preview)
    return BAMF_TAB_SOURCE_GET_CLASS (source)->tab_preview (source, tab_id);

  return NULL;
}
char* bamf_tab_source_get_tab_uri ( BamfTabSource *  source,
char *  tab_id 
)

Definition at line 95 of file bamf-tab-source.c.

{
  g_return_val_if_fail (BAMF_IS_TAB_SOURCE (source), NULL);

  if (BAMF_TAB_SOURCE_GET_CLASS (source)->tab_uri)
    return BAMF_TAB_SOURCE_GET_CLASS (source)->tab_uri (source, tab_id);

  return NULL;
}
guint32 bamf_tab_source_get_tab_xid ( BamfTabSource *  source,
char *  tab_id 
)

Definition at line 107 of file bamf-tab-source.c.

{
  g_return_val_if_fail (BAMF_IS_TAB_SOURCE (source), 0);

  if (BAMF_TAB_SOURCE_GET_CLASS (source)->tab_xid)
    return BAMF_TAB_SOURCE_GET_CLASS (source)->tab_xid (source, tab_id);

  return 0;
}
GType bamf_tab_source_get_type ( void  )
gboolean bamf_tab_source_show_tab ( BamfTabSource *  source,
char *  tab_id,
GError *  error 
)

Definition at line 59 of file bamf-tab-source.c.

{
  g_return_val_if_fail (BAMF_IS_TAB_SOURCE (source), TRUE);

  if (BAMF_TAB_SOURCE_GET_CLASS (source)->show_tab)
    BAMF_TAB_SOURCE_GET_CLASS (source)->show_tab (source, tab_id);

  return TRUE;
}

Here is the caller graph for this function: