|
1 /* |
|
2 * Copyright (c) 2004 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: Class definition for the ProgressiveDownloadUtility functions. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CPROGRESSIVEDOWNLOADUTILITY_H__ |
|
19 #define __CPROGRESSIVEDOWNLOADUTILITY_H__ |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 #include <f32file.h> |
|
24 |
|
25 |
|
26 //Forward Declaration |
|
27 class MAudioPdPlayUtility; |
|
28 class MAudioPdPlayUtilityCallback; |
|
29 class CPdProperties; |
|
30 |
|
31 |
|
32 // CLASS DEFINITIONS |
|
33 |
|
34 /** |
|
35 * This class provides Progressive download utility functions. |
|
36 * |
|
37 * @lib ProgressiveDownloadUtility.lib |
|
38 * @since 3.0 |
|
39 */ |
|
40 class CProgressiveDownloadUtility: public CBase |
|
41 { |
|
42 |
|
43 public: |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 */ |
|
47 IMPORT_C static CProgressiveDownloadUtility* NewL(); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 IMPORT_C virtual ~CProgressiveDownloadUtility(); |
|
53 |
|
54 /** |
|
55 * From CProgressiveDownloadUtility |
|
56 * @param aFileName |
|
57 * @param aCallback |
|
58 * @return MAudioPdPlayUtility* |
|
59 */ |
|
60 IMPORT_C MAudioPdPlayUtility* OpenL(const TDesC& aFileName,MAudioPdPlayUtilityCallback& aCallback); |
|
61 |
|
62 /** |
|
63 * From CProgressiveDownloadUtility |
|
64 * @param aFileHandle |
|
65 * @param aCallback |
|
66 * @return MAudioPdPlayUtility* |
|
67 */ |
|
68 IMPORT_C MAudioPdPlayUtility* OpenL(const RFile& aFileHandle,MAudioPdPlayUtilityCallback& aCallback); |
|
69 |
|
70 protected: |
|
71 |
|
72 |
|
73 private: |
|
74 /** |
|
75 * C++ default constructor. |
|
76 */ |
|
77 CProgressiveDownloadUtility(); |
|
78 |
|
79 /** |
|
80 * By default Symbian 2nd phase constructor is private. |
|
81 */ |
|
82 void ConstructL(); |
|
83 |
|
84 CPdProperties* iProperties; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif |