sa_sensor_tap_qt.hpp

Go to the documentation of this file.
00001 #ifndef __sa_sensor_tap_qt_hpp__
00002 #define __sa_sensor_tap_qt_hpp__
00003 
00004 #include "ac_app_context.h"
00005 
00006 #include <QObject>
00007 
00008 #include <qtapsensor.h>
00009 
00010 QTM_USE_NAMESPACE
00011 
00012 // Note: We cannot say NONSHARABLE_CLASS here as it would confuse "moc".
00013 class Sensor_tap :
00014   public QTapSensor
00015 {
00016   Q_OBJECT
00017 
00018  public:
00019   Sensor_tap(ac_AppContext* aAppContext,
00020        bool aDouble, const char* aName);
00021 
00022  private:
00023   ac_AppContext* iAppContext; // not owned
00024   bool iDouble;
00025   const char* iName; // not owned
00026   
00027  private:
00028   LogDb* GetLogDb() const { return ac_LogDb(iAppContext); }
00029 
00030   const char* Name() const { return iName; }
00031 
00032  private slots:
00033   void handleActiveChanged();
00034   void handleBusyChanged();
00035   void handleReadingChanged();
00036   void handleSensorError(int errCode);
00037 };
00038 
00039 #endif /* __sa_sensor_tap_qt_hpp__ */
00040 
00041 /**
00042 
00043 Copyright 2010 Helsinki Institute for Information Technology (HIIT)
00044 and the authors. All rights reserved.
00045 
00046 Authors: Tero Hasu <tero.hasu@hut.fi>
00047 
00048 Permission is hereby granted, free of charge, to any person
00049 obtaining a copy of this software and associated documentation files
00050 (the "Software"), to deal in the Software without restriction,
00051 including without limitation the rights to use, copy, modify, merge,
00052 publish, distribute, sublicense, and/or sell copies of the Software,
00053 and to permit persons to whom the Software is furnished to do so,
00054 subject to the following conditions:
00055 
00056 The above copyright notice and this permission notice shall be
00057 included in all copies or substantial portions of the Software.
00058 
00059 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00060 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00061 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00062 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
00063 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
00064 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00065 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
00066 SOFTWARE.
00067 
00068  **/

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:56 2011 by Doxygen 1.6.1