]> git.0d.be Git - empathy.git/blob - libempathy-gtk/gossip-presence-chooser.h
[darcs-to-svn @ Adding GossipPresenceChooser]
[empathy.git] / libempathy-gtk / gossip-presence-chooser.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2005-2007 Imendio AB
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  *
20  * Authors: Richard Hult <richard@imendio.com>
21  *          Martyn Russell <martyn@imendio.com>
22  */
23
24 #ifndef __GOSSIP_PRESENCE_CHOOSER_H__
25 #define __GOSSIP_PRESENCE_CHOOSER_H__
26
27 #include <gtk/gtk.h>
28
29 #include <libempathy/gossip-presence.h>
30
31 G_BEGIN_DECLS
32
33 #define GOSSIP_TYPE_PRESENCE_CHOOSER         (gossip_presence_chooser_get_type ())
34 #define GOSSIP_PRESENCE_CHOOSER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GOSSIP_TYPE_PRESENCE_CHOOSER, GossipPresenceChooser))
35 #define GOSSIP_PRESENCE_CHOOSER_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST ((k), GOSSIP_TYPE_PRESENCE_CHOOSER, GossipPresenceChooserClass))
36 #define GOSSIP_IS_PRESENCE_CHOOSER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOSSIP_TYPE_PRESENCE_CHOOSER))
37 #define GOSSIP_IS_PRESENCE_CHOOSER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GOSSIP_TYPE_PRESENCE_CHOOSER))
38 #define GOSSIP_PRESENCE_CHOOSER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOSSIP_TYPE_PRESENCE_CHOOSER, GossipPresenceChooserClass))
39
40 typedef struct _GossipPresenceChooser      GossipPresenceChooser;
41 typedef struct _GossipPresenceChooserClass GossipPresenceChooserClass;
42
43 struct _GossipPresenceChooser {
44         GtkToggleButton parent;
45 };
46
47 struct _GossipPresenceChooserClass {
48         GtkToggleButtonClass parent_class;
49 };
50
51 GType      gossip_presence_chooser_get_type           (void) G_GNUC_CONST;
52 GtkWidget *gossip_presence_chooser_new                (void);
53 GtkWidget *gossip_presence_chooser_create_menu        (GossipPresenceChooser *chooser);
54
55 void       gossip_presence_chooser_set_state          (GossipPresenceChooser *chooser,
56                                                        GossipPresenceState    state);
57 void       gossip_presence_chooser_set_status         (GossipPresenceChooser *chooser,
58                                                        const gchar           *status);
59 void       gossip_presence_chooser_set_flash_interval (GossipPresenceChooser *chooser,
60                                                        guint                  ms);
61
62 void       gossip_presence_chooser_flash_start        (GossipPresenceChooser *chooser,
63                                                        GossipPresenceState    state_1,
64                                                        GossipPresenceState    state_2);
65 void       gossip_presence_chooser_flash_stop         (GossipPresenceChooser *chooser,
66                                                        GossipPresenceState    state);
67 gboolean   gossip_presence_chooser_is_flashing        (GossipPresenceChooser *chooser);
68
69 G_END_DECLS
70
71 #endif /* __GOSSIP_PRESENCE_CHOOSER_H__ */
72