~bcurtiswx/ubuntu/precise/empathy/3.4.2.1-0ubuntu1

« back to all changes in this revision

Viewing changes to libempathy-gtk/gossip-presence-chooser.h

  • Committer: Bazaar Package Importer
  • Author(s): Sjoerd Simons
  • Date: 2007-05-20 15:31:42 UTC
  • Revision ID: james.westby@ubuntu.com-20070520153142-r3auwguxdgxhktqb
Tags: upstream-0.4
ImportĀ upstreamĀ versionĀ 0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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        (void);
 
54
void       gossip_presence_chooser_flash_start        (GossipPresenceChooser *chooser,
 
55
                                                       McPresence             state_1,
 
56
                                                       McPresence             state_2);
 
57
void       gossip_presence_chooser_flash_stop         (GossipPresenceChooser *chooser,
 
58
                                                       McPresence             state);
 
59
gboolean   gossip_presence_chooser_is_flashing        (GossipPresenceChooser *chooser);
 
60
 
 
61
G_END_DECLS
 
62
 
 
63
#endif /* __GOSSIP_PRESENCE_CHOOSER_H__ */
 
64