~ubuntu-branches/ubuntu/quantal/linphone/quantal

« back to all changes in this revision

Viewing changes to gnome/presence.h

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2004-06-30 13:58:16 UTC
  • Revision ID: james.westby@ubuntu.com-20040630135816-wwx75gdlodkqbabb
Tags: upstream-0.12.2
ImportĀ upstreamĀ versionĀ 0.12.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          presence.h  -  code for the presence box
 
3
                             -------------------
 
4
    begin                : Mon Dec 17 2001
 
5
    copyright            : (C) 2001 by Simon Morlat
 
6
    email                : simon.morlat@linphone.org
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef PRESENCE_H
 
19
#define PRESENCE_H
 
20
 
 
21
enum {  PRESENCE_MODE_REACHABLE=200,
 
22
                                PRESENCE_MODE_BUSY=486,
 
23
                                PRESENCE_MODE_AWAY=480,
 
24
                                PRESENCE_MODE_NOT_DISTURB=600,
 
25
                                PRESENCE_MODE_MOVED=302,
 
26
                                PRESENCE_MODE_ALT_SERVICE=380
 
27
                                };
 
28
                                
 
29
 
 
30
typedef struct _PresenceBox
 
31
{
 
32
        LinphoneCore *lc;
 
33
        GtkWidget *minutesaway;
 
34
        GtkWidget *contact_field;
 
35
        gint toggled_button; /* indicate which button is toggled*/
 
36
} PresenceBox;
 
37
 
 
38
 
 
39
void presence_box_init(PresenceBox *p, GtkWidget *main_window,LinphoneCore *lc);
 
40
void presence_box_changed(PresenceBox *p);
 
41
void presence_box_apply(PresenceBox *p);
 
42
 
 
43
#endif