Go to the source code of this file.
#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} |
Definition at line 213 of file sa_sensor_list_integration.h.
Referenced by f_all_sensor_names().
#define CREATE_ALL_SENSORS_OR_FAIL |
{ \ WHEN_SENSOR_MARK_SUPPORTED_NOTHING({SENSOR_MARK_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({SENSOR_TIMER_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({SENSOR_LIGHT_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({SENSOR_SINGLETAP_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({SENSOR_DOUBLETAP_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({SENSOR_PROXIMITY_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({SENSOR_MUSIC_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({SENSOR_HTTPURL_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({SENSOR_WEBURL_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({SENSOR_PROFILE_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({SENSOR_CELLID_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({SENSOR_BTPROX_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_GPS_SUPPORTED_NOTHING({SENSOR_GPS_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({SENSOR_CELLPOS_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({SENSOR_APPFOCUS_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({SENSOR_KEYPRESS_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({SENSOR_INACTIVITY_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({SENSOR_INDICATOR_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({SENSOR_CALLSTATUS_CREATE; if (!success) { goto fail; }}) \ WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({SENSOR_SMSEVENT_CREATE; if (!success) { goto fail; }}) \ }
Definition at line 353 of file sa_sensor_list_integration.h.
Referenced by sa_Array_new().
#define DESTROY_ALL_SENSORS |
{ \ WHEN_SENSOR_MARK_SUPPORTED_NOTHING(SENSOR_MARK_DESTROY) \ WHEN_SENSOR_TIMER_SUPPORTED_NOTHING(SENSOR_TIMER_DESTROY) \ WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING(SENSOR_LIGHT_DESTROY) \ WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING(SENSOR_SINGLETAP_DESTROY) \ WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING(SENSOR_DOUBLETAP_DESTROY) \ WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING(SENSOR_PROXIMITY_DESTROY) \ WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING(SENSOR_MUSIC_DESTROY) \ WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING(SENSOR_HTTPURL_DESTROY) \ WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING(SENSOR_WEBURL_DESTROY) \ WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING(SENSOR_PROFILE_DESTROY) \ WHEN_SENSOR_CELLID_SUPPORTED_NOTHING(SENSOR_CELLID_DESTROY) \ WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING(SENSOR_BTPROX_DESTROY) \ WHEN_SENSOR_GPS_SUPPORTED_NOTHING(SENSOR_GPS_DESTROY) \ WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING(SENSOR_CELLPOS_DESTROY) \ WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING(SENSOR_APPFOCUS_DESTROY) \ WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING(SENSOR_KEYPRESS_DESTROY) \ WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING(SENSOR_INACTIVITY_DESTROY) \ WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING(SENSOR_INDICATOR_DESTROY) \ WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING(SENSOR_CALLSTATUS_DESTROY) \ WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING(SENSOR_SMSEVENT_DESTROY) \ }
Definition at line 376 of file sa_sensor_list_integration.h.
Referenced by sa_Array_destroy().
#define NUM_ALL_SENSORS 20 |
Definition at line 210 of file sa_sensor_list_integration.h.
Referenced by f_all_sensor_names().
#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) |
Definition at line 211 of file sa_sensor_list_integration.h.
#define RECONFIGURE_MATCHING_SENSOR | ( | key, | |||
value | ) |
{ \ WHEN_SENSOR_MARK_SUPPORTED_NOTHING({if (strncmp(key, "sensor.mark.", 12) == 0) { (SENSOR_MARK_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({if (strncmp(key, "sensor.timer.", 13) == 0) { (SENSOR_TIMER_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({if (strncmp(key, "sensor.light.", 13) == 0) { (SENSOR_LIGHT_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({if (strncmp(key, "sensor.singletap.", 17) == 0) { (SENSOR_SINGLETAP_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({if (strncmp(key, "sensor.doubletap.", 17) == 0) { (SENSOR_DOUBLETAP_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({if (strncmp(key, "sensor.proximity.", 17) == 0) { (SENSOR_PROXIMITY_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({if (strncmp(key, "sensor.music.", 13) == 0) { (SENSOR_MUSIC_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({if (strncmp(key, "sensor.httpurl.", 15) == 0) { (SENSOR_HTTPURL_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({if (strncmp(key, "sensor.weburl.", 14) == 0) { (SENSOR_WEBURL_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({if (strncmp(key, "sensor.profile.", 15) == 0) { (SENSOR_PROFILE_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({if (strncmp(key, "sensor.cellid.", 14) == 0) { (SENSOR_CELLID_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({if (strncmp(key, "sensor.btprox.", 14) == 0) { (SENSOR_BTPROX_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_GPS_SUPPORTED_NOTHING({if (strncmp(key, "sensor.gps.", 11) == 0) { (SENSOR_GPS_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({if (strncmp(key, "sensor.cellpos.", 15) == 0) { (SENSOR_CELLPOS_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({if (strncmp(key, "sensor.appfocus.", 16) == 0) { (SENSOR_APPFOCUS_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({if (strncmp(key, "sensor.keypress.", 16) == 0) { (SENSOR_KEYPRESS_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({if (strncmp(key, "sensor.inactivity.", 18) == 0) { (SENSOR_INACTIVITY_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({if (strncmp(key, "sensor.indicator.", 17) == 0) { (SENSOR_INDICATOR_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({if (strncmp(key, "sensor.callstatus.", 18) == 0) { (SENSOR_CALLSTATUS_RECONFIGURE(key, value)); return success; }}) \ WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({if (strncmp(key, "sensor.smsevent.", 16) == 0) { (SENSOR_SMSEVENT_RECONFIGURE(key, value)); return success; }}) \ }
Definition at line 399 of file sa_sensor_list_integration.h.
Referenced by sa_Array_reconfigure().
#define RETURN_WHETHER_NAMED_SENSOR_IS_RUNNING | ( | name | ) |
{ \ WHEN_SENSOR_MARK_SUPPORTED_NOTHING({if (strcmp(name,"mark") == 0) { return (SENSOR_MARK_IS_RUNNING); }}) \ WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({if (strcmp(name,"timer") == 0) { return (SENSOR_TIMER_IS_RUNNING); }}) \ WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({if (strcmp(name,"light") == 0) { return (SENSOR_LIGHT_IS_RUNNING); }}) \ WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({if (strcmp(name,"singletap") == 0) { return (SENSOR_SINGLETAP_IS_RUNNING); }}) \ WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({if (strcmp(name,"doubletap") == 0) { return (SENSOR_DOUBLETAP_IS_RUNNING); }}) \ WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({if (strcmp(name,"proximity") == 0) { return (SENSOR_PROXIMITY_IS_RUNNING); }}) \ WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({if (strcmp(name,"music") == 0) { return (SENSOR_MUSIC_IS_RUNNING); }}) \ WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({if (strcmp(name,"httpurl") == 0) { return (SENSOR_HTTPURL_IS_RUNNING); }}) \ WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({if (strcmp(name,"weburl") == 0) { return (SENSOR_WEBURL_IS_RUNNING); }}) \ WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({if (strcmp(name,"profile") == 0) { return (SENSOR_PROFILE_IS_RUNNING); }}) \ WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({if (strcmp(name,"cellid") == 0) { return (SENSOR_CELLID_IS_RUNNING); }}) \ WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({if (strcmp(name,"btprox") == 0) { return (SENSOR_BTPROX_IS_RUNNING); }}) \ WHEN_SENSOR_GPS_SUPPORTED_NOTHING({if (strcmp(name,"gps") == 0) { return (SENSOR_GPS_IS_RUNNING); }}) \ WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({if (strcmp(name,"cellpos") == 0) { return (SENSOR_CELLPOS_IS_RUNNING); }}) \ WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({if (strcmp(name,"appfocus") == 0) { return (SENSOR_APPFOCUS_IS_RUNNING); }}) \ WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({if (strcmp(name,"keypress") == 0) { return (SENSOR_KEYPRESS_IS_RUNNING); }}) \ WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({if (strcmp(name,"inactivity") == 0) { return (SENSOR_INACTIVITY_IS_RUNNING); }}) \ WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({if (strcmp(name,"indicator") == 0) { return (SENSOR_INDICATOR_IS_RUNNING); }}) \ WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({if (strcmp(name,"callstatus") == 0) { return (SENSOR_CALLSTATUS_IS_RUNNING); }}) \ WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({if (strcmp(name,"smsevent") == 0) { return (SENSOR_SMSEVENT_IS_RUNNING); }}) \ }
Definition at line 238 of file sa_sensor_list_integration.h.
Referenced by sa_Array_sensor_is_running().
#define RETURN_WHETHER_NAMED_SENSOR_IS_SUPPORTED | ( | name | ) |
{ \ if (strcmp(name,"mark") == 0) { return SENSOR_MARK_IS_SUPPORTED; } \ if (strcmp(name,"timer") == 0) { return SENSOR_TIMER_IS_SUPPORTED; } \ if (strcmp(name,"light") == 0) { return SENSOR_LIGHT_IS_SUPPORTED; } \ if (strcmp(name,"singletap") == 0) { return SENSOR_SINGLETAP_IS_SUPPORTED; } \ if (strcmp(name,"doubletap") == 0) { return SENSOR_DOUBLETAP_IS_SUPPORTED; } \ if (strcmp(name,"proximity") == 0) { return SENSOR_PROXIMITY_IS_SUPPORTED; } \ if (strcmp(name,"music") == 0) { return SENSOR_MUSIC_IS_SUPPORTED; } \ if (strcmp(name,"httpurl") == 0) { return SENSOR_HTTPURL_IS_SUPPORTED; } \ if (strcmp(name,"weburl") == 0) { return SENSOR_WEBURL_IS_SUPPORTED; } \ if (strcmp(name,"profile") == 0) { return SENSOR_PROFILE_IS_SUPPORTED; } \ if (strcmp(name,"cellid") == 0) { return SENSOR_CELLID_IS_SUPPORTED; } \ if (strcmp(name,"btprox") == 0) { return SENSOR_BTPROX_IS_SUPPORTED; } \ if (strcmp(name,"gps") == 0) { return SENSOR_GPS_IS_SUPPORTED; } \ if (strcmp(name,"cellpos") == 0) { return SENSOR_CELLPOS_IS_SUPPORTED; } \ if (strcmp(name,"appfocus") == 0) { return SENSOR_APPFOCUS_IS_SUPPORTED; } \ if (strcmp(name,"keypress") == 0) { return SENSOR_KEYPRESS_IS_SUPPORTED; } \ if (strcmp(name,"inactivity") == 0) { return SENSOR_INACTIVITY_IS_SUPPORTED; } \ if (strcmp(name,"indicator") == 0) { return SENSOR_INDICATOR_IS_SUPPORTED; } \ if (strcmp(name,"callstatus") == 0) { return SENSOR_CALLSTATUS_IS_SUPPORTED; } \ if (strcmp(name,"smsevent") == 0) { return SENSOR_SMSEVENT_IS_SUPPORTED; } \ }
Definition at line 215 of file sa_sensor_list_integration.h.
Referenced by sa_sensor_is_supported().
#define SENSOR_APPFOCUS_IS_SUPPORTED 1 |
Definition at line 151 of file sa_sensor_list_integration.h.
#define SENSOR_BTPROX_IS_SUPPORTED 1 |
Definition at line 121 of file sa_sensor_list_integration.h.
#define SENSOR_CALLSTATUS_IS_SUPPORTED 1 |
Definition at line 191 of file sa_sensor_list_integration.h.
#define SENSOR_CELLID_IS_SUPPORTED 1 |
Definition at line 111 of file sa_sensor_list_integration.h.
#define SENSOR_CELLPOS_IS_SUPPORTED 1 |
Definition at line 141 of file sa_sensor_list_integration.h.
#define SENSOR_DOUBLETAP_IS_SUPPORTED 1 |
Definition at line 51 of file sa_sensor_list_integration.h.
#define SENSOR_GPS_IS_SUPPORTED 0 |
Definition at line 135 of file sa_sensor_list_integration.h.
#define SENSOR_HTTPURL_IS_SUPPORTED 1 |
Definition at line 81 of file sa_sensor_list_integration.h.
#define SENSOR_INACTIVITY_IS_SUPPORTED 1 |
Definition at line 171 of file sa_sensor_list_integration.h.
#define SENSOR_INDICATOR_IS_SUPPORTED 1 |
Definition at line 181 of file sa_sensor_list_integration.h.
#define SENSOR_KEYPRESS_IS_SUPPORTED 1 |
Definition at line 161 of file sa_sensor_list_integration.h.
#define SENSOR_LIGHT_IS_SUPPORTED 1 |
Definition at line 31 of file sa_sensor_list_integration.h.
#define SENSOR_MARK_IS_SUPPORTED 1 |
Definition at line 11 of file sa_sensor_list_integration.h.
#define SENSOR_MUSIC_IS_SUPPORTED 1 |
Definition at line 71 of file sa_sensor_list_integration.h.
#define SENSOR_PROFILE_IS_SUPPORTED 1 |
Definition at line 101 of file sa_sensor_list_integration.h.
#define SENSOR_PROXIMITY_IS_SUPPORTED 1 |
Definition at line 61 of file sa_sensor_list_integration.h.
#define SENSOR_SINGLETAP_IS_SUPPORTED 0 |
Definition at line 45 of file sa_sensor_list_integration.h.
#define SENSOR_SMSEVENT_IS_SUPPORTED 1 |
Definition at line 201 of file sa_sensor_list_integration.h.
#define SENSOR_TIMER_IS_SUPPORTED 0 |
Definition at line 25 of file sa_sensor_list_integration.h.
#define SENSOR_WEBURL_IS_SUPPORTED 0 |
Definition at line 95 of file sa_sensor_list_integration.h.
#define START_NAMED_SENSOR_OR_FAIL | ( | name | ) |
{ \ WHEN_SENSOR_MARK_SUPPORTED_NOTHING({if (strcmp(name,"mark") == 0) { if (SENSOR_MARK_IS_RUNNING) return TRUE; SENSOR_MARK_START; return success; }}) \ WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({if (strcmp(name,"timer") == 0) { if (SENSOR_TIMER_IS_RUNNING) return TRUE; SENSOR_TIMER_START; return success; }}) \ WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({if (strcmp(name,"light") == 0) { if (SENSOR_LIGHT_IS_RUNNING) return TRUE; SENSOR_LIGHT_START; return success; }}) \ WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({if (strcmp(name,"singletap") == 0) { if (SENSOR_SINGLETAP_IS_RUNNING) return TRUE; SENSOR_SINGLETAP_START; return success; }}) \ WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({if (strcmp(name,"doubletap") == 0) { if (SENSOR_DOUBLETAP_IS_RUNNING) return TRUE; SENSOR_DOUBLETAP_START; return success; }}) \ WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({if (strcmp(name,"proximity") == 0) { if (SENSOR_PROXIMITY_IS_RUNNING) return TRUE; SENSOR_PROXIMITY_START; return success; }}) \ WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({if (strcmp(name,"music") == 0) { if (SENSOR_MUSIC_IS_RUNNING) return TRUE; SENSOR_MUSIC_START; return success; }}) \ WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({if (strcmp(name,"httpurl") == 0) { if (SENSOR_HTTPURL_IS_RUNNING) return TRUE; SENSOR_HTTPURL_START; return success; }}) \ WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({if (strcmp(name,"weburl") == 0) { if (SENSOR_WEBURL_IS_RUNNING) return TRUE; SENSOR_WEBURL_START; return success; }}) \ WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({if (strcmp(name,"profile") == 0) { if (SENSOR_PROFILE_IS_RUNNING) return TRUE; SENSOR_PROFILE_START; return success; }}) \ WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({if (strcmp(name,"cellid") == 0) { if (SENSOR_CELLID_IS_RUNNING) return TRUE; SENSOR_CELLID_START; return success; }}) \ WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({if (strcmp(name,"btprox") == 0) { if (SENSOR_BTPROX_IS_RUNNING) return TRUE; SENSOR_BTPROX_START; return success; }}) \ WHEN_SENSOR_GPS_SUPPORTED_NOTHING({if (strcmp(name,"gps") == 0) { if (SENSOR_GPS_IS_RUNNING) return TRUE; SENSOR_GPS_START; return success; }}) \ WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({if (strcmp(name,"cellpos") == 0) { if (SENSOR_CELLPOS_IS_RUNNING) return TRUE; SENSOR_CELLPOS_START; return success; }}) \ WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({if (strcmp(name,"appfocus") == 0) { if (SENSOR_APPFOCUS_IS_RUNNING) return TRUE; SENSOR_APPFOCUS_START; return success; }}) \ WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({if (strcmp(name,"keypress") == 0) { if (SENSOR_KEYPRESS_IS_RUNNING) return TRUE; SENSOR_KEYPRESS_START; return success; }}) \ WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({if (strcmp(name,"inactivity") == 0) { if (SENSOR_INACTIVITY_IS_RUNNING) return TRUE; SENSOR_INACTIVITY_START; return success; }}) \ WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({if (strcmp(name,"indicator") == 0) { if (SENSOR_INDICATOR_IS_RUNNING) return TRUE; SENSOR_INDICATOR_START; return success; }}) \ WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({if (strcmp(name,"callstatus") == 0) { if (SENSOR_CALLSTATUS_IS_RUNNING) return TRUE; SENSOR_CALLSTATUS_START; return success; }}) \ WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({if (strcmp(name,"smsevent") == 0) { if (SENSOR_SMSEVENT_IS_RUNNING) return TRUE; SENSOR_SMSEVENT_START; return success; }}) \ }
Definition at line 284 of file sa_sensor_list_integration.h.
Referenced by sa_Array_sensor_start().
#define STOP_ALL_SUPPORTED_SENSORS |
{ \ WHEN_SENSOR_MARK_SUPPORTED_NOTHING({if (SENSOR_MARK_IS_RUNNING) { SENSOR_MARK_STOP }}) \ WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({if (SENSOR_TIMER_IS_RUNNING) { SENSOR_TIMER_STOP }}) \ WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({if (SENSOR_LIGHT_IS_RUNNING) { SENSOR_LIGHT_STOP }}) \ WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({if (SENSOR_SINGLETAP_IS_RUNNING) { SENSOR_SINGLETAP_STOP }}) \ WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({if (SENSOR_DOUBLETAP_IS_RUNNING) { SENSOR_DOUBLETAP_STOP }}) \ WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({if (SENSOR_PROXIMITY_IS_RUNNING) { SENSOR_PROXIMITY_STOP }}) \ WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({if (SENSOR_MUSIC_IS_RUNNING) { SENSOR_MUSIC_STOP }}) \ WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({if (SENSOR_HTTPURL_IS_RUNNING) { SENSOR_HTTPURL_STOP }}) \ WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({if (SENSOR_WEBURL_IS_RUNNING) { SENSOR_WEBURL_STOP }}) \ WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({if (SENSOR_PROFILE_IS_RUNNING) { SENSOR_PROFILE_STOP }}) \ WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({if (SENSOR_CELLID_IS_RUNNING) { SENSOR_CELLID_STOP }}) \ WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({if (SENSOR_BTPROX_IS_RUNNING) { SENSOR_BTPROX_STOP }}) \ WHEN_SENSOR_GPS_SUPPORTED_NOTHING({if (SENSOR_GPS_IS_RUNNING) { SENSOR_GPS_STOP }}) \ WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({if (SENSOR_CELLPOS_IS_RUNNING) { SENSOR_CELLPOS_STOP }}) \ WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({if (SENSOR_APPFOCUS_IS_RUNNING) { SENSOR_APPFOCUS_STOP }}) \ WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({if (SENSOR_KEYPRESS_IS_RUNNING) { SENSOR_KEYPRESS_STOP }}) \ WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({if (SENSOR_INACTIVITY_IS_RUNNING) { SENSOR_INACTIVITY_STOP }}) \ WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({if (SENSOR_INDICATOR_IS_RUNNING) { SENSOR_INDICATOR_STOP }}) \ WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({if (SENSOR_CALLSTATUS_IS_RUNNING) { SENSOR_CALLSTATUS_STOP }}) \ WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({if (SENSOR_SMSEVENT_IS_RUNNING) { SENSOR_SMSEVENT_STOP }}) \ }
Definition at line 307 of file sa_sensor_list_integration.h.
Referenced by sa_Array_stop().
#define STOP_NAMED_SENSOR | ( | name | ) |
{ \ WHEN_SENSOR_MARK_SUPPORTED_NOTHING({if (strcmp(name,"mark") == 0) { if (SENSOR_MARK_IS_RUNNING) { SENSOR_MARK_STOP; } return; }}) \ WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({if (strcmp(name,"timer") == 0) { if (SENSOR_TIMER_IS_RUNNING) { SENSOR_TIMER_STOP; } return; }}) \ WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({if (strcmp(name,"light") == 0) { if (SENSOR_LIGHT_IS_RUNNING) { SENSOR_LIGHT_STOP; } return; }}) \ WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({if (strcmp(name,"singletap") == 0) { if (SENSOR_SINGLETAP_IS_RUNNING) { SENSOR_SINGLETAP_STOP; } return; }}) \ WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({if (strcmp(name,"doubletap") == 0) { if (SENSOR_DOUBLETAP_IS_RUNNING) { SENSOR_DOUBLETAP_STOP; } return; }}) \ WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({if (strcmp(name,"proximity") == 0) { if (SENSOR_PROXIMITY_IS_RUNNING) { SENSOR_PROXIMITY_STOP; } return; }}) \ WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({if (strcmp(name,"music") == 0) { if (SENSOR_MUSIC_IS_RUNNING) { SENSOR_MUSIC_STOP; } return; }}) \ WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({if (strcmp(name,"httpurl") == 0) { if (SENSOR_HTTPURL_IS_RUNNING) { SENSOR_HTTPURL_STOP; } return; }}) \ WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({if (strcmp(name,"weburl") == 0) { if (SENSOR_WEBURL_IS_RUNNING) { SENSOR_WEBURL_STOP; } return; }}) \ WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({if (strcmp(name,"profile") == 0) { if (SENSOR_PROFILE_IS_RUNNING) { SENSOR_PROFILE_STOP; } return; }}) \ WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({if (strcmp(name,"cellid") == 0) { if (SENSOR_CELLID_IS_RUNNING) { SENSOR_CELLID_STOP; } return; }}) \ WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({if (strcmp(name,"btprox") == 0) { if (SENSOR_BTPROX_IS_RUNNING) { SENSOR_BTPROX_STOP; } return; }}) \ WHEN_SENSOR_GPS_SUPPORTED_NOTHING({if (strcmp(name,"gps") == 0) { if (SENSOR_GPS_IS_RUNNING) { SENSOR_GPS_STOP; } return; }}) \ WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({if (strcmp(name,"cellpos") == 0) { if (SENSOR_CELLPOS_IS_RUNNING) { SENSOR_CELLPOS_STOP; } return; }}) \ WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({if (strcmp(name,"appfocus") == 0) { if (SENSOR_APPFOCUS_IS_RUNNING) { SENSOR_APPFOCUS_STOP; } return; }}) \ WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({if (strcmp(name,"keypress") == 0) { if (SENSOR_KEYPRESS_IS_RUNNING) { SENSOR_KEYPRESS_STOP; } return; }}) \ WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({if (strcmp(name,"inactivity") == 0) { if (SENSOR_INACTIVITY_IS_RUNNING) { SENSOR_INACTIVITY_STOP; } return; }}) \ WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({if (strcmp(name,"indicator") == 0) { if (SENSOR_INDICATOR_IS_RUNNING) { SENSOR_INDICATOR_STOP; } return; }}) \ WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({if (strcmp(name,"callstatus") == 0) { if (SENSOR_CALLSTATUS_IS_RUNNING) { SENSOR_CALLSTATUS_STOP; } return; }}) \ WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({if (strcmp(name,"smsevent") == 0) { if (SENSOR_SMSEVENT_IS_RUNNING) { SENSOR_SMSEVENT_STOP; } return; }}) \ }
Definition at line 261 of file sa_sensor_list_integration.h.
Referenced by sa_Array_sensor_stop().
#define TRY_START_ALL_SUPPORTED_SENSORS |
{ \ WHEN_SENSOR_MARK_SUPPORTED_NOTHING({if (!(SENSOR_MARK_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(mark)) { SENSOR_MARK_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_TIMER_SUPPORTED_NOTHING({if (!(SENSOR_TIMER_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(timer)) { SENSOR_TIMER_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING({if (!(SENSOR_LIGHT_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(light)) { SENSOR_LIGHT_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING({if (!(SENSOR_SINGLETAP_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(singletap)) { SENSOR_SINGLETAP_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING({if (!(SENSOR_DOUBLETAP_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(doubletap)) { SENSOR_DOUBLETAP_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING({if (!(SENSOR_PROXIMITY_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(proximity)) { SENSOR_PROXIMITY_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING({if (!(SENSOR_MUSIC_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(music)) { SENSOR_MUSIC_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING({if (!(SENSOR_HTTPURL_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(httpurl)) { SENSOR_HTTPURL_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING({if (!(SENSOR_WEBURL_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(weburl)) { SENSOR_WEBURL_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING({if (!(SENSOR_PROFILE_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(profile)) { SENSOR_PROFILE_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_CELLID_SUPPORTED_NOTHING({if (!(SENSOR_CELLID_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(cellid)) { SENSOR_CELLID_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING({if (!(SENSOR_BTPROX_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(btprox)) { SENSOR_BTPROX_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_GPS_SUPPORTED_NOTHING({if (!(SENSOR_GPS_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(gps)) { SENSOR_GPS_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING({if (!(SENSOR_CELLPOS_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(cellpos)) { SENSOR_CELLPOS_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING({if (!(SENSOR_APPFOCUS_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(appfocus)) { SENSOR_APPFOCUS_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING({if (!(SENSOR_KEYPRESS_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(keypress)) { SENSOR_KEYPRESS_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING({if (!(SENSOR_INACTIVITY_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(inactivity)) { SENSOR_INACTIVITY_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING({if (!(SENSOR_INDICATOR_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(indicator)) { SENSOR_INDICATOR_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING({if (!(SENSOR_CALLSTATUS_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(callstatus)) { SENSOR_CALLSTATUS_START; handle_any_sensor_start_failure; }}) \ WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING({if (!(SENSOR_SMSEVENT_IS_RUNNING) && SENSOR_AUTOSTART_IS_ALLOWED(smsevent)) { SENSOR_SMSEVENT_START; handle_any_sensor_start_failure; }}) \ }
Definition at line 330 of file sa_sensor_list_integration.h.
Referenced by sa_Array_start().
#define WHEN_SENSOR_APPFOCUS_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 152 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_APPFOCUS_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 153 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_BTPROX_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 122 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_BTPROX_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 123 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_CALLSTATUS_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 192 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_CALLSTATUS_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 193 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_CELLID_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 112 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_CELLID_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 113 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_CELLPOS_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 142 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_CELLPOS_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 143 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_DOUBLETAP_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 52 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_DOUBLETAP_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 53 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_GPS_SUPPORTED_BLOCK | ( | x | ) | {} |
Definition at line 136 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_GPS_SUPPORTED_NOTHING | ( | x | ) |
Definition at line 137 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_HTTPURL_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 82 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_HTTPURL_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 83 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_INACTIVITY_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 172 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_INACTIVITY_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 173 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_INDICATOR_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 182 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_INDICATOR_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 183 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_KEYPRESS_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 162 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_KEYPRESS_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 163 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_LIGHT_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 32 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_LIGHT_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 33 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_MARK_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 12 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_MARK_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 13 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_MUSIC_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 72 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_MUSIC_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 73 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_PROFILE_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 102 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_PROFILE_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 103 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_PROXIMITY_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 62 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_PROXIMITY_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 63 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_SINGLETAP_SUPPORTED_BLOCK | ( | x | ) | {} |
Definition at line 46 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_SINGLETAP_SUPPORTED_NOTHING | ( | x | ) |
Definition at line 47 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_SMSEVENT_SUPPORTED_BLOCK | ( | x | ) | { x ; } |
Definition at line 202 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_SMSEVENT_SUPPORTED_NOTHING | ( | x | ) | x |
Definition at line 203 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_TIMER_SUPPORTED_BLOCK | ( | x | ) | {} |
Definition at line 26 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_TIMER_SUPPORTED_NOTHING | ( | x | ) |
Definition at line 27 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_WEBURL_SUPPORTED_BLOCK | ( | x | ) | {} |
Definition at line 96 of file sa_sensor_list_integration.h.
#define WHEN_SENSOR_WEBURL_SUPPORTED_NOTHING | ( | x | ) |
Definition at line 97 of file sa_sensor_list_integration.h.
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:50:01 2011 by Doxygen 1.6.1