Back to index

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

Go to the source code of this file.

Classes

struct  _BamfIndicator
struct  _BamfIndicatorClass

Defines

#define BAMF_TYPE_INDICATOR   (bamf_indicator_get_type ())
#define BAMF_INDICATOR(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_INDICATOR, BamfIndicator))
#define BAMF_INDICATOR_CONST(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_INDICATOR, BamfIndicator const))
#define BAMF_INDICATOR_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_INDICATOR, BamfIndicatorClass))
#define BAMF_IS_INDICATOR(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_INDICATOR))
#define BAMF_IS_INDICATOR_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_INDICATOR))
#define BAMF_INDICATOR_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_INDICATOR, BamfIndicatorClass))

Typedefs

typedef struct _BamfIndicator
typedef struct _BamfIndicatorClass
typedef struct _BamfIndicatorPrivate

Functions

GType bamf_indicator_get_type (void) G_GNUC_CONST
const char * bamf_indicator_get_id (BamfIndicator *self)
const char * bamf_indicator_get_path (BamfIndicator *self)
const char * bamf_indicator_get_address (BamfIndicator *self)
guint32 bamf_indicator_get_pid (BamfIndicator *self)
gboolean bamf_indicator_matches_signature (BamfIndicator *self, gint pid, const char *address, const char *path)
BamfIndicator * bamf_indicator_new (const char *id, const char *proxy, const char *address, guint32 pid)

Class Documentation

struct _BamfIndicator

Definition at line 57 of file bamf-indicator.h.

Class Members
BamfView parent
BamfIndicatorPrivate * priv

Define Documentation

#define BAMF_INDICATOR (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_INDICATOR, BamfIndicator))

Definition at line 30 of file bamf-indicator.h.

#define BAMF_INDICATOR_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_INDICATOR, BamfIndicatorClass))

Definition at line 32 of file bamf-indicator.h.

#define BAMF_INDICATOR_CONST (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_INDICATOR, BamfIndicator const))

Definition at line 31 of file bamf-indicator.h.

#define BAMF_INDICATOR_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_INDICATOR, BamfIndicatorClass))

Definition at line 35 of file bamf-indicator.h.

#define BAMF_IS_INDICATOR (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_INDICATOR))

Definition at line 33 of file bamf-indicator.h.

#define BAMF_IS_INDICATOR_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_INDICATOR))

Definition at line 34 of file bamf-indicator.h.

Definition at line 29 of file bamf-indicator.h.


Typedef Documentation

typedef struct _BamfIndicator

Definition at line 37 of file bamf-indicator.h.

typedef struct _BamfIndicatorClass

Definition at line 38 of file bamf-indicator.h.

typedef struct _BamfIndicatorPrivate

Definition at line 39 of file bamf-indicator.h.


Function Documentation

const char* bamf_indicator_get_address ( BamfIndicator *  self)

Definition at line 57 of file bamf-indicator.c.

{
  g_return_val_if_fail (BAMF_IS_INDICATOR (self), NULL);
  return self->priv->address;
}

Here is the caller graph for this function:

const char* bamf_indicator_get_id ( BamfIndicator *  self)

Definition at line 64 of file bamf-indicator.c.

{
  g_return_val_if_fail (BAMF_IS_INDICATOR (self), NULL);
  return self->priv->id;
}
const char* bamf_indicator_get_path ( BamfIndicator *  self)

Definition at line 50 of file bamf-indicator.c.

{
  g_return_val_if_fail (BAMF_IS_INDICATOR (self), NULL);
  return self->priv->path;
}

Here is the caller graph for this function:

guint32 bamf_indicator_get_pid ( BamfIndicator *  self)

Definition at line 71 of file bamf-indicator.c.

{
  g_return_val_if_fail (BAMF_IS_INDICATOR (self), 0);
  return self->priv->pid;
}

Here is the caller graph for this function:

GType bamf_indicator_get_type ( void  )
gboolean bamf_indicator_matches_signature ( BamfIndicator *  self,
gint  pid,
const char *  address,
const char *  path 
)

Definition at line 78 of file bamf-indicator.c.

{
  g_return_val_if_fail (BAMF_IS_INDICATOR (self), FALSE);

  return g_strcmp0 (self->priv->address, address) == 0 &&
         g_strcmp0 (self->priv->path, path) == 0 &&
         pid == self->priv->pid;         
}

Here is the caller graph for this function:

BamfIndicator* bamf_indicator_new ( const char *  id,
const char *  proxy,
const char *  address,
guint32  pid 
)

Definition at line 350 of file bamf-indicator.c.

{
  BamfIndicator *self;
  self = g_object_new (BAMF_TYPE_INDICATOR, 
                       "address", address,
                       "path", path,
                       "pid", pid,
                       "id", id,
                       NULL);
                       
  return self;
}