~noskcaj/ubuntu/trusty/ekiga/ftbfs

« back to all changes in this revision

Viewing changes to src/gui/callbacks.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-01-28 18:49:20 UTC
  • Revision ID: james.westby@ubuntu.com-20060128184920-v525ihmiv7id40xs
Tags: upstream-1.99.0
ImportĀ upstreamĀ versionĀ 1.99.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* GnomeMeeting -- A Video-Conferencing application
 
3
 * Copyright (C) 2000-2006 Damien Sandras
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (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
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
18
 *
 
19
 *
 
20
 * GnomeMeting is licensed under the GPL license and as a special exception,
 
21
 * you have permission to link or otherwise combine this program with the
 
22
 * programs OpenH323 and Pwlib, and distribute the combination, without
 
23
 * applying the requirements of the GNU GPL to the OpenH323 program, as long
 
24
 * as you do follow the requirements of the GNU GPL for all the rest of the
 
25
 * software thus combined.
 
26
 */
 
27
 
 
28
 
 
29
/*
 
30
 *                         callbacks.h  -  description
 
31
 *                         ---------------------------
 
32
 *   begin                : Sat Dec 23 2000
 
33
 *   copyright            : (C) 2000-2006 by Damien Sandras
 
34
 *   description          : This file contains callbacks common to several
 
35
 *                          files.
 
36
 *
 
37
 */
 
38
 
 
39
 
 
40
#ifndef _CALLBACKS_H
 
41
#define _CALLBACKS_H
 
42
 
 
43
#include "common.h"
 
44
 
 
45
 
 
46
 
 
47
/* DESCRIPTION  :  This callback is called when the user chooses to save.
 
48
 * BEHAVIOR     :  Saves the picture in the current video stream in a file.
 
49
 * PRE          :  /
 
50
 */
 
51
void save_callback (GtkWidget *,
 
52
                    gpointer);
 
53
 
 
54
 
 
55
/* DESCRIPTION  :  This callback is called when the user chooses to open
 
56
 *                 the about window.
 
57
 * BEHAVIOR     :  Open the about window.
 
58
 * PRE          :  /
 
59
 */
 
60
void about_callback (GtkWidget *,
 
61
                     gpointer);
 
62
 
 
63
 
 
64
/* DESCRIPTION  :  This callback is called when the user chooses to open
 
65
 *                 the help window.
 
66
 * BEHAVIOR     :  Open the help window.
 
67
 * PRE          :  /
 
68
 */
 
69
void help_cb (GtkWidget *,
 
70
              gpointer);
 
71
 
 
72
 
 
73
/* DESCRIPTION  :  This callback is called when the user choose to establish
 
74
 *                 a connection.
 
75
 * BEHAVIOR     :  Call the remote endpoint or accept the incoming call.
 
76
 * PRE          :  /
 
77
 */
 
78
void connect_cb (GtkWidget *,
 
79
                 gpointer);
 
80
 
 
81
 
 
82
/* DESCRIPTION  :  This callback is called when the user choose to stop
 
83
 *                 a connection.
 
84
 * BEHAVIOR     :  Do not accept the incoming call or stops the current call.
 
85
 * PRE          :  /
 
86
 */
 
87
void disconnect_cb (GtkWidget *,
 
88
                    gpointer);
 
89
 
 
90
 
 
91
/* DESCRIPTION  :  This callback is called when the user chooses to quit.
 
92
 * BEHAVIOR     :  Quit.
 
93
 * PRE          :  /
 
94
 */
 
95
void quit_callback (GtkWidget *,
 
96
                    gpointer);
 
97
 
 
98
 
 
99
/* DESCRIPTION  :  Simple wrapper that will call gnomemeeting_hide_window.
 
100
 * BEHAVIOR     :  Calls gnomemeeting_window_hide.
 
101
 * PRE          :  /
 
102
 */
 
103
gboolean delete_window_cb (GtkWidget *,
 
104
                           GdkEvent *,
 
105
                           gpointer);
 
106
 
 
107
 
 
108
/* DESCRIPTION  :  Simple wrapper that will call gnomemeeting_show_window.
 
109
 * BEHAVIOR     :  Calls gnomemeeting_window_show.
 
110
 * PRE          :  The gpointer is a valid pointer to the GtkWindow that needs
 
111
 *                 to be shown with the correct size and position.
 
112
 */
 
113
void show_window_cb (GtkWidget *,
 
114
                     gpointer);
 
115
 
 
116
 
 
117
/* DESCRIPTION  :  Quit callback.
 
118
 * BEHAVIOR     :  Disconnects, then simply call gtk_main_quit.
 
119
 * PRE          :  /
 
120
 */
 
121
void gtk_main_quit_callback (int,
 
122
                             gpointer);
 
123
 
 
124
 
 
125
/* DESCRIPTION  :  This callback is called to compare urls and see if they
 
126
 *                 match.
 
127
 * BEHAVIOR     :  It returns TRUE if the given key matches an URL OR a last
 
128
 *                 name or first name in the list store of the completion 
 
129
 *                 entry AND if the matched URL was not already returned
 
130
 *                 previously.
 
131
 *                 2 SIP/H323 URLs match if they begin by
 
132
 *                 the same chars, and 2 CALLTO URLs with a valid email
 
133
 *                 address on an ILS server match if the key matches an email
 
134
 *                 address or the begin of a server. 
 
135
 * PRE          :  data is a valid pointer to the list store.
 
136
 */
 
137
gboolean entry_completion_url_match_cb (GtkEntryCompletion *,
 
138
                                        const gchar *,
 
139
                                        GtkTreeIter *,
 
140
                                        gpointer);
 
141
 
 
142
 
 
143
/* DESCRIPTION  :  This callback is called when the user toggles a
 
144
 *                 connect button.
 
145
 * BEHAVIOR     :  Connect if there is a connect URL in the URL bar and if the
 
146
 *                 button is toggled, the button is untoggled if there is no 
 
147
 *                 url, disconnect if the button is untoggled. Do nothing
 
148
 *                 if the endpoint calling state is not Standby.
 
149
 * PRE          :  data is a valid pointer to the URL GtkEntry.
 
150
 */
 
151
void connect_button_clicked_cb (GtkToggleButton *, 
 
152
                                gpointer);
 
153
#endif