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 00025 #ifndef _EDIT_SCREEN_DATA_H_ 00026 #define _EDIT_SCREEN_DATA_H_ 00027 00028 #include <glib.h> 00029 #include "commonData.h" 00030 00031 #ifdef __cplusplus 00032 extern "C" 00033 { 00034 #endif /* __cplusplus */ 00035 00036 void edit_data_init(void); 00037 void edit_data_destroy(void); 00038 00039 connection_t edit_data_get_network_type(void); 00040 gboolean edit_data_set_network_type(connection_t type); 00041 00042 void edit_data_init_network_profiles(void); 00043 void edit_data_destory_network_profiles(void); 00044 void edit_data_store_network_profiles(void); 00045 00046 int edit_data_get_n_network_profiles(void); 00047 const networkProfile_t* edit_data_get_network_profile(guint profileIndex); 00048 gboolean edit_data_set_network_profile(int profileIndex, 00049 const networkProfile_t* pNetwork); 00050 00051 int edit_data_get_profile_index(guint regIndex); 00052 int edit_data_get_reg_index(guint profileIndex); 00053 00054 gboolean edit_data_reach_max_profiles(void); 00055 00056 void edit_data_remove_network_profile(int profileIndex); 00057 00058 #ifdef __cplusplus 00059 } 00060 #endif /* __cplusplus */ 00061 00062 #endif //_EDIT_SCREEN_DATA_H_ 00063 00064