|
1 /* |
|
2 * Copyright (c) 2008 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: Interface class for WMDRM DLA Browser Observer |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_WMDRMDLABROWSEROBSERVER_H |
|
20 #define M_WMDRMDLABROWSEROBSERVER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 /** |
|
25 * Interface for browser observer |
|
26 */ |
|
27 class MWmDrmDlaBrowserObserver |
|
28 { |
|
29 public: |
|
30 |
|
31 /** |
|
32 * Called when POST URL is required. |
|
33 * @return POST URL |
|
34 */ |
|
35 virtual const TDesC& PostUrlL() = 0; |
|
36 |
|
37 /** |
|
38 * Called when POST content type is required. |
|
39 * @return POST content type |
|
40 */ |
|
41 virtual const TDesC8& PostContentTypeL() = 0; |
|
42 |
|
43 /** |
|
44 * Called when POST data is required. |
|
45 * @return POST data |
|
46 */ |
|
47 virtual const TDesC8& PostDataL() = 0; |
|
48 |
|
49 /** |
|
50 * Called when POST content data boundary is required. |
|
51 * @return POST content data boundary |
|
52 */ |
|
53 virtual const TDesC8& PostContentDataBoundaryL() = 0; |
|
54 |
|
55 /** |
|
56 * Called when IAP ID is required. |
|
57 * @return IAP ID |
|
58 */ |
|
59 virtual TInt IapId() = 0; |
|
60 |
|
61 /** |
|
62 * Called when license is received. |
|
63 * @param aLicenseResponse - Received license response |
|
64 */ |
|
65 virtual void LicenseResponseReceived( |
|
66 const TDesC8& aLicenseResponse ) = 0; |
|
67 |
|
68 /** |
|
69 * Called when browser view is closed with some error. |
|
70 * @param aError - Error or command that closed the browser view |
|
71 */ |
|
72 virtual void BrowserExit( TInt aError ) = 0; |
|
73 |
|
74 }; |
|
75 |
|
76 |
|
77 #endif // M_WMDRMDLABROWSEROBSERVER_H |