Back to index

bamf  0.2.120
bamf-indicator.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 __BAMF_INDICATOR_H__
00022 #define __BAMF_INDICATOR_H__
00023 
00024 #include <glib-object.h>
00025 #include "bamf-view.h"
00026 
00027 G_BEGIN_DECLS
00028 
00029 #define BAMF_TYPE_INDICATOR        (bamf_indicator_get_type ())
00030 #define BAMF_INDICATOR(obj)        (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_INDICATOR, BamfIndicator))
00031 #define BAMF_INDICATOR_CONST(obj)  (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_INDICATOR, BamfIndicator const))
00032 #define BAMF_INDICATOR_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_INDICATOR, BamfIndicatorClass))
00033 #define BAMF_IS_INDICATOR(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_INDICATOR))
00034 #define BAMF_IS_INDICATOR_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_INDICATOR))
00035 #define BAMF_INDICATOR_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_INDICATOR, BamfIndicatorClass))
00036 
00037 typedef struct _BamfIndicator             BamfIndicator;
00038 typedef struct _BamfIndicatorClass BamfIndicatorClass;
00039 typedef struct _BamfIndicatorPrivate      BamfIndicatorPrivate;
00040 
00041 struct _BamfIndicator {
00042   BamfView parent;
00043 
00044   BamfIndicatorPrivate *priv;
00045 };
00046 
00047 struct _BamfIndicatorClass {
00048   BamfViewClass parent_class;
00049 };
00050 
00051 GType bamf_indicator_get_type (void) G_GNUC_CONST;
00052 
00053 const char    * bamf_indicator_get_id            (BamfIndicator *self);
00054 
00055 const char    * bamf_indicator_get_path          (BamfIndicator *self);
00056 
00057 const char    * bamf_indicator_get_address       (BamfIndicator *self);
00058 
00059 guint32         bamf_indicator_get_pid           (BamfIndicator *self);
00060 
00061 gboolean        bamf_indicator_matches_signature (BamfIndicator *self, 
00062                                                   gint pid, 
00063                                                   const char *address, 
00064                                                   const char *path);
00065 
00066 BamfIndicator * bamf_indicator_new               (const char *id,
00067                                                   const char *proxy, 
00068                                                   const char *address, 
00069                                                   guint32 pid);
00070 
00071 G_END_DECLS
00072 
00073 #endif /* __BAMF_INDICATOR_H__ */