equal
deleted
inserted
replaced
1 /*! |
1 /*! |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: Recognizes the parser messages that needs to be notified to the world |
14 * Description: Recognizes the parser messages that needs to be notified to |
15 * using QtHighway. |
15 * the world using QtHighway. |
16 * |
|
17 */ |
16 */ |
18 |
17 |
19 #ifndef PARSERRECOGNIZER_H |
18 #ifndef PARSERRECOGNIZER_H |
20 #define PARSERRECOGNIZER_H |
19 #define PARSERRECOGNIZER_H |
21 |
20 |
22 #include <QObject> |
21 #include <QObject> |
|
22 #include <xqservicerequest.h> |
23 |
23 |
24 #ifdef BUILD_PARSERRECOGNIZER |
24 #ifdef BUILD_PARSERRECOGNIZER |
25 #define PARSERRECOGNIZER_EXPORT Q_DECL_EXPORT |
25 #define PARSERRECOGNIZER_EXPORT Q_DECL_EXPORT |
26 #else |
26 #else |
27 #define PARSERRECOGNIZER_EXPORT Q_DECL_IMPORT |
27 #define PARSERRECOGNIZER_EXPORT Q_DECL_IMPORT |
28 #endif |
28 #endif |
29 |
29 |
30 class PARSERRECOGNIZER_EXPORT ParserRecognizer : public QObject |
30 class PARSERRECOGNIZER_EXPORT ParserRecognizer : public QObject |
31 { |
31 { |
32 Q_OBJECT |
32 Q_OBJECT |
|
33 |
33 public: |
34 public: |
34 ParserRecognizer(QObject *parent = 0); |
35 ParserRecognizer(QObject *parent = 0); |
35 ~ParserRecognizer(); |
36 ~ParserRecognizer(); |
36 |
37 |
37 /*! |
38 /*! |
40 This method takes a Phone Engine message and a caller id. |
41 This method takes a Phone Engine message and a caller id. |
41 It recognizes the messages that needs to be sent to the |
42 It recognizes the messages that needs to be sent to the |
42 QtHighway. If message isn't recognized it doesn't do anything. |
43 QtHighway. If message isn't recognized it doesn't do anything. |
43 */ |
44 */ |
44 void sendMessage(const int message, const int callId); |
45 void sendMessage(const int message, const int callId); |
|
46 |
|
47 private slots: |
|
48 void requestCompleted(const QVariant &returnValue); |
|
49 void requestError(int error); |
45 |
50 |
|
51 private: |
|
52 XQServiceRequest *m_currentRequest; |
46 }; |
53 }; |
47 |
54 |
48 #endif // PARSERRECOGNIZER_H |
55 #endif // PARSERRECOGNIZER_H |