equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // PnPObserver.h |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __MPNPOBSERVER_H__ |
|
19 #define __MPNPOBSERVER_H__ |
|
20 |
|
21 #include <e32def.h> |
|
22 #include <e32base.h> |
|
23 |
|
24 class RPnPParameterBundleBase; |
|
25 /** |
|
26 Observer class which has a callback function to return the responses. Client must implement to handle the responses. |
|
27 @publishedPartner |
|
28 @prototype |
|
29 */ |
|
30 class MPnPObserver |
|
31 { |
|
32 public: |
|
33 /** |
|
34 Callback method which returns the responses.It can be success or fail and is contained in the response parameter bundle |
|
35 @param aServiceEventInfo Parameter bundle containg the response. |
|
36 */ |
|
37 virtual void OnPnPEventL ( RPnPParameterBundleBase& aServiceEventInfo) = 0; |
|
38 /** |
|
39 Callback method which handles the errors of submitting requests. In case this method is returned, the client should check |
|
40 all the values passed in the corresponding bundle because it'll be called only in case of invalid bundle or low memory condition |
|
41 Note that unlike OnPnPEventL ,this is not a callback method and returns synchronously in case of error. |
|
42 @param aError error code. |
|
43 */ |
|
44 virtual void OnPnPError (TInt aError) = 0; |
|
45 }; |
|
46 |
|
47 #endif /*__MPNPOBSERVER_H__*/ |