1 /*! |
|
2 * Copyright (c) 2009-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: Recognizes the parser messages that needs to be notified to |
|
15 * the world using QtHighway. |
|
16 */ |
|
17 |
|
18 #ifndef PARSERRECOGNIZER_H |
|
19 #define PARSERRECOGNIZER_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <xqservicerequest.h> |
|
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 |
|
34 public: |
|
35 ParserRecognizer(QObject *parent = 0); |
|
36 ~ParserRecognizer(); |
|
37 |
|
38 /*! |
|
39 \fn sendMessage(const int message, const int callId) |
|
40 |
|
41 This method takes a Phone Engine message and a caller id. |
|
42 It recognizes the messages that needs to be sent to the |
|
43 QtHighway. If message isn't recognized it doesn't do anything. |
|
44 */ |
|
45 void sendMessage(const int message, const int callId); |
|
46 |
|
47 private slots: |
|
48 void requestCompleted(const QVariant &returnValue); |
|
49 void requestError(int error); |
|
50 |
|
51 private: |
|
52 XQServiceRequest *m_currentRequest; |
|
53 }; |
|
54 |
|
55 #endif // PARSERRECOGNIZER_H |
|