telutils/keysequencerecognitionservice/inc/keysequencehandler.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     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: Base class for key sequence handlers.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef KEYSEQUENCEHANDLER_H
       
    19 #define KEYSEQUENCEHANDLER_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QString>
       
    23 
       
    24 class KeySequenceHandler : public QObject
       
    25 {
       
    26     Q_OBJECT
       
    27     
       
    28 public:
       
    29 
       
    30     KeySequenceHandler(QObject *parent = 0);
       
    31     ~KeySequenceHandler();
       
    32     
       
    33     QString keySequenceValidator() const;
       
    34     virtual bool executeKeySequence(const QString &keySequence) = 0;
       
    35 
       
    36 protected:
       
    37     void setKeySequenceValidator(const QString &validator);
       
    38     
       
    39 private:
       
    40     QString m_keySequenceValidator;
       
    41 };
       
    42 
       
    43 #endif // KEYSEQUENCEHANDLER_H