|
1 /* |
|
2 * Copyright (c) 2006 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: Contains MNcdInstalledFile interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_NCD_INSTALLED_FILE_H |
|
20 #define M_NCD_INSTALLED_FILE_H |
|
21 |
|
22 #include <f32file.h> |
|
23 #include <e32cmn.h> |
|
24 |
|
25 #include "catalogsbase.h" |
|
26 #include "ncdinterfaceids.h" |
|
27 |
|
28 |
|
29 /** |
|
30 * |
|
31 * |
|
32 * @see MNcdNodeInstall |
|
33 * |
|
34 * |
|
35 */ |
|
36 class MNcdInstalledFile : public virtual MCatalogsBase |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Unique identifier for the interface, required for all MCatalogsBase interfaces. |
|
42 * |
|
43 * |
|
44 */ |
|
45 enum { KInterfaceUid = ENcdInstalledFileUid }; |
|
46 |
|
47 |
|
48 /** |
|
49 * Gives the mime type of a directly accessible installed content file. |
|
50 * |
|
51 * @note Valid only if MNcdNodeInstall::IsInstalledL() returns ETrue |
|
52 * |
|
53 * |
|
54 * @return The mime type of the download content data. The type is |
|
55 * given as a text according to the standards that define MIME types. |
|
56 * If protocol has not defined any value, an empty string is returned. |
|
57 */ |
|
58 virtual const TDesC& MimeType() const = 0; |
|
59 |
|
60 |
|
61 /** |
|
62 * Gives a handle to directly accessible installed content file. The handle |
|
63 * may be used to launch an application or do something else that UI seems fit. |
|
64 * |
|
65 * @note Valid only if MNcdNodeInstall::IsInstalledL() returns ETrue |
|
66 * |
|
67 * |
|
68 * @return Handle to the file that was installed and is now |
|
69 * node content. Ownership is transferred. So, Close should |
|
70 * be called when file is not used anymore. |
|
71 * @exception Leave System wide error code. |
|
72 */ |
|
73 virtual RFile OpenFileL() = 0; |
|
74 |
|
75 |
|
76 protected: |
|
77 |
|
78 /** |
|
79 * Destructor. |
|
80 * |
|
81 * @see MCatalogsBase::~MCatalogsBase() |
|
82 */ |
|
83 virtual ~MNcdInstalledFile() {} |
|
84 |
|
85 }; |
|
86 |
|
87 |
|
88 #endif // M_NCD_INSTALLED_FILE_H |