equal
deleted
inserted
replaced
|
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include <s32file.h> |
|
17 |
|
18 #include "MTSRUT.H" |
|
19 #include "MSVPANIC.H" |
|
20 |
|
21 |
|
22 |
|
23 CInstalledMtmGroup* CInstalledMtmGroup::NewL(TUidType aUidType,CMtmGroupData* aMtmGroupData,const TDesC& aFileName) |
|
24 { |
|
25 CleanupStack::PushL(aMtmGroupData); // we take ownership of this |
|
26 CInstalledMtmGroup* self=new(ELeave) CInstalledMtmGroup(aUidType, aMtmGroupData); |
|
27 CleanupStack::Pop(aMtmGroupData); // constructor took ownership |
|
28 CleanupStack::PushL(self); |
|
29 self->iFilename=aFileName.AllocL(); |
|
30 CleanupStack::Pop(); |
|
31 return self; |
|
32 } |
|
33 |
|
34 CInstalledMtmGroup::~CInstalledMtmGroup() |
|
35 { |
|
36 __ASSERT_DEBUG(iClientUsageCount==0,PanicServer(EMtsrInstalledMtmGroupStillInUse)); |
|
37 delete iMtmGroupData; |
|
38 delete iFilename; |
|
39 } |
|
40 |
|
41 |
|
42 CInstalledMtmGroup::CInstalledMtmGroup(TUidType aUidType, CMtmGroupData* aMtmGroupData): |
|
43 iMtmGroupData(aMtmGroupData), |
|
44 iUidType(aUidType), |
|
45 iIsInstalled(ETrue) |
|
46 { |
|
47 __DECLARE_NAME(_S("CInstalledMtmGroup")); |
|
48 } |
|
49 |