00001 /* 00002 * This file is part of connectionMgr. 00003 * 00004 * connectionMgr is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * connectionMgr is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00026 #ifndef _EDIT_SCREEN_WIRELESS_H_ 00027 #define _EDIT_SCREEN_WIRELESS_H_ 00028 00029 #include <gtk/gtk.h> 00030 #include <gdk/gdkkeysyms.h> 00031 00032 #include <glib.h> 00033 00034 #include <liberregxml/erregapi.h> 00035 00036 #ifdef __cplusplus 00037 extern "C" 00038 { 00039 #endif 00040 00041 GtkWidget *edit_wireless_create(void); 00042 void edit_wireless_enable_save_button(gboolean enable); 00043 void edit_wireless_set_text(void); 00044 void edit_wireless_determine_status(void); 00045 void delay_edit_wireless_determine_status(void); 00046 00047 void edit_wireless_set_network_settings(const regNetworkProfile_t *setting); 00048 void edit_wireless_get_network_settings(regNetworkProfile_t *settings); 00049 gboolean edit_wireless_check_network_settings(void); 00050 void edit_wireless_backup_network_settings(void); 00051 void edit_wireless_restore_network_settings(void); 00052 00053 void edit_wireless_set_ssid(const char *ssid); 00054 void edit_wireless_set_profilename(const gchar *profilename); 00055 void edit_wireless_set_encrtype(wireless_encr_type_t encrtype); 00056 void edit_wireless_set_encrkey(const char *encrkey); 00057 00058 const char *edit_wireless_get_ssid(void); 00059 wireless_encr_type_t edit_wireless_get_encrtype(void); 00060 const char *edit_wireless_get_profilename(void); 00061 const char *edit_wireless_get_encrkey(void); 00062 00063 gboolean on_edit_wireless_keypress(GdkEventKey* event); 00064 00065 #ifdef __cplusplus 00066 } 00067 #endif 00068 00069 #endif //_EDIT_SCREEN_WIRELESS_H_ 00070