1 /*
2 	proxy_setting_view.h
3 
4 
5 
6 	Object Hierarchy :
7 
8 	SettingView
9 	|
10 	`--	ProxySettingView
11 	    |
12 	    `-- DownloadSettingView
13 	        |
14 	        `--CategorySettingView
15 
16 
17 
18 	2003  Plus Huang
19  */
20 
21 #ifndef __PROXY_SETTING_VIEW_H
22 #define __PROXY_SETTING_VIEW_H
23 
24 #include "setting_view.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 #define PROXY_SETTING_VIEW(o)    ((ProxySettingView*)(o))
31 
32 typedef struct _ProxySettingView      ProxySettingView;
33 
34 struct _ProxySettingView {
35 	SettingView    setting_view;
36 
37 	GtkWidget* self;
38 
39 	// proxy type
40 	GtkWidget* radio_none;
41 	GtkWidget* radio_http;
42 	GtkWidget* radio_socks5;
43 
44 	// proxy server
45 	GtkWidget* label_host;
46 	GtkWidget* label_port;
47 	GtkWidget* entry_host;
48 	GtkWidget* spin_port;
49 
50 	// authentication
51 	GtkWidget* toggle_authentication;
52 	GtkWidget* label_username;
53 	GtkWidget* label_password;
54 	GtkWidget* entry_username;
55 	GtkWidget* entry_password;
56 };
57 
58 void proxy_setting_view_init (ProxySettingView* view);
59 
60 void proxy_setting_view_set (ProxySettingView* view,
61                              ProxySetting* setting);
62 void proxy_setting_view_get (ProxySettingView* view,
63                              ProxySetting* setting);
64 
65 void proxy_setting_view_set_multiple (ProxySettingView *view,
66                                       gboolean multiple);
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif // End of __PROXY_SETTING_VIEW_H
73 
74