|
1 /* |
|
2 * Copyright (c) 2006-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: Contains CNcdInstalledApplication class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NCD_INSTALLED_APPLICATION_H |
|
20 #define NCD_INSTALLED_APPLICATION_H |
|
21 |
|
22 |
|
23 #include "ncdinstalledcontentimpl.h" |
|
24 #include "ncdinstalledapplication.h" |
|
25 #include "catalogsutils.h" |
|
26 |
|
27 |
|
28 class CNcdNodeInstallProxy; |
|
29 |
|
30 /** |
|
31 * |
|
32 * |
|
33 * @lib ?library |
|
34 * @since S60 ?S60_version *** for example, S60 v3.0 |
|
35 */ |
|
36 class CNcdInstalledApplication: public CNcdInstalledContent, |
|
37 public MNcdInstalledApplication |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * NewLC |
|
43 */ |
|
44 static CNcdInstalledApplication* NewLC( |
|
45 CNcdNodeInstallProxy& aParent, |
|
46 const TUid& aUid, |
|
47 const TDesC& aVersion, |
|
48 const TDesC& aDocumentName, |
|
49 MNcdInstalledContent::TInstalledContentType aType, |
|
50 TBool aUriExists ); |
|
51 |
|
52 |
|
53 public: // MNcdInstalledContent |
|
54 |
|
55 |
|
56 /** |
|
57 * @see MNcdInstalledContent::IsInstalledL() |
|
58 */ |
|
59 virtual TBool IsInstalledL() const; |
|
60 |
|
61 |
|
62 |
|
63 public: // MNcdInstalledApplication |
|
64 |
|
65 /** |
|
66 * @see MNcdInstalledApplication::Uid() |
|
67 */ |
|
68 virtual TUid Uid() const; |
|
69 |
|
70 |
|
71 /** |
|
72 * @see MNcdInstalledApplication::DocumentName() |
|
73 */ |
|
74 virtual const TDesC& DocumentName() const; |
|
75 |
|
76 protected: |
|
77 |
|
78 /** |
|
79 * Constructor |
|
80 * |
|
81 */ |
|
82 CNcdInstalledApplication( |
|
83 CNcdNodeInstallProxy& aParent, |
|
84 const TUid& aUid, |
|
85 MNcdInstalledContent::TInstalledContentType aType, |
|
86 TBool aUriExists ); |
|
87 |
|
88 |
|
89 /** |
|
90 * ConstructL |
|
91 */ |
|
92 virtual void ConstructL( |
|
93 const TDesC& aVersion, |
|
94 const TDesC& aDocumentName ); |
|
95 |
|
96 |
|
97 /** |
|
98 * Destructor |
|
99 * |
|
100 * Informs the node manager that this node is deleted. |
|
101 */ |
|
102 virtual ~CNcdInstalledApplication(); |
|
103 |
|
104 |
|
105 |
|
106 private: |
|
107 // Prevent if not implemented |
|
108 CNcdInstalledApplication( const CNcdInstalledApplication& aObject ); |
|
109 CNcdInstalledApplication& operator =( const CNcdInstalledApplication& aObject ); |
|
110 |
|
111 private: // data |
|
112 |
|
113 TUid iUid; |
|
114 |
|
115 HBufC* iDocumentName; |
|
116 TCatalogsVersion iVersion; |
|
117 TBool iUriExists; |
|
118 }; |
|
119 |
|
120 |
|
121 #endif // NCD_INSTALLED_APPLICATION_H |