00001 // -*- c++ -*- 00002 00003 // generated code -- do not edit 00004 00005 #ifndef __SA_SENSOR_LIST_INTEGRATION_H__ 00006 #define __SA_SENSOR_LIST_INTEGRATION_H__ 00007 00008 #include <string.h> 00009 00010 #if __MARK_ENABLED__ 00011 #define SENSOR_MARK_IS_SUPPORTED 1 00012 #define WHEN_SENSOR_MARK_SUPPORTED_BLOCK(x) { x ; } 00013 #define WHEN_SENSOR_MARK_SUPPORTED_NOTHING(x) x 00014 #else 00015 #define SENSOR_MARK_IS_SUPPORTED 0 00016 #define WHEN_SENSOR_MARK_SUPPORTED_BLOCK(x) {} 00017 #define WHEN_SENSOR_MARK_SUPPORTED_NOTHING(x) 00018 #endif 00019 00020 #if __TIMER_ENABLED__ 00021 #define SENSOR_TIMER_IS_SUPPORTED 1 00022 #define WHEN_SENSOR_TIMER_SUPPORTED_BLOCK(x) { x ; } 00023 #define WHEN_SENSOR_TIMER_SUPPORTED_NOTHING(x) x 00024 #else 00025 #define SENSOR_TIMER_IS_SUPPORTED 0 00026 #define WHEN_SENSOR_TIMER_SUPPORTED_BLOCK(x) {} 00027 #define WHEN_SENSOR_TIMER_SUPPORTED_NOTHING(x) 00028 #endif 00029 00030 #if __LIGHT_ENABLED__ 00031 #define SENSOR_LIGHT_IS_SUPPORTED 1 00032 #define WHEN_SENSOR_LIGHT_SUPPORTED_BLOCK(x) { x ; } 00033 #define WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING(x) x 00034 #else 00035 #define SENSOR_LIGHT_IS_SUPPORTED 0 00036 #define WHEN_SENSOR_LIGHT_SUPPORTED_BLOCK(x) {} 00037 #define WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING(x) 00038 #endif 00039 00040 #if __SINGLETAP_ENABLED__ 00041 #define SENSOR_SINGLETAP_IS_SUPPORTED 1 00042 #define WHEN_SENSOR_SINGLETAP_SUPPORTED_BLOCK(x) { x ; } 00043 #define WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING(x) x 00044 #else 00045 #define SENSOR_SINGLETAP_IS_SUPPORTED 0 00046 #define WHEN_SENSOR_SINGLETAP_SUPPORTED_BLOCK(x) {} 00047 #define WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING(x) 00048 #endif 00049 00050 #if __DOUBLETAP_ENABLED__ 00051 #define SENSOR_DOUBLETAP_IS_SUPPORTED 1 00052 #define WHEN_SENSOR_DOUBLETAP_SUPPORTED_BLOCK(x) { x ; } 00053 #define WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING(x) x 00054 #else 00055 #define SENSOR_DOUBLETAP_IS_SUPPORTED 0 00056 #define WHEN_SENSOR_DOUBLETAP_SUPPORTED_BLOCK(x) {} 00057 #define WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING(x) 00058 #endif 00059 00060 #if __PROXIMITY_ENABLED__ 00061 #define SENSOR_PROXIMITY_IS_SUPPORTED 1 00062 #define WHEN_SENSOR_PROXIMITY_SUPPORTED_BLOCK(x) { x ; } 00063 #define WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING(x) x 00064 #else 00065 #define SENSOR_PROXIMITY_IS_SUPPORTED 0 00066 #define WHEN_SENSOR_PROXIMITY_SUPPORTED_BLOCK(x) {} 00067 #define WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING(x) 00068 #endif 00069 00070 #if __MUSIC_ENABLED__ 00071 #define SENSOR_MUSIC_IS_SUPPORTED 1 00072 #define WHEN_SENSOR_MUSIC_SUPPORTED_BLOCK(x) { x ; } 00073 #define WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING(x) x 00074 #else 00075 #define SENSOR_MUSIC_IS_SUPPORTED 0 00076 #define WHEN_SENSOR_MUSIC_SUPPORTED_BLOCK(x) {} 00077 #define WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING(x) 00078 #endif 00079 00080 #if __HTTPURL_ENABLED__ 00081 #define SENSOR_HTTPURL_IS_SUPPORTED 1 00082 #define WHEN_SENSOR_HTTPURL_SUPPORTED_BLOCK(x) { x ; } 00083 #define WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING(x) x 00084 #else 00085 #define SENSOR_HTTPURL_IS_SUPPORTED 0 00086 #define WHEN_SENSOR_HTTPURL_SUPPORTED_BLOCK(x) {} 00087 #define WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING(x) 00088 #endif 00089 00090 #if __WEBURL_ENABLED__ 00091 #define SENSOR_WEBURL_IS_SUPPORTED 1 00092 #define WHEN_SENSOR_WEBURL_SUPPORTED_BLOCK(x) { x ; } 00093 #define WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING(x) x 00094 #else 00095 #define SENSOR_WEBURL_IS_SUPPORTED 0 00096 #define WHEN_SENSOR_WEBURL_SUPPORTED_BLOCK(x) {} 00097 #define WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING(x) 00098 #endif 00099 00100 #if __PROFILE_ENABLED__ 00101 #define SENSOR_PROFILE_IS_SUPPORTED 1 00102 #define WHEN_SENSOR_PROFILE_SUPPORTED_BLOCK(x) { x ; } 00103 #define WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING(x) x 00104 #else 00105 #define SENSOR_PROFILE_IS_SUPPORTED 0 00106 #define WHEN_SENSOR_PROFILE_SUPPORTED_BLOCK(x) {} 00107 #define WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING(x) 00108 #endif 00109 00110 #if __CELLID_ENABLED__ 00111 #define SENSOR_CELLID_IS_SUPPORTED 1 00112 #define WHEN_SENSOR_CELLID_SUPPORTED_BLOCK(x) { x ; } 00113 #define WHEN_SENSOR_CELLID_SUPPORTED_NOTHING(x) x 00114 #else 00115 #define SENSOR_CELLID_IS_SUPPORTED 0 00116 #define WHEN_SENSOR_CELLID_SUPPORTED_BLOCK(x) {} 00117 #define WHEN_SENSOR_CELLID_SUPPORTED_NOTHING(x) 00118 #endif 00119 00120 #if __BTPROX_ENABLED__ 00121 #define SENSOR_BTPROX_IS_SUPPORTED 1 00122 #define WHEN_SENSOR_BTPROX_SUPPORTED_BLOCK(x) { x ; } 00123 #define WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING(x) x 00124 #else 00125 #define SENSOR_BTPROX_IS_SUPPORTED 0 00126 #define WHEN_SENSOR_BTPROX_SUPPORTED_BLOCK(x) {} 00127 #define WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING(x) 00128 #endif 00129 00130 #if __GPS_ENABLED__ 00131 #define SENSOR_GPS_IS_SUPPORTED 1 00132 #define WHEN_SENSOR_GPS_SUPPORTED_BLOCK(x) { x ; } 00133 #define WHEN_SENSOR_GPS_SUPPORTED_NOTHING(x) x 00134 #else 00135 #define SENSOR_GPS_IS_SUPPORTED 0 00136 #define WHEN_SENSOR_GPS_SUPPORTED_BLOCK(x) {} 00137 #define WHEN_SENSOR_GPS_SUPPORTED_NOTHING(x) 00138 #endif 00139 00140 #if __CELLPOS_ENABLED__ 00141 #define SENSOR_CELLPOS_IS_SUPPORTED 1 00142 #define WHEN_SENSOR_CELLPOS_SUPPORTED_BLOCK(x) { x ; } 00143 #define WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING(x) x 00144 #else 00145 #define SENSOR_CELLPOS_IS_SUPPORTED 0 00146 #define WHEN_SENSOR_CELLPOS_SUPPORTED_BLOCK(x) {} 00147 #define WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING(x) 00148 #endif 00149 00150 #if __APPFOCUS_ENABLED__ 00151 #define SENSOR_APPFOCUS_IS_SUPPORTED 1 00152 #define WHEN_SENSOR_APPFOCUS_SUPPORTED_BLOCK(x) { x ; } 00153 #define WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING(x) x 00154 #else 00155 #define SENSOR_APPFOCUS_IS_SUPPORTED 0 00156 #define WHEN_SENSOR_APPFOCUS_SUPPORTED_BLOCK(x) {} 00157 #define WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING(x) 00158 #endif 00159 00160 #if __KEYPRESS_ENABLED__ 00161 #define SENSOR_KEYPRESS_IS_SUPPORTED 1 00162 #define WHEN_SENSOR_KEYPRESS_SUPPORTED_BLOCK(x) { x ; } 00163 #define WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING(x) x 00164 #else 00165 #define SENSOR_KEYPRESS_IS_SUPPORTED 0 00166 #define WHEN_SENSOR_KEYPRESS_SUPPORTED_BLOCK(x) {} 00167 #define WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING(x) 00168 #endif 00169 00170 #if __INACTIVITY_ENABLED__ 00171 #define SENSOR_INACTIVITY_IS_SUPPORTED 1 00172 #define WHEN_SENSOR_INACTIVITY_SUPPORTED_BLOCK(x) { x ; } 00173 #define WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING(x) x 00174 #else 00175 #define SENSOR_INACTIVITY_IS_SUPPORTED 0 00176 #define WHEN_SENSOR_INACTIVITY_SUPPORTED_BLOCK(x) {} 00177 #define WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING(x) 00178 #endif 00179 00180 #if __INDICATOR_ENABLED__ 00181 #define SENSOR_INDICATOR_IS_SUPPORTED 1 00182 #define WHEN_SENSOR_INDICATOR_SUPPORTED_BLOCK(x) { x ; } 00183 #define WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING(x) x 00184 #else 00185 #define SENSOR_INDICATOR_IS_SUPPORTED 0 00186 #define WHEN_SENSOR_INDICATOR_SUPPORTED_BLOCK(x) {} 00187 #define WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING(x) 00188 #endif 00189 00190 #if __CALLSTATUS_ENABLED__ 00191 #define SENSOR_CALLSTATUS_IS_SUPPORTED 1 00192 #define WHEN_SENSOR_CALLSTATUS_SUPPORTED_BLOCK(x) { x ; } 00193 #define WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING(x) x 00194 #else 00195 #define SENSOR_CALLSTATUS_IS_SUPPORTED 0 00196 #define WHEN_SENSOR_CALLSTATUS_SUPPORTED_BLOCK(x) {} 00197 #define WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING(x) 00198 #endif 00199 00200 #if __SMSEVENT_ENABLED__ 00201 #define SENSOR_SMSEVENT_IS_SUPPORTED 1 00202 #define WHEN_SENSOR_SMSEVENT_SUPPORTED_BLOCK(x) { x ; } 00203 #define WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING(x) x 00204 #else 00205 #define SENSOR_SMSEVENT_IS_SUPPORTED 0 00206 #define WHEN_SENSOR_SMSEVENT_SUPPORTED_BLOCK(x) {} 00207 #define WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING(x) 00208 #endif 00209 00210 #define NUM_ALL_SENSORS 20 00211 #define NUM_SUPPORTED_SENSORS (0 + SENSOR_MARK_IS_SUPPORTED + SENSOR_TIMER_IS_SUPPORTED + SENSOR_LIGHT_IS_SUPPORTED + SENSOR_SINGLETAP_IS_SUPPORTED + SENSOR_DOUBLETAP_IS_SUPPORTED + SENSOR_PROXIMITY_IS_SUPPORTED + SENSOR_MUSIC_IS_SUPPORTED + SENSOR_HTTPURL_IS_SUPPORTED + SENSOR_WEBURL_IS_SUPPORTED + SENSOR_PROFILE_IS_SUPPORTED + SENSOR_CELLID_IS_SUPPORTED + SENSOR_BTPROX_IS_SUPPORTED + SENSOR_GPS_IS_SUPPORTED + SENSOR_CELLPOS_IS_SUPPORTED + SENSOR_APPFOCUS_IS_SUPPORTED + SENSOR_KEYPRESS_IS_SUPPORTED + SENSOR_INACTIVITY_IS_SUPPORTED + SENSOR_INDICATOR_IS_SUPPORTED + SENSOR_CALLSTATUS_IS_SUPPORTED + SENSOR_SMSEVENT_IS_SUPPORTED) 00212 00213 #define ALL_SENSOR_NAMES_LITERAL_LIST {"mark", "timer", "light", "singletap", "doubletap", "proximity", "music", "httpurl", "weburl", "profile", "cellid", "btprox", "gps", "cellpos", "appfocus", "keypress", "inactivity", "indicator", "callstatus", "smsevent", NULL} 00214 00215 #define RETURN_WHETHER_NAMED_SENSOR_IS_SUPPORTED(name) { \ 00216 if (strcmp(name,"mark") == 0) { return SENSOR_MARK_IS_SUPPORTED; } \ 00217 if (strcmp(name,"timer") == 0) { return SENSOR_TIMER_IS_SUPPORTED; } \ 00218 if (strcmp(name,"light") == 0) { return SENSOR_LIGHT_IS_SUPPORTED; } \ 00219 if (strcmp(name,"singletap") == 0) { return SENSOR_SINGLETAP_IS_SUPPORTED; } \ 00220 if (strcmp(name,"doubletap") == 0) { return SENSOR_DOUBLETAP_IS_SUPPORTED; } \ 00221 if (strcmp(name,"proximity") == 0) { return SENSOR_PROXIMITY_IS_SUPPORTED; } \ 00222 if (strcmp(name,"music") == 0) { return SENSOR_MUSIC_IS_SUPPORTED; } \ 00223 if (strcmp(name,"httpurl") == 0) { return SENSOR_HTTPURL_IS_SUPPORTED; } \ 00224 if (strcmp(name,"weburl") == 0) { return SENSOR_WEBURL_IS_SUPPORTED; } \ 00225 if (strcmp(name,"profile") == 0) { return SENSOR_PROFILE_IS_SUPPORTED; } \ 00226 if (strcmp(name,"cellid") == 0) { return SENSOR_CELLID_IS_SUPPORTED; } \ 00227 if (strcmp(name,"btprox") == 0) { return SENSOR_BTPROX_IS_SUPPORTED; } \ 00228 if (strcmp(name,"gps") == 0) { return SENSOR_GPS_IS_SUPPORTED; } \ 00229 if (strcmp(name,"cellpos") == 0) { return SENSOR_CELLPOS_IS_SUPPORTED; } \ 00230 if (strcmp(name,"appfocus") == 0) { return SENSOR_APPFOCUS_IS_SUPPORTED; } \ 00231 if (strcmp(name,"keypress") == 0) { return SENSOR_KEYPRESS_IS_SUPPORTED; } \ 00232 if (strcmp(name,"inactivity") == 0) { return SENSOR_INACTIVITY_IS_SUPPORTED; } \ 00233 if (strcmp(name,"indicator") == 0) { return SENSOR_INDICATOR_IS_SUPPORTED; } \ 00234 if (strcmp(name,"callstatus") == 0) { return SENSOR_CALLSTATUS_IS_SUPPORTED; } \ 00235 if (strcmp(name,"smsevent") == 0) { return SENSOR_SMSEVENT_IS_SUPPORTED; } \ 00236 } 00237 00238 #define RETURN_WHETHER_NAMED_SENSOR_IS_RUNNING(name) { \ 00239 WHEN_SENSOR_MARK_SUPPORTED_NOTHING({if (strcmp(name,"mark") == 0) { return (SENSOR_MARK_IS_RUNNING); }}) \ 00240 WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({if (strcmp(name,"timer") == 0) { return (SENSOR_TIMER_IS_RUNNING); }}) \ 00241 WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({if (strcmp(name,"light") == 0) { return (SENSOR_LIGHT_IS_RUNNING); }}) \ 00242 WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({if (strcmp(name,"singletap") == 0) { return (SENSOR_SINGLETAP_IS_RUNNING); }}) \ 00243 WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({if (strcmp(name,"doubletap") == 0) { return (SENSOR_DOUBLETAP_IS_RUNNING); }}) \ 00244 WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({if (strcmp(name,"proximity") == 0) { return (SENSOR_PROXIMITY_IS_RUNNING); }}) \ 00245 WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({if (strcmp(name,"music") == 0) { return (SENSOR_MUSIC_IS_RUNNING); }}) \ 00246 WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({if (strcmp(name,"httpurl") == 0) { return (SENSOR_HTTPURL_IS_RUNNING); }}) \ 00247 WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({if (strcmp(name,"weburl") == 0) { return (SENSOR_WEBURL_IS_RUNNING); }}) \ 00248 WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({if (strcmp(name,"profile") == 0) { return (SENSOR_PROFILE_IS_RUNNING); }}) \ 00249 WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({if (strcmp(name,"cellid") == 0) { return (SENSOR_CELLID_IS_RUNNING); }}) \ 00250 WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({if (strcmp(name,"btprox") == 0) { return (SENSOR_BTPROX_IS_RUNNING); }}) \ 00251 WHEN_SENSOR_GPS_SUPPORTED_NOTHING({if (strcmp(name,"gps") == 0) { return (SENSOR_GPS_IS_RUNNING); }}) \ 00252 WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({if (strcmp(name,"cellpos") == 0) { return (SENSOR_CELLPOS_IS_RUNNING); }}) \ 00253 WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({if (strcmp(name,"appfocus") == 0) { return (SENSOR_APPFOCUS_IS_RUNNING); }}) \ 00254 WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({if (strcmp(name,"keypress") == 0) { return (SENSOR_KEYPRESS_IS_RUNNING); }}) \ 00255 WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({if (strcmp(name,"inactivity") == 0) { return (SENSOR_INACTIVITY_IS_RUNNING); }}) \ 00256 WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({if (strcmp(name,"indicator") == 0) { return (SENSOR_INDICATOR_IS_RUNNING); }}) \ 00257 WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({if (strcmp(name,"callstatus") == 0) { return (SENSOR_CALLSTATUS_IS_RUNNING); }}) \ 00258 WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({if (strcmp(name,"smsevent") == 0) { return (SENSOR_SMSEVENT_IS_RUNNING); }}) \ 00259 } 00260 00261 #define STOP_NAMED_SENSOR(name) { \ 00262 WHEN_SENSOR_MARK_SUPPORTED_NOTHING({if (strcmp(name,"mark") == 0) { if (SENSOR_MARK_IS_RUNNING) { SENSOR_MARK_STOP; } return; }}) \ 00263 WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({if (strcmp(name,"timer") == 0) { if (SENSOR_TIMER_IS_RUNNING) { SENSOR_TIMER_STOP; } return; }}) \ 00264 WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({if (strcmp(name,"light") == 0) { if (SENSOR_LIGHT_IS_RUNNING) { SENSOR_LIGHT_STOP; } return; }}) \ 00265 WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({if (strcmp(name,"singletap") == 0) { if (SENSOR_SINGLETAP_IS_RUNNING) { SENSOR_SINGLETAP_STOP; } return; }}) \ 00266 WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({if (strcmp(name,"doubletap") == 0) { if (SENSOR_DOUBLETAP_IS_RUNNING) { SENSOR_DOUBLETAP_STOP; } return; }}) \ 00267 WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({if (strcmp(name,"proximity") == 0) { if (SENSOR_PROXIMITY_IS_RUNNING) { SENSOR_PROXIMITY_STOP; } return; }}) \ 00268 WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({if (strcmp(name,"music") == 0) { if (SENSOR_MUSIC_IS_RUNNING) { SENSOR_MUSIC_STOP; } return; }}) \ 00269 WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({if (strcmp(name,"httpurl") == 0) { if (SENSOR_HTTPURL_IS_RUNNING) { SENSOR_HTTPURL_STOP; } return; }}) \ 00270 WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({if (strcmp(name,"weburl") == 0) { if (SENSOR_WEBURL_IS_RUNNING) { SENSOR_WEBURL_STOP; } return; }}) \ 00271 WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({if (strcmp(name,"profile") == 0) { if (SENSOR_PROFILE_IS_RUNNING) { SENSOR_PROFILE_STOP; } return; }}) \ 00272 WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({if (strcmp(name,"cellid") == 0) { if (SENSOR_CELLID_IS_RUNNING) { SENSOR_CELLID_STOP; } return; }}) \ 00273 WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({if (strcmp(name,"btprox") == 0) { if (SENSOR_BTPROX_IS_RUNNING) { SENSOR_BTPROX_STOP; } return; }}) \ 00274 WHEN_SENSOR_GPS_SUPPORTED_NOTHING({if (strcmp(name,"gps") == 0) { if (SENSOR_GPS_IS_RUNNING) { SENSOR_GPS_STOP; } return; }}) \ 00275 WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({if (strcmp(name,"cellpos") == 0) { if (SENSOR_CELLPOS_IS_RUNNING) { SENSOR_CELLPOS_STOP; } return; }}) \ 00276 WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({if (strcmp(name,"appfocus") == 0) { if (SENSOR_APPFOCUS_IS_RUNNING) { SENSOR_APPFOCUS_STOP; } return; }}) \ 00277 WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({if (strcmp(name,"keypress") == 0) { if (SENSOR_KEYPRESS_IS_RUNNING) { SENSOR_KEYPRESS_STOP; } return; }}) \ 00278 WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({if (strcmp(name,"inactivity") == 0) { if (SENSOR_INACTIVITY_IS_RUNNING) { SENSOR_INACTIVITY_STOP; } return; }}) \ 00279 WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({if (strcmp(name,"indicator") == 0) { if (SENSOR_INDICATOR_IS_RUNNING) { SENSOR_INDICATOR_STOP; } return; }}) \ 00280 WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({if (strcmp(name,"callstatus") == 0) { if (SENSOR_CALLSTATUS_IS_RUNNING) { SENSOR_CALLSTATUS_STOP; } return; }}) \ 00281 WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({if (strcmp(name,"smsevent") == 0) { if (SENSOR_SMSEVENT_IS_RUNNING) { SENSOR_SMSEVENT_STOP; } return; }}) \ 00282 } 00283 00284 #define START_NAMED_SENSOR_OR_FAIL(name) { \ 00285 WHEN_SENSOR_MARK_SUPPORTED_NOTHING({if (strcmp(name,"mark") == 0) { if (SENSOR_MARK_IS_RUNNING) return TRUE; SENSOR_MARK_START; return success; }}) \ 00286 WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({if (strcmp(name,"timer") == 0) { if (SENSOR_TIMER_IS_RUNNING) return TRUE; SENSOR_TIMER_START; return success; }}) \ 00287 WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({if (strcmp(name,"light") == 0) { if (SENSOR_LIGHT_IS_RUNNING) return TRUE; SENSOR_LIGHT_START; return success; }}) \ 00288 WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({if (strcmp(name,"singletap") == 0) { if (SENSOR_SINGLETAP_IS_RUNNING) return TRUE; SENSOR_SINGLETAP_START; return success; }}) \ 00289 WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({if (strcmp(name,"doubletap") == 0) { if (SENSOR_DOUBLETAP_IS_RUNNING) return TRUE; SENSOR_DOUBLETAP_START; return success; }}) \ 00290 WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({if (strcmp(name,"proximity") == 0) { if (SENSOR_PROXIMITY_IS_RUNNING) return TRUE; SENSOR_PROXIMITY_START; return success; }}) \ 00291 WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({if (strcmp(name,"music") == 0) { if (SENSOR_MUSIC_IS_RUNNING) return TRUE; SENSOR_MUSIC_START; return success; }}) \ 00292 WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({if (strcmp(name,"httpurl") == 0) { if (SENSOR_HTTPURL_IS_RUNNING) return TRUE; SENSOR_HTTPURL_START; return success; }}) \ 00293 WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({if (strcmp(name,"weburl") == 0) { if (SENSOR_WEBURL_IS_RUNNING) return TRUE; SENSOR_WEBURL_START; return success; }}) \ 00294 WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({if (strcmp(name,"profile") == 0) { if (SENSOR_PROFILE_IS_RUNNING) return TRUE; SENSOR_PROFILE_START; return success; }}) \ 00295 WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({if (strcmp(name,"cellid") == 0) { if (SENSOR_CELLID_IS_RUNNING) return TRUE; SENSOR_CELLID_START; return success; }}) \ 00296 WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({if (strcmp(name,"btprox") == 0) { if (SENSOR_BTPROX_IS_RUNNING) return TRUE; SENSOR_BTPROX_START; return success; }}) \ 00297 WHEN_SENSOR_GPS_SUPPORTED_NOTHING({if (strcmp(name,"gps") == 0) { if (SENSOR_GPS_IS_RUNNING) return TRUE; SENSOR_GPS_START; return success; }}) \ 00298 WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({if (strcmp(name,"cellpos") == 0) { if (SENSOR_CELLPOS_IS_RUNNING) return TRUE; SENSOR_CELLPOS_START; return success; }}) \ 00299 WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({if (strcmp(name,"appfocus") == 0) { if (SENSOR_APPFOCUS_IS_RUNNING) return TRUE; SENSOR_APPFOCUS_START; return success; }}) \ 00300 WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({if (strcmp(name,"keypress") == 0) { if (SENSOR_KEYPRESS_IS_RUNNING) return TRUE; SENSOR_KEYPRESS_START; return success; }}) \ 00301 WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({if (strcmp(name,"inactivity") == 0) { if (SENSOR_INACTIVITY_IS_RUNNING) return TRUE; SENSOR_INACTIVITY_START; return success; }}) \ 00302 WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({if (strcmp(name,"indicator") == 0) { if (SENSOR_INDICATOR_IS_RUNNING) return TRUE; SENSOR_INDICATOR_START; return success; }}) \ 00303 WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({if (strcmp(name,"callstatus") == 0) { if (SENSOR_CALLSTATUS_IS_RUNNING) return TRUE; SENSOR_CALLSTATUS_START; return success; }}) \ 00304 WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({if (strcmp(name,"smsevent") == 0) { if (SENSOR_SMSEVENT_IS_RUNNING) return TRUE; SENSOR_SMSEVENT_START; return success; }}) \ 00305 } 00306 00307 #define STOP_ALL_SUPPORTED_SENSORS { \ 00308 WHEN_SENSOR_MARK_SUPPORTED_NOTHING({if (SENSOR_MARK_IS_RUNNING) { SENSOR_MARK_STOP }}) \ 00309 WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({if (SENSOR_TIMER_IS_RUNNING) { SENSOR_TIMER_STOP }}) \ 00310 WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({if (SENSOR_LIGHT_IS_RUNNING) { SENSOR_LIGHT_STOP }}) \ 00311 WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({if (SENSOR_SINGLETAP_IS_RUNNING) { SENSOR_SINGLETAP_STOP }}) \ 00312 WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({if (SENSOR_DOUBLETAP_IS_RUNNING) { SENSOR_DOUBLETAP_STOP }}) \ 00313 WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({if (SENSOR_PROXIMITY_IS_RUNNING) { SENSOR_PROXIMITY_STOP }}) \ 00314 WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({if (SENSOR_MUSIC_IS_RUNNING) { SENSOR_MUSIC_STOP }}) \ 00315 WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({if (SENSOR_HTTPURL_IS_RUNNING) { SENSOR_HTTPURL_STOP }}) \ 00316 WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({if (SENSOR_WEBURL_IS_RUNNING) { SENSOR_WEBURL_STOP }}) \ 00317 WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({if (SENSOR_PROFILE_IS_RUNNING) { SENSOR_PROFILE_STOP }}) \ 00318 WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({if (SENSOR_CELLID_IS_RUNNING) { SENSOR_CELLID_STOP }}) \ 00319 WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({if (SENSOR_BTPROX_IS_RUNNING) { SENSOR_BTPROX_STOP }}) \ 00320 WHEN_SENSOR_GPS_SUPPORTED_NOTHING({if (SENSOR_GPS_IS_RUNNING) { SENSOR_GPS_STOP }}) \ 00321 WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({if (SENSOR_CELLPOS_IS_RUNNING) { SENSOR_CELLPOS_STOP }}) \ 00322 WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({if (SENSOR_APPFOCUS_IS_RUNNING) { SENSOR_APPFOCUS_STOP }}) \ 00323 WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({if (SENSOR_KEYPRESS_IS_RUNNING) { SENSOR_KEYPRESS_STOP }}) \ 00324 WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({if (SENSOR_INACTIVITY_IS_RUNNING) { SENSOR_INACTIVITY_STOP }}) \ 00325 WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({if (SENSOR_INDICATOR_IS_RUNNING) { SENSOR_INDICATOR_STOP }}) \ 00326 WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({if (SENSOR_CALLSTATUS_IS_RUNNING) { SENSOR_CALLSTATUS_STOP }}) \ 00327 WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({if (SENSOR_SMSEVENT_IS_RUNNING) { SENSOR_SMSEVENT_STOP }}) \ 00328 } 00329 00330 #define TRY_START_ALL_SUPPORTED_SENSORS { \ 00331 WHEN_SENSOR_MARK_SUPPORTED_NOTHING({if (!(SENSOR_MARK_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(mark)) { SENSOR_MARK_START; handle_any_sensor_start_failure; }}) \ 00332 WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({if (!(SENSOR_TIMER_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(timer)) { SENSOR_TIMER_START; handle_any_sensor_start_failure; }}) \ 00333 WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({if (!(SENSOR_LIGHT_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(light)) { SENSOR_LIGHT_START; handle_any_sensor_start_failure; }}) \ 00334 WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({if (!(SENSOR_SINGLETAP_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(singletap)) { SENSOR_SINGLETAP_START; handle_any_sensor_start_failure; }}) \ 00335 WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({if (!(SENSOR_DOUBLETAP_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(doubletap)) { SENSOR_DOUBLETAP_START; handle_any_sensor_start_failure; }}) \ 00336 WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({if (!(SENSOR_PROXIMITY_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(proximity)) { SENSOR_PROXIMITY_START; handle_any_sensor_start_failure; }}) \ 00337 WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({if (!(SENSOR_MUSIC_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(music)) { SENSOR_MUSIC_START; handle_any_sensor_start_failure; }}) \ 00338 WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({if (!(SENSOR_HTTPURL_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(httpurl)) { SENSOR_HTTPURL_START; handle_any_sensor_start_failure; }}) \ 00339 WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({if (!(SENSOR_WEBURL_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(weburl)) { SENSOR_WEBURL_START; handle_any_sensor_start_failure; }}) \ 00340 WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({if (!(SENSOR_PROFILE_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(profile)) { SENSOR_PROFILE_START; handle_any_sensor_start_failure; }}) \ 00341 WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({if (!(SENSOR_CELLID_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(cellid)) { SENSOR_CELLID_START; handle_any_sensor_start_failure; }}) \ 00342 WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({if (!(SENSOR_BTPROX_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(btprox)) { SENSOR_BTPROX_START; handle_any_sensor_start_failure; }}) \ 00343 WHEN_SENSOR_GPS_SUPPORTED_NOTHING({if (!(SENSOR_GPS_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(gps)) { SENSOR_GPS_START; handle_any_sensor_start_failure; }}) \ 00344 WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({if (!(SENSOR_CELLPOS_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(cellpos)) { SENSOR_CELLPOS_START; handle_any_sensor_start_failure; }}) \ 00345 WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({if (!(SENSOR_APPFOCUS_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(appfocus)) { SENSOR_APPFOCUS_START; handle_any_sensor_start_failure; }}) \ 00346 WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({if (!(SENSOR_KEYPRESS_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(keypress)) { SENSOR_KEYPRESS_START; handle_any_sensor_start_failure; }}) \ 00347 WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({if (!(SENSOR_INACTIVITY_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(inactivity)) { SENSOR_INACTIVITY_START; handle_any_sensor_start_failure; }}) \ 00348 WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({if (!(SENSOR_INDICATOR_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(indicator)) { SENSOR_INDICATOR_START; handle_any_sensor_start_failure; }}) \ 00349 WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({if (!(SENSOR_CALLSTATUS_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(callstatus)) { SENSOR_CALLSTATUS_START; handle_any_sensor_start_failure; }}) \ 00350 WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({if (!(SENSOR_SMSEVENT_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(smsevent)) { SENSOR_SMSEVENT_START; handle_any_sensor_start_failure; }}) \ 00351 } 00352 00353 #define CREATE_ALL_SENSORS_OR_FAIL { \ 00354 WHEN_SENSOR_MARK_SUPPORTED_NOTHING({SENSOR_MARK_CREATE; if (!success) { goto fail; }}) \ 00355 WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({SENSOR_TIMER_CREATE; if (!success) { goto fail; }}) \ 00356 WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({SENSOR_LIGHT_CREATE; if (!success) { goto fail; }}) \ 00357 WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({SENSOR_SINGLETAP_CREATE; if (!success) { goto fail; }}) \ 00358 WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({SENSOR_DOUBLETAP_CREATE; if (!success) { goto fail; }}) \ 00359 WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({SENSOR_PROXIMITY_CREATE; if (!success) { goto fail; }}) \ 00360 WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({SENSOR_MUSIC_CREATE; if (!success) { goto fail; }}) \ 00361 WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({SENSOR_HTTPURL_CREATE; if (!success) { goto fail; }}) \ 00362 WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({SENSOR_WEBURL_CREATE; if (!success) { goto fail; }}) \ 00363 WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({SENSOR_PROFILE_CREATE; if (!success) { goto fail; }}) \ 00364 WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({SENSOR_CELLID_CREATE; if (!success) { goto fail; }}) \ 00365 WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({SENSOR_BTPROX_CREATE; if (!success) { goto fail; }}) \ 00366 WHEN_SENSOR_GPS_SUPPORTED_NOTHING({SENSOR_GPS_CREATE; if (!success) { goto fail; }}) \ 00367 WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({SENSOR_CELLPOS_CREATE; if (!success) { goto fail; }}) \ 00368 WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({SENSOR_APPFOCUS_CREATE; if (!success) { goto fail; }}) \ 00369 WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({SENSOR_KEYPRESS_CREATE; if (!success) { goto fail; }}) \ 00370 WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({SENSOR_INACTIVITY_CREATE; if (!success) { goto fail; }}) \ 00371 WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({SENSOR_INDICATOR_CREATE; if (!success) { goto fail; }}) \ 00372 WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({SENSOR_CALLSTATUS_CREATE; if (!success) { goto fail; }}) \ 00373 WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({SENSOR_SMSEVENT_CREATE; if (!success) { goto fail; }}) \ 00374 } 00375 00376 #define DESTROY_ALL_SENSORS { \ 00377 WHEN_SENSOR_MARK_SUPPORTED_NOTHING(SENSOR_MARK_DESTROY) \ 00378 WHEN_SENSOR_TIMER_SUPPORTED_NOTHING(SENSOR_TIMER_DESTROY) \ 00379 WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING(SENSOR_LIGHT_DESTROY) \ 00380 WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING(SENSOR_SINGLETAP_DESTROY) \ 00381 WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING(SENSOR_DOUBLETAP_DESTROY) \ 00382 WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING(SENSOR_PROXIMITY_DESTROY) \ 00383 WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING(SENSOR_MUSIC_DESTROY) \ 00384 WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING(SENSOR_HTTPURL_DESTROY) \ 00385 WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING(SENSOR_WEBURL_DESTROY) \ 00386 WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING(SENSOR_PROFILE_DESTROY) \ 00387 WHEN_SENSOR_CELLID_SUPPORTED_NOTHING(SENSOR_CELLID_DESTROY) \ 00388 WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING(SENSOR_BTPROX_DESTROY) \ 00389 WHEN_SENSOR_GPS_SUPPORTED_NOTHING(SENSOR_GPS_DESTROY) \ 00390 WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING(SENSOR_CELLPOS_DESTROY) \ 00391 WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING(SENSOR_APPFOCUS_DESTROY) \ 00392 WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING(SENSOR_KEYPRESS_DESTROY) \ 00393 WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING(SENSOR_INACTIVITY_DESTROY) \ 00394 WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING(SENSOR_INDICATOR_DESTROY) \ 00395 WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING(SENSOR_CALLSTATUS_DESTROY) \ 00396 WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING(SENSOR_SMSEVENT_DESTROY) \ 00397 } 00398 00399 #define RECONFIGURE_MATCHING_SENSOR(key,value) { \ 00400 WHEN_SENSOR_MARK_SUPPORTED_NOTHING({if (strncmp(key, "sensor.mark.", 12) == 0) { (SENSOR_MARK_RECONFIGURE(key, value)); return success; }}) \ 00401 WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({if (strncmp(key, "sensor.timer.", 13) == 0) { (SENSOR_TIMER_RECONFIGURE(key, value)); return success; }}) \ 00402 WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({if (strncmp(key, "sensor.light.", 13) == 0) { (SENSOR_LIGHT_RECONFIGURE(key, value)); return success; }}) \ 00403 WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({if (strncmp(key, "sensor.singletap.", 17) == 0) { (SENSOR_SINGLETAP_RECONFIGURE(key, value)); return success; }}) \ 00404 WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({if (strncmp(key, "sensor.doubletap.", 17) == 0) { (SENSOR_DOUBLETAP_RECONFIGURE(key, value)); return success; }}) \ 00405 WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({if (strncmp(key, "sensor.proximity.", 17) == 0) { (SENSOR_PROXIMITY_RECONFIGURE(key, value)); return success; }}) \ 00406 WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({if (strncmp(key, "sensor.music.", 13) == 0) { (SENSOR_MUSIC_RECONFIGURE(key, value)); return success; }}) \ 00407 WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({if (strncmp(key, "sensor.httpurl.", 15) == 0) { (SENSOR_HTTPURL_RECONFIGURE(key, value)); return success; }}) \ 00408 WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({if (strncmp(key, "sensor.weburl.", 14) == 0) { (SENSOR_WEBURL_RECONFIGURE(key, value)); return success; }}) \ 00409 WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({if (strncmp(key, "sensor.profile.", 15) == 0) { (SENSOR_PROFILE_RECONFIGURE(key, value)); return success; }}) \ 00410 WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({if (strncmp(key, "sensor.cellid.", 14) == 0) { (SENSOR_CELLID_RECONFIGURE(key, value)); return success; }}) \ 00411 WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({if (strncmp(key, "sensor.btprox.", 14) == 0) { (SENSOR_BTPROX_RECONFIGURE(key, value)); return success; }}) \ 00412 WHEN_SENSOR_GPS_SUPPORTED_NOTHING({if (strncmp(key, "sensor.gps.", 11) == 0) { (SENSOR_GPS_RECONFIGURE(key, value)); return success; }}) \ 00413 WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({if (strncmp(key, "sensor.cellpos.", 15) == 0) { (SENSOR_CELLPOS_RECONFIGURE(key, value)); return success; }}) \ 00414 WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({if (strncmp(key, "sensor.appfocus.", 16) == 0) { (SENSOR_APPFOCUS_RECONFIGURE(key, value)); return success; }}) \ 00415 WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({if (strncmp(key, "sensor.keypress.", 16) == 0) { (SENSOR_KEYPRESS_RECONFIGURE(key, value)); return success; }}) \ 00416 WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({if (strncmp(key, "sensor.inactivity.", 18) == 0) { (SENSOR_INACTIVITY_RECONFIGURE(key, value)); return success; }}) \ 00417 WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({if (strncmp(key, "sensor.indicator.", 17) == 0) { (SENSOR_INDICATOR_RECONFIGURE(key, value)); return success; }}) \ 00418 WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({if (strncmp(key, "sensor.callstatus.", 18) == 0) { (SENSOR_CALLSTATUS_RECONFIGURE(key, value)); return success; }}) \ 00419 WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({if (strncmp(key, "sensor.smsevent.", 16) == 0) { (SENSOR_SMSEVENT_RECONFIGURE(key, value)); return success; }}) \ 00420 } 00421 00422 #endif // __SA_SENSOR_LIST_INTEGRATION_H__
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:56 2011 by Doxygen 1.6.1