00001 #ifndef __sa_sensor_light_qt_hpp__ 00002 #define __sa_sensor_light_qt_hpp__ 00003 00004 #include "ac_app_context.h" 00005 #include "sa_qt_sensors.hpp" 00006 00007 QTM_USE_NAMESPACE 00008 00009 // Note: We cannot say NONSHARABLE_CLASS here as it would confuse "moc". 00010 class Sensor_light : 00011 public ClQtEventSensorBase 00012 { 00013 Q_OBJECT 00014 00015 public: 00016 Sensor_light(ac_AppContext* aAppContext); 00017 00018 private: 00019 virtual const char* Name() const; 00020 00021 private: 00022 virtual void handleReadingChanged(); 00023 }; 00024 00025 #endif /* __sa_sensor_light_qt_hpp__ */ 00026 00027 /** 00028 00029 Copyright 2010 Helsinki Institute for Information Technology (HIIT) 00030 and the authors. All rights reserved. 00031 00032 Authors: Tero Hasu <tero.hasu@hut.fi> 00033 00034 Permission is hereby granted, free of charge, to any person 00035 obtaining a copy of this software and associated documentation files 00036 (the "Software"), to deal in the Software without restriction, 00037 including without limitation the rights to use, copy, modify, merge, 00038 publish, distribute, sublicense, and/or sell copies of the Software, 00039 and to permit persons to whom the Software is furnished to do so, 00040 subject to the following conditions: 00041 00042 The above copyright notice and this permission notice shall be 00043 included in all copies or substantial portions of the Software. 00044 00045 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00046 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00047 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00048 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00049 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00050 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00051 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00052 SOFTWARE. 00053 00054 **/
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:56 2011 by Doxygen 1.6.1