diff -r c84cf270c54f -r 92ab7f8d0eab phoneengine/parserrecognizer/inc/parserrecognizer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneengine/parserrecognizer/inc/parserrecognizer.h Fri Mar 19 09:28:42 2010 +0200 @@ -0,0 +1,48 @@ +/*! +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Recognizes the parser messages that needs to be notified to the world +* using QtHighway. +* +*/ + +#ifndef PARSERRECOGNIZER_H +#define PARSERRECOGNIZER_H + +#include + +#ifdef BUILD_PARSERRECOGNIZER +#define PARSERRECOGNIZER_EXPORT Q_DECL_EXPORT +#else +#define PARSERRECOGNIZER_EXPORT Q_DECL_IMPORT +#endif + +class PARSERRECOGNIZER_EXPORT ParserRecognizer : public QObject +{ + Q_OBJECT +public: + ParserRecognizer(QObject *parent = 0); + ~ParserRecognizer(); + + /*! + \fn sendMessage(const int message, const int callId) + + This method takes a Phone Engine message and a caller id. + It recognizes the messages that needs to be sent to the + QtHighway. If message isn't recognized it doesn't do anything. + */ + void sendMessage(const int message, const int callId); + +}; + +#endif // PARSERRECOGNIZER_H