|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDES |
|
21 #include "iepbint.h" |
|
22 #include "iepbres.h" |
|
23 |
|
24 #include <aknutils.h> |
|
25 |
|
26 //============================================================================= |
|
27 CImageEditorPluginBaseInt * CImageEditorPluginBaseInt::NewL ( |
|
28 const TDesC & aResourcePath, |
|
29 const TDesC & aResourceFile |
|
30 ) |
|
31 { |
|
32 CImageEditorPluginBaseInt * self = new (ELeave) CImageEditorPluginBaseInt; |
|
33 CleanupStack::PushL (self); |
|
34 self->ConstructL (aResourcePath, aResourceFile); |
|
35 CleanupStack::Pop(); // self |
|
36 return self; |
|
37 } |
|
38 |
|
39 //============================================================================= |
|
40 CImageEditorPluginBaseInt::~CImageEditorPluginBaseInt () |
|
41 { |
|
42 delete iResource; |
|
43 } |
|
44 |
|
45 //============================================================================= |
|
46 CPluginResource * CImageEditorPluginBaseInt::GetPluginResource() const |
|
47 { |
|
48 return iResource; |
|
49 } |
|
50 |
|
51 //============================================================================= |
|
52 CImageEditorPluginBaseInt::CImageEditorPluginBaseInt () |
|
53 { |
|
54 |
|
55 } |
|
56 |
|
57 //============================================================================= |
|
58 void CImageEditorPluginBaseInt::ConstructL ( |
|
59 const TDesC & aResourcePath, |
|
60 const TDesC & aResourceFile |
|
61 ) |
|
62 { |
|
63 TFileName resourcePath ( aResourcePath ); |
|
64 User::LeaveIfError( CompleteWithAppPath( resourcePath ) ); |
|
65 iResource = CPluginResource::NewL (resourcePath, aResourceFile); |
|
66 } |
|
67 |