| 1 | /* |
|---|
| 2 | linphone, gtk-glade interface. |
|---|
| 3 | Copyright (C) 2008 Simon MORLAT (simon.morlat@linphone.org) |
|---|
| 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 |
|---|
| 7 | as published by the Free Software Foundation; either version 2 |
|---|
| 8 | of the 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 |
|---|
| 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 | #ifdef HAVE_CONFIG_H |
|---|
| 21 | #include "config.h" |
|---|
| 22 | #else |
|---|
| 23 | #define PACKAGE_DATA_DIR "./" |
|---|
| 24 | |
|---|
| 25 | #ifndef LINPHONE_VERSION |
|---|
| 26 | #define LINPHONE_VERSION "3.0.0-20090112" |
|---|
| 27 | #endif |
|---|
| 28 | |
|---|
| 29 | #endif |
|---|
| 30 | |
|---|
| 31 | #include <gtk/gtk.h> |
|---|
| 32 | #include "linphonecore.h" |
|---|
| 33 | |
|---|
| 34 | #include <libintl.h> |
|---|
| 35 | #ifndef _ |
|---|
| 36 | #define _(String) gettext (String) |
|---|
| 37 | #endif |
|---|
| 38 | |
|---|
| 39 | GdkPixbuf * create_pixbuf(const gchar *filename); |
|---|
| 40 | void add_pixmap_directory(const gchar *directory); |
|---|
| 41 | GtkWidget *linphone_gtk_create_window(const char *window_name); |
|---|
| 42 | GtkWidget *linphone_gtk_get_widget(GtkWidget *window, const char *name); |
|---|
| 43 | LinphoneCore *linphone_gtk_get_core(void); |
|---|
| 44 | GtkWidget *linphone_gtk_get_main_window(); |
|---|
| 45 | void linphone_gtk_display_something(GtkMessageType type,const gchar *message); |
|---|
| 46 | void linphone_gtk_start_call(GtkWidget *button); |
|---|
| 47 | void linphone_gtk_show_friends(void); |
|---|
| 48 | void linphone_gtk_show_contact(LinphoneFriend *lf); |
|---|
| 49 | void linphone_gtk_set_my_presence(LinphoneOnlineStatus ss); |
|---|
| 50 | void linphone_gtk_show_parameters(void); |
|---|
| 51 | void linphone_gtk_load_identities(void); |
|---|
| 52 | void linphone_gtk_create_chatroom(const char *with); |
|---|
| 53 | void linphone_gtk_text_received(LinphoneCore *lc, LinphoneChatRoom *room, const char *from, const char *message); |
|---|
| 54 | void linphone_gtk_call_log_update(GtkWidget *w); |
|---|
| 55 | void linphone_gtk_create_log_window(void); |
|---|
| 56 | void linphone_gtk_log_show(void); |
|---|
| 57 | void linphone_gtk_log_push(OrtpLogLevel lev, const char *fmt, va_list args); |
|---|
| 58 | void linphone_gtk_destroy_log_window(void); |
|---|
| 59 | gboolean linphone_gtk_check_logs(); |
|---|
| 60 | const gchar *linphone_gtk_get_ui_config(const char *key, const char *def); |
|---|
| 61 | int linphone_gtk_get_ui_config_int(const char *key, int def); |
|---|
| 62 | void linphone_gtk_open_browser(const char *url); |
|---|
| 63 | void linphone_gtk_check_for_new_version(void); |
|---|
| 64 | const char *linphone_gtk_get_lang(const char *config_file); |
|---|
| 65 | |
|---|