Imported Upstream version 1.0beta1
[platform/upstream/syncevolution.git] / src / gtk-ui / sync-ui.h
1 /*
2  * Copyright (C) 2009 Intel Corporation
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) version 3.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  * 02110-1301  USA
18  */
19
20 #ifndef SYNC_UI_H
21 #define SYNC_UI_H
22
23 #include <gtk/gtk.h>
24 #include "config.h"
25 #include "sync-ui-config.h"
26 #include "sync-ui.h"
27
28 #define SYNC_UI_LIST_ICON_SIZE 32
29 #define SYNC_UI_LIST_BTN_WIDTH 150
30
31 typedef enum SyncErrorResponse {
32     SYNC_ERROR_RESPONSE_NONE,
33     SYNC_ERROR_RESPONSE_SETTINGS_SELECT,
34     SYNC_ERROR_RESPONSE_SETTINGS_OPEN,
35     SYNC_ERROR_RESPONSE_EMERGENCY,
36 } SyncErrorResponse;
37
38
39 char* get_pretty_source_name (const char *source_name);
40 char* get_error_string_for_code (int error_code, SyncErrorResponse *response);
41 void show_error_dialog (GtkWidget *widget, const char* message);
42
43 GtkWidget* sync_ui_create_main_window ();
44
45 #endif