1 |
1 |
2 /* |
2 /** |
3 * SmfObserver.h |
3 * Copyright (c) 2010 Sasken Communication Technologies Ltd. |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of the "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html" |
4 * |
9 * |
5 * Created on: Mar 17, 2010 |
10 * Initial Contributors: |
6 * Author: manasij |
11 * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution |
|
12 * |
|
13 * Contributors: |
|
14 * Manasij Roy, Nalina Hariharan |
|
15 * |
|
16 * Description: |
|
17 * Observer class to notify availability of asynchronous requests |
|
18 * |
7 */ |
19 */ |
8 |
20 |
9 #ifndef SMFOBSERVER_H_ |
21 #ifndef SMFOBSERVER_H_ |
10 #define SMFOBSERVER_H_ |
22 #define SMFOBSERVER_H_ |
11 class QByteArray; |
23 class QByteArray; |
12 #include "smfglobal.h" |
24 #include "smfglobal.h" |
13 #include <QObject> |
25 #include <QObject> |
|
26 /** |
|
27 * Observer class to notify availability of asynchronous requests |
|
28 */ |
14 class smfObserver : public QObject |
29 class smfObserver : public QObject |
15 { |
30 { |
16 public: |
31 public: |
|
32 /** |
|
33 * To notify availibility of asynchronous requests. |
|
34 * @param result Requested result, before using must check error param. |
|
35 * @param opcode Requested opcode, for which the result has arrived. |
|
36 * |
|
37 */ |
17 virtual void resultsAvailable(QByteArray result,SmfRequestTypeID opcode, SmfError error)= 0; |
38 virtual void resultsAvailable(QByteArray result,SmfRequestTypeID opcode, SmfError error)= 0; |
18 }; |
39 }; |
19 |
40 |
20 #endif |
41 #endif |