~ubuntu-branches/ubuntu/lucid/indicator-me/lucid

« back to all changes in this revision

Viewing changes to src/me-service-gwibber.h

  • Committer: Sebastien Bacher
  • Date: 2010-03-24 12:59:43 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: seb128@ubuntu.com-20100324125943-e54i1nihe8h3wb2i
Tags: 0.2.6-0ubuntu1
releasing version 0.2.6-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
with this program.  If not, see <http://www.gnu.org/licenses/>.
21
21
*/
22
22
 
23
 
#ifndef __ME_SERVICE_GWIBBER_H__
24
 
#define __ME_SERVICE_GWIBBER_H__
 
23
#ifndef __GWIBBER_SERVICE_H__
 
24
#define __GWIBBER_SERVICE_H__
25
25
 
26
26
#include <glib.h>
 
27
#include <glib-object.h>
27
28
 
28
29
G_BEGIN_DECLS
29
30
 
 
31
#define GWIBBER_SERVICE_TYPE            (gwibber_service_get_type ())
 
32
#define GWIBBER_SERVICE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GWIBBER_SERVICE_TYPE, GwibberService))
 
33
#define GWIBBER_SERVICE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GWIBBER_SERVICE_TYPE, GwibberServiceClass))
 
34
#define IS_GWIBBER_SERVICE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GWIBBER_SERVICE_TYPE))
 
35
#define IS_GWIBBER_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GWIBBER_SERVICE_TYPE))
 
36
#define GWIBBER_SERVICE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GWIBBER_SERVICE_TYPE, GwibberServiceClass))
 
37
 
 
38
typedef enum
 
39
{
 
40
        GWIBBER_SERVICE_STATUS_NOT_RUNNING,
 
41
        /* GWIBBER_SERVICE_STATUS_LOADING_STARTED,
 
42
        GWIBBER_SERVICE_STATUS_LOADING_COMPLETE, */
 
43
        GWIBBER_SERVICE_STATUS_RUNNING,
 
44
        GWIBBER_SERVICE_STATUS_LAST
 
45
}
 
46
GwibberServiceStatus;
 
47
 
 
48
#define GWIBBER_SERVICE_SIGNAL_STATUS_CHANGED     "status-changed"
 
49
#define GWIBBER_SERVICE_SIGNAL_STATUS_CHANGED_ID  (g_signal_lookup(GWIBBER_SERVICE_SIGNAL_STATUS_CHANGED, GWIBBER_SERVICE_TYPE))
 
50
 
 
51
typedef struct _GwibberServiceClass GwibberServiceClass;
 
52
struct _GwibberServiceClass {
 
53
        GObjectClass parent_class;
 
54
 
 
55
        /* Signals */
 
56
        void (*status_changed) (GwibberServiceStatus newstatus);
 
57
};
 
58
 
 
59
typedef struct _GwibberService      GwibberService;
 
60
struct _GwibberService {
 
61
        GObject parent;
 
62
};
 
63
 
 
64
GType gwibber_service_get_type (void) G_GNUC_CONST;
 
65
GwibberService * gwibber_service_new (void);
 
66
GwibberService * gwibber_service_get (void);
 
67
void gwibber_service_send (GwibberService *self, const gchar *msg);
 
68
gboolean gwibber_service_has_configured_accounts (GwibberService *self);
 
69
 
 
70
/* old API */
30
71
void gwibber_send (const gchar *msg);
31
72
 
32
73
G_END_DECLS
33
74
 
34
 
#endif /* __ME_SERVICE_GWIBBER_H__ */
 
75
#endif /* __GWIBBER_SERVICE_H__ */
35
76