57 |
57 |
58 EXPORT_C CSifOperationStartData* CSifOperationStartData::NewL(const TDesC& aGlobalComponentId, const TDesC& aComponentName, |
58 EXPORT_C CSifOperationStartData* CSifOperationStartData::NewL(const TDesC& aGlobalComponentId, const TDesC& aComponentName, |
59 const RPointerArray<HBufC>& aApplicationNames, const RPointerArray<HBufC>& aApplicationIcons, |
59 const RPointerArray<HBufC>& aApplicationNames, const RPointerArray<HBufC>& aApplicationIcons, |
60 TInt aComponentSize, const TDesC& aIconPath, const TDesC& aComponentIcon, const TDesC& aSoftwareType) |
60 TInt aComponentSize, const TDesC& aIconPath, const TDesC& aComponentIcon, const TDesC& aSoftwareType) |
61 { |
61 { |
|
62 return CSifOperationStartData::NewL(aGlobalComponentId, aComponentName, |
|
63 aApplicationNames, aApplicationIcons, aComponentSize, aIconPath, aComponentIcon, aSoftwareType, EInstalling); |
|
64 } |
|
65 |
|
66 EXPORT_C CSifOperationStartData* CSifOperationStartData::NewL(const TDesC& aGlobalComponentId, const TDesC& aComponentName, |
|
67 const RPointerArray<HBufC>& aApplicationNames, const RPointerArray<HBufC>& aApplicationIcons, |
|
68 TInt aComponentSize, const TDesC& aIconPath, const TDesC& aComponentIcon, const TDesC& aSoftwareType, |
|
69 TSifOperationPhase aOperationPhase) |
|
70 { |
62 CSifOperationStartData *self = CSifOperationStartData::NewLC(aGlobalComponentId, aComponentName, |
71 CSifOperationStartData *self = CSifOperationStartData::NewLC(aGlobalComponentId, aComponentName, |
63 aApplicationNames, aApplicationIcons, aComponentSize, aIconPath, aComponentIcon,aSoftwareType); |
72 aApplicationNames, aApplicationIcons, aComponentSize, aIconPath, aComponentIcon, aSoftwareType, aOperationPhase); |
64 CleanupStack::Pop(self); |
73 CleanupStack::Pop(self); |
65 return self; |
74 return self; |
|
75 } |
|
76 |
|
77 |
|
78 EXPORT_C CSifOperationStartData* CSifOperationStartData::NewLC(const TDesC& aGlobalComponentId, const TDesC& aComponentName, |
|
79 const RPointerArray<HBufC>& aApplicationNames, const RPointerArray<HBufC>& aApplicationIcons, const TInt aComponentSize, |
|
80 const TDesC& aIconPath, const TDesC& aComponentIcon, const TDesC& aSoftwareType) |
|
81 { |
|
82 return CSifOperationStartData::NewLC(aGlobalComponentId, aComponentName, |
|
83 aApplicationNames, aApplicationIcons, aComponentSize, aIconPath, aComponentIcon, aSoftwareType, EInstalling); |
66 } |
84 } |
67 |
85 |
68 EXPORT_C CSifOperationStartData* CSifOperationStartData::NewLC(const TDesC& aGlobalComponentId, const TDesC& aComponentName, |
86 EXPORT_C CSifOperationStartData* CSifOperationStartData::NewLC(const TDesC& aGlobalComponentId, const TDesC& aComponentName, |
69 const RPointerArray<HBufC>& aApplicationNames, const RPointerArray<HBufC>& aApplicationIcons, const TInt aComponentSize, |
87 const RPointerArray<HBufC>& aApplicationNames, const RPointerArray<HBufC>& aApplicationIcons, const TInt aComponentSize, |
70 const TDesC& aIconPath, const TDesC& aComponentIcon, const TDesC& aSoftwareType) |
88 const TDesC& aIconPath, const TDesC& aComponentIcon, const TDesC& aSoftwareType, TSifOperationPhase aOperationPhase) |
71 { |
89 { |
72 CSifOperationStartData *self = new(ELeave) CSifOperationStartData(); |
90 CSifOperationStartData *self = new(ELeave) CSifOperationStartData(); |
73 CleanupStack::PushL(self); |
91 CleanupStack::PushL(self); |
74 self->ConstructL(aGlobalComponentId, aComponentName, aApplicationNames, aApplicationIcons, aComponentSize, aIconPath, aComponentIcon, aSoftwareType); |
92 self->ConstructL(aGlobalComponentId, aComponentName, aApplicationNames, aApplicationIcons, aComponentSize, aIconPath, aComponentIcon, aSoftwareType, aOperationPhase); |
75 return self; |
93 return self; |
76 } |
94 } |
77 |
95 |
78 void CSifOperationStartData::ConstructL(const TDesC& aGlobalComponentId, const TDesC& aComponentName, const RPointerArray<HBufC>& aApplicationNames, |
96 void CSifOperationStartData::ConstructL(const TDesC& aGlobalComponentId, const TDesC& aComponentName, const RPointerArray<HBufC>& aApplicationNames, |
79 const RPointerArray<HBufC>& aApplicationIcons, TInt aComponentSize, const TDesC& aIconPath, const TDesC& aComponentIcon, const TDesC& aSoftwareType) |
97 const RPointerArray<HBufC>& aApplicationIcons, TInt aComponentSize, const TDesC& aIconPath, const TDesC& aComponentIcon, |
|
98 const TDesC& aSoftwareType, TSifOperationPhase aOperationPhase) |
80 { |
99 { |
81 iGlobalComponentId = aGlobalComponentId.AllocL(); |
100 iGlobalComponentId = aGlobalComponentId.AllocL(); |
82 iComponentName = aComponentName.AllocL(); |
101 iComponentName = aComponentName.AllocL(); |
83 iComponentIcon = aComponentIcon.AllocL(); |
102 iComponentIcon = aComponentIcon.AllocL(); |
84 |
103 |