1 /* |
|
2 * Copyright (c) 2008-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: Implements icon file provider for avkon icon framework |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <aknappui.h> |
|
20 #include <AknIconUtils.h> |
|
21 |
|
22 #include "cchuipluginiconfileprovider.h" |
|
23 |
|
24 |
|
25 // ======== MEMBER FUNCTIONS ======== |
|
26 |
|
27 CCchUiPluginIconFileProvider::CCchUiPluginIconFileProvider( RFile& aFile ): |
|
28 iFile( aFile ) |
|
29 { |
|
30 } |
|
31 |
|
32 CCchUiPluginIconFileProvider* |
|
33 CCchUiPluginIconFileProvider::NewL( RFile& aFile ) |
|
34 { |
|
35 CCchUiPluginIconFileProvider* self = |
|
36 new( ELeave ) CCchUiPluginIconFileProvider( aFile ); |
|
37 return self; |
|
38 } |
|
39 |
|
40 CCchUiPluginIconFileProvider::~CCchUiPluginIconFileProvider() |
|
41 { |
|
42 } |
|
43 |
|
44 // --------------------------------------------------------------------------- |
|
45 // From class MAknIconFileProvider. |
|
46 // --------------------------------------------------------------------------- |
|
47 // |
|
48 void CCchUiPluginIconFileProvider::RetrieveIconFileHandleL( |
|
49 RFile& aFile, const TIconFileType /*aType*/ ) |
|
50 { |
|
51 User::LeaveIfError( aFile.Duplicate( iFile ) ); |
|
52 } |
|
53 |
|
54 // --------------------------------------------------------------------------- |
|
55 // From class MAknIconFileProvider. |
|
56 // --------------------------------------------------------------------------- |
|
57 // |
|
58 void CCchUiPluginIconFileProvider::Finished() |
|
59 { |
|
60 delete this; |
|
61 } |
|
62 |
|