00001 /* 00002 * This file is part of settings. 00003 * 00004 * settings 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 * settings 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 00030 #ifndef __ILIAD_PINCODE_DATA_H__ 00031 #define __ILIAD_PINCODE_DATA_H__ 00032 #ifdef __cplusplus 00033 extern "C" 00034 { 00035 #endif 00036 00037 typedef struct 00038 { 00039 gboolean enable; // enbale(TRUE) or disable(FALSE) pincode? 00040 gchar pincode[PINCODE_MAX_LENGTH + 1]; // pincode string 00041 } sysPincodeSetting_t; 00042 00043 00044 // load pincode data from sysset table into memory 00045 void iLiad_pincode_data_init(void); 00046 00047 // free the pincode data in memory 00048 void iLiad_pincode_data_destroy(void); 00049 00050 // return the value of "disable/enable" pincode 00051 // TRUE: enable pincode 00052 // FALSE: disable pincode 00053 gboolean iLiad_pincode_data_is_pincode_on(void); 00054 void iLiad_pincode_data_set_pincode_on(gboolean enable); 00055 00056 // return the pincode string 00057 unsigned char *iLiad_pincode_data_get_pincode(void); 00058 void iLiad_pincode_data_set_pincode(const gchar * text); 00059 00060 // store the pincode information into sysset table 00061 void iLiad_pincode_data_store(); 00062 00063 #ifdef __cplusplus 00064 } 00065 #endif 00066 #endif /* __ILIAD_PINCODE_DATA_H__ */
1.5.6