qstmgesturelib/qstmstateengineconfig.h
changeset 0 1450b09d0cfd
child 3 0954f5dd2cd0
equal deleted inserted replaced
-1:000000000000 0:1450b09d0cfd
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef QSTMSTATEENGINECONFIG_H_
       
    20 #define QSTMSTATEENGINECONFIG_H_
       
    21 
       
    22 #include "qstmuievent_if.h"
       
    23 #include "qstmtimerinterface.h"
       
    24 #include "qstmstatemachine_v2.h"
       
    25 
       
    26 
       
    27 namespace qstmUiEventEngine
       
    28 {
       
    29 class QStm_UiEventSender;
       
    30 
       
    31 
       
    32 class QStm_StateEngineConfiguration : public QObject
       
    33 {
       
    34 public:
       
    35 	QStm_StateEngineConfiguration() ;
       
    36     void construct();
       
    37     ~QStm_StateEngineConfiguration() ;
       
    38 
       
    39     void setTouchTimeArea(const long fingersize_mm) ;
       
    40     void setTouchArea(const long fingersize_mm) ;
       
    41     QStm_AreaShape getTouchAreaShape() ;
       
    42     void setTouchAreaShape(const QStm_AreaShape shape) ;
       
    43     unsigned int getTouchTimeout() ;
       
    44     void setTouchTimeout(unsigned int) ;
       
    45     void setHoldArea(const long fingersize_mm) ;
       
    46     QStm_AreaShape getHoldAreaShape() ;
       
    47     void setHoldAreaShape(const QStm_AreaShape shape) ;
       
    48     unsigned int getHoldTimeout() ;
       
    49     void setHoldTimeout(unsigned int a) ;
       
    50     unsigned int getTouchSuppressTimeout() ;
       
    51     void setTouchSuppressTimeout(unsigned int a) ;
       
    52     unsigned int getMoveSuppressTimeout() ;
       
    53     void setMoveSuppressTimeout(unsigned int a) ;
       
    54     bool addUiEventObserver(QStm_UiEventObserverIf* observer) ;
       
    55     bool removeUiEventObserver(QStm_UiEventObserverIf* observer) ;
       
    56     void enableLogging(bool a) ;
       
    57     void setMoveTolerance(long fingersize_mm) ;
       
    58     QPoint getMoveTolerance() { return m_moveTolerance; }
       
    59 
       
    60 private:
       
    61     void setTolerance(long fingersize_mm, QPoint& tolerance, QStm_AreaShape shape) ;
       
    62 
       
    63 public:
       
    64     QStm_UiEventSender* m_uiEventSender ;
       
    65 
       
    66     QStm_AreaShape m_touchAreaShape ;
       
    67     QStm_AreaShape m_holdAreaShape ;
       
    68     bool           m_enableLogging ;
       
    69     QPoint m_touchTimeTolerance ;
       
    70     QPoint m_touchTolerance ;
       
    71     QPoint m_holdTolerance ;
       
    72     QPoint m_moveTolerance ;
       
    73     int  m_touchTimerLimit ;
       
    74     int  m_holdTimerLimit ;
       
    75     int  m_suppressTimerLimit ;
       
    76     int  m_moveSuppressTimerLimit ;
       
    77 
       
    78 
       
    79 };
       
    80 
       
    81 } // namespace qstmUiEventEngine
       
    82 
       
    83 #endif /* QSTMSTATEENGINECONFIG_H_ */