equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2004-2006 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2004-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". |
20 #define CDRMHELPERDOWNLOADMANAGER_H |
20 #define CDRMHELPERDOWNLOADMANAGER_H |
21 |
21 |
22 #include <e32base.h> |
22 #include <e32base.h> |
23 #include <ConeResLoader.h> |
23 #include <ConeResLoader.h> |
24 |
24 |
25 class CDRMHelperDMgrWrapper; |
25 class CDrmUtilityDmgrWrapper; |
26 |
26 |
27 /** |
27 /** |
28 * This class encapsulates Download manager functionality. |
28 * This class encapsulates Download manager functionality. |
29 * |
29 * |
30 * @lib DrmHelper.lib |
30 * @lib DrmHelper.lib |
31 * @since S60 3.0 |
31 * @since S60 3.0 |
32 */ |
32 */ |
33 NONSHARABLE_CLASS(CDrmHelperDownloadManager) : public CBase |
33 NONSHARABLE_CLASS(CDrmHelperDownloadManager) : public CBase |
34 { |
34 { |
35 public: |
35 public: |
36 |
36 |
37 static CDrmHelperDownloadManager* NewL(); |
37 static CDrmHelperDownloadManager* NewL(); |
38 virtual ~CDrmHelperDownloadManager(); |
38 virtual ~CDrmHelperDownloadManager(); |
39 |
39 |
40 /** |
40 /** |
41 * Download a ROAP trigger from URL and handle it |
41 * Download a ROAP trigger from URL and handle it |
44 * @param aUrl URL to be downloaded |
44 * @param aUrl URL to be downloaded |
45 */ |
45 */ |
46 void DownloadAndHandleRoapTriggerL( const HBufC8* aUrl, CCoeEnv& aCoeEnv ); |
46 void DownloadAndHandleRoapTriggerL( const HBufC8* aUrl, CCoeEnv& aCoeEnv ); |
47 |
47 |
48 void DownloadAndHandleRoapTriggerL( const HBufC8* aUrl ); |
48 void DownloadAndHandleRoapTriggerL( const HBufC8* aUrl ); |
49 |
49 |
50 HBufC8* GetErrorUrlL(); |
50 HBufC8* GetErrorUrlL(); |
51 |
51 |
52 |
52 |
53 protected: |
53 protected: |
54 |
54 |
55 private: |
55 private: |
56 |
56 |
57 CDrmHelperDownloadManager(); |
57 CDrmHelperDownloadManager(); |
58 void ConstructL(); |
58 void ConstructL(); |
59 |
59 |
60 private: |
60 private: |
61 |
61 |
62 /** |
62 /** |
63 * Download manager handler |
63 * Download manager handler |
64 */ |
64 */ |
65 RLibrary iDMgrDll; |
65 RLibrary iDMgrDll; |
66 CDRMHelperDMgrWrapper* iDMgrHandler; |
66 CDrmUtilityDmgrWrapper* iDMgrHandler; |
67 }; |
67 }; |
68 |
68 |
69 #endif // CDRMHELPERDOWNLOADMANAGER_H |
69 #endif // CDRMHELPERDOWNLOADMANAGER_H |