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 #include <e32def.h> |
|
21 #include <e32base.h> |
|
22 |
|
23 #include <pnpparameterbundle.h> |
|
24 /** |
|
25 Observer class which has a callback function to return the responses. Client must implement to handle the responses. |
|
26 @publishedPartner |
|
27 @prototype |
|
28 */ |
|
29 class MPnPObserver |
|
30 { |
|
31 public: |
|
32 /** |
|
33 Callback method which returns the responses.It can be success or fail and is contained in the response parameter bundle |
|
34 @param aServiceEventInfo Parameter bundle containg the response. |
|
35 */ |
|
36 virtual void OnPnPEventL ( RPnPParameterBundleBase& aServiceEventInfo) = 0; |
|
37 /** |
|
38 Callback method which handles the errors of submitting requests. In case this method is returned, the client should check |
|
39 all the values passed in the corresponding bundle because it'll be called only in case of invalid bundle or low memory condition |
|
40 Note that unlike OnPnPEventL ,this is not a callback method and returns synchronously in case of error. |
|
41 @param aError error code. |
|
42 */ |
|
43 virtual void OnPnPError (TInt aError) = 0; |
|
44 }; |
|
45 |
|
46 #endif //__PNPOBSERVER_H__ |