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 _CONNECT_SCREEN_DATA_H_ 00026 #define _CONNECT_SCREEN_DATA_H_ 00027 00028 #include <glib.h> 00029 #include <liberregxml/erregapi.h> 00030 #include "commonData.h" 00031 #include "scanThread.h" 00032 00033 #ifdef __cplusplus 00034 extern "C" 00035 { 00036 #endif /* __cplusplus */ 00037 00038 void connect_data_init(void); 00039 void connect_data_destroy(void); 00040 gboolean connect_data_store(void); 00041 00042 gint connect_data_get_last_connected_profile(void); 00043 gboolean connect_data_set_last_connected_profile(gint regIndex); 00044 00045 cmgrConnectType_t connect_data_get_connect_type(void); 00046 gboolean connect_data_set_connect_type(cmgrConnectType_t type); 00047 00048 connection_t connect_data_get_network_type(void); 00049 gboolean connect_data_set_network_type(connection_t type); 00050 00051 gboolean connect_data_get_ac_wlan(void); 00052 00053 void connect_data_update_last_connected_profile_after_delete(gint delRegIndex); 00054 00055 const regPCProfile_t* connect_data_get_pcsharedata(void); 00056 00057 gchar* connect_data_get_ecd_url(void); 00058 00059 void connect_data_init_network_profiles(connection_t networkType, 00060 network_spec_t* pScanNetworks, 00061 int nScanNetworks); 00062 void connect_data_destroy_network_profiles(void); 00063 00064 int connect_data_get_n_network_profiles(void); 00065 const networkProfile_t* connect_data_get_network_profile(int profileIndex); 00066 00067 int connect_data_get_profile_index(int regIndex); 00068 int connect_data_get_reg_index(int profileIndex); 00069 00070 gboolean connect_data_reach_max_profiles(void); 00071 00072 void connect_data_update_network_profile_with_last(networkProfile_t* pNetwork); 00073 00074 regNetworkProfile_t* network_spec_to_reg_network(network_spec_t* scanSettings); 00075 00076 char* connect_data_get_hidden_ssid_list(void); 00077 00078 gboolean connect_data_select_next_regprofile(int profileIndex); 00079 00080 #ifdef __cplusplus 00081 } 00082 #endif /* __cplusplus */ 00083 00084 #endif //_CONNECT_SCREEN_DATA_H_ 00085 00086