phoneengine/parserrecognizer/inc/parserrecognizer.h
changeset 21 92ab7f8d0eab
child 30 ebdbd102c78a
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
       
     1 /*!
       
     2 * Copyright (c) 2009 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:  Recognizes the parser messages that needs to be notified to the world
       
    15 *               using QtHighway.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef PARSERRECOGNIZER_H
       
    20 #define PARSERRECOGNIZER_H
       
    21 
       
    22 #include <QObject>
       
    23 
       
    24 #ifdef BUILD_PARSERRECOGNIZER
       
    25 #define PARSERRECOGNIZER_EXPORT Q_DECL_EXPORT
       
    26 #else
       
    27 #define PARSERRECOGNIZER_EXPORT Q_DECL_IMPORT
       
    28 #endif
       
    29 
       
    30 class PARSERRECOGNIZER_EXPORT ParserRecognizer : public QObject
       
    31 {
       
    32     Q_OBJECT
       
    33 public:
       
    34     ParserRecognizer(QObject *parent = 0);
       
    35     ~ParserRecognizer();
       
    36     
       
    37     /*!
       
    38         \fn sendMessage(const int message, const int callId)
       
    39         
       
    40         This method takes a Phone Engine message and a caller id.
       
    41         It recognizes the messages that needs to be sent to the
       
    42         QtHighway. If message isn't recognized it doesn't do anything.
       
    43     */
       
    44     void sendMessage(const int message, const int callId);
       
    45     
       
    46 };
       
    47 
       
    48 #endif // PARSERRECOGNIZER_H