00001 #ifndef __sa_sensor_proximity_api_h__ 00002 #define __sa_sensor_proximity_api_h__ 00003 00004 #include "ac_app_context.h" 00005 #include "application_config.h" 00006 00007 class Sensor_proximity; 00008 00009 Sensor_proximity* new_Sensor_proximity(ac_AppContext* aAppContext); 00010 00011 void delete_Sensor_proximity(Sensor_proximity* obj); 00012 00013 // -------------------------------------------------- 00014 // sensor array integration 00015 // -------------------------------------------------- 00016 00017 #if defined(SA_ARRAY_INTEGRATION) 00018 #if __PROXIMITY_ENABLED__ 00019 #define DECLARE_SENSOR_proximity Sensor_proximity* iSensor_proximity 00020 #define SENSOR_PROXIMITY_DESTROY delete_Sensor_proximity(self->iSensor_proximity); self->iSensor_proximity = NULL; 00021 #define SENSOR_PROXIMITY_CREATE 00022 #define SENSOR_PROXIMITY_START sa_typical_qt_sensor_create(self->iSensor_proximity = new_Sensor_proximity(self->ac), "proximity sensor initialization") 00023 #define SENSOR_PROXIMITY_STOP SENSOR_PROXIMITY_DESTROY 00024 #define SENSOR_PROXIMITY_IS_RUNNING (self->iSensor_proximity != NULL) 00025 #define SENSOR_PROXIMITY_RECONFIGURE(key, value) sa_reconfigure_ignore_all_keys 00026 #else 00027 #define DECLARE_SENSOR_proximity 00028 #endif 00029 #endif /* SA_ARRAY_INTEGRATION */ 00030 00031 #endif /* __sa_sensor_proximity_api_h__ */ 00032 00033 /** 00034 00035 Copyright 2011 Helsinki Institute for Information Technology (HIIT) 00036 and the authors. All rights reserved. 00037 00038 Authors: Tero Hasu <tero.hasu@hut.fi> 00039 00040 Permission is hereby granted, free of charge, to any person 00041 obtaining a copy of this software and associated documentation files 00042 (the "Software"), to deal in the Software without restriction, 00043 including without limitation the rights to use, copy, modify, merge, 00044 publish, distribute, sublicense, and/or sell copies of the Software, 00045 and to permit persons to whom the Software is furnished to do so, 00046 subject to the following conditions: 00047 00048 The above copyright notice and this permission notice shall be 00049 included in all copies or substantial portions of the Software. 00050 00051 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00052 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00053 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00054 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00055 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00056 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00057 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00058 SOFTWARE. 00059 00060 **/
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:56 2011 by Doxygen 1.6.1