conf.h

Go to the documentation of this file.
00001 #ifndef __CONFIG_H__
00002 #define __CONFIG_H__
00003 
00004 /**
00005  * File Name  : config.h
00006  *
00007  * Description: GConf handling functions
00008  */
00009 
00010 /*
00011  * This file is part of sysd.
00012  *
00013  * sysd is free software: you can redistribute it and/or modify
00014  * it under the terms of the GNU General Public License as published by
00015  * the Free Software Foundation, either version 2 of the License, or
00016  * (at your option) any later version.
00017  *
00018  * sysd is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00021  * GNU General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU General Public License
00024  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00025  */
00026 
00027 /**
00028  * Copyright (C) 2008 iRex Technologies B.V.
00029  * All rights reserved.
00030  */
00031 
00032 //----------------------------------------------------------------------------
00033 // Include Files
00034 //----------------------------------------------------------------------------
00035 
00036 G_BEGIN_DECLS
00037 
00038 #include <hal.h>
00039 
00040 
00041 //----------------------------------------------------------------------------
00042 // Definitions
00043 //---------------------------------------------------------------------------- 
00044 
00045 #define KEYS_EREADER       "/apps/er"
00046 #define KEYS_NM            "/system/networking/connections"
00047 
00048 #define INI_FILE           MOUNTPOINT_CARD "/System/dr.ini"
00049 #define ERCONFTOOL_EXPORT  "erconftool -c " INI_FILE " -e " KEYS_NM " -e " KEYS_EREADER
00050 #define ERCONFTOOL_IMPORT  "erconftool -c " INI_FILE " -i " KEYS_NM " -i " KEYS_EREADER
00051 #define ERCONFTOOL_DELETE  "erconftool -d " KEYS_NM                    \
00052                                      " -d " KEYS_EREADER "/private"    \
00053                                      " -d " KEYS_EREADER "/conn_wifi " \
00054                                      " -d " KEYS_EREADER "/conn_blue"
00055 
00056 
00057 //----------------------------------------------------------------------------
00058 // Forward Declarations
00059 //----------------------------------------------------------------------------
00060 
00061 
00062 //----------------------------------------------------------------------------
00063 // Type Declarations
00064 //----------------------------------------------------------------------------
00065 
00066 
00067 //----------------------------------------------------------------------------
00068 // Global Constants
00069 //----------------------------------------------------------------------------
00070 
00071 
00072 //============================================================================
00073 // Public Functions
00074 //============================================================================
00075 
00076 /**---------------------------------------------------------------------------
00077  *
00078  * Name :  conf_set_services
00079  *
00080  * @brief  Initialize configuration
00081  *
00082  * @param  --
00083  *
00084  * @return --
00085  *
00086  *--------------------------------------------------------------------------*/
00087 void conf_set_services(void);
00088 
00089 /**---------------------------------------------------------------------------
00090  *
00091  * Name :  conf_get_first_boot
00092  *
00093  * @brief  Run specials when this is the first boot of the device
00094  *
00095  * @param  --
00096  *
00097  * @return --
00098  *
00099  *--------------------------------------------------------------------------*/
00100 gboolean conf_get_first_boot(void);
00101 
00102 /**---------------------------------------------------------------------------
00103  *
00104  * Name :  conf_set_flightmode
00105  *
00106  * @brief  Run specials when this is the first boot of the device
00107  *
00108  * @param  [in] is_enabled - TRUE  flightmode enabled, no connectivity allowed
00109  *                           FALSE flightmode disabled, connectivity allowed
00110  *
00111  * @return TRUE =ok, FALSE = error
00112  *
00113  *--------------------------------------------------------------------------*/
00114 gboolean conf_set_flightmode(gboolean is_enabled);
00115 
00116 /**---------------------------------------------------------------------------
00117  *
00118  * Name :  conf_disabled_sensor_lock
00119  *
00120  * @brief  Read sensor lock settings from registry
00121  *         and set statusbar icon accordingly.
00122  *
00123  * @param  --
00124  *
00125  * @return --
00126  *
00127  *--------------------------------------------------------------------------*/
00128 void conf_disabled_sensor_lock(void);
00129 
00130 void conf_set_first_boot(gboolean first_boot);
00131 gboolean conf_is_multi_language(void);
00132 
00133 G_END_DECLS
00134 
00135 #endif /* __CONFIG_H__ */
Generated by  doxygen 1.6.2-20100208