configwindow.h 3.26 KB
Newer Older
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
1 2
/*
 *  Copyright (C) 2007 Savoir-Faire Linux inc.
3
 *  Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
4 5 6
 *                                                                              
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
7
 *  the Free Software Foundation; either version 3 of the License, or
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
8 9 10 11 12 13 14 15 16 17 18
 *  (at your option) any later version.
 *                                                                                
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *                                                                              
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
19

Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
20 21 22 23 24
#ifndef __CONFIGWINDOW_H__
#define __CONFIGWINDOW_H__

#include <calllist.h>

25 26 27 28
/**
 * @file configwindow.h
 * @brief The Preferences window.
 */
29 30 31 32

/**
 * Fill the account list widget with the data the server send
 */
33
void config_window_fill_account_list();
34 35 36 37

/**
 * Fill the codec list widget with the data the server send
 */
38
void config_window_fill_codec_list();
39 40 41 42 43

/**
 * Fill the input audio plugin list widget with the data the server send
 * Currently not used
 */
44
void config_window_fill_input_audio_plugin_list();
45 46 47 48

/**
 * Fill the output audio plugin list widget with the data the server send
 */
49
void config_window_fill_output_audio_plugin_list();
50 51 52 53

/**
 * Fill the output audio device list widget with the data the server send
 */
54
void config_window_fill_output_audio_device_list();
55 56 57 58

/**
 * Select an output audio device
 */
59
void select_active_output_audio_device();
60 61 62 63

/**
 * Fill the input audio device list widget with the data the server send
 */
64
void config_window_fill_input_audio_device_list();
65 66 67 68

/**
 * Select an input audio device
 */
69
void select_active_input_audio_device();
70 71 72 73

/**
 * Select an output audio plugin
 */
74
void select_active_output_audio_plugin();
75 76 77 78 79 80 81

/**
 * Update the combo box state.
 * If the default plugin has been selected, the audio devices have to been unsensitive
 * because the default plugin always use default audio device
 * @param plugin The description of the selected plugin
 */
82
void update_combo_box( gchar* plugin );
83 84 85 86 87

/**
 * Build the widget to display codec list
 * @return GtkWidget* The widget created
 */
88
GtkWidget * create_codec_table();
89 90 91 92 93

/**
 * Create the main account window in a new window
 * @return GtkWidget* The widget created
 */
94
GtkWidget * create_accounts_tab();
95 96 97 98 99

/**
 * Create the audio configuration tab and add it to the main configuration window
 * @return GtkWidget* The widget created
 */
100
GtkWidget * create_audio_tab();
101

102 103 104 105 106
/**
 * Create the recording configuration tab and add it to the main configuration window
 */
GtkWidget * create_recording_settings();

107 108 109
/**
 * Display the main configuration window
 */
110
void show_config_window();
111 112 113 114

/**
 * Display the main account window
 */
115
void show_accounts_window();
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
116

117 118
void config_window_set_stun_visible();

119 120
void save_configuration_parameters (void);

Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
121
#endif