31
|
1 |
/*
|
|
2 |
* Copyright (c) 2006 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 the License "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: Icon file provider.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef CBSICONFILEPROVIDER_H
|
|
22 |
#define CBSICONFILEPROVIDER_H
|
|
23 |
|
|
24 |
// INCLUDES
|
|
25 |
#include <e32base.h>
|
33
|
26 |
#include <aknsitemid.h>
|
|
27 |
#include <akniconutils.h>
|
31
|
28 |
|
|
29 |
|
|
30 |
// FORWARD DECLARATIONS
|
|
31 |
|
|
32 |
// CLASS DECLARATION
|
|
33 |
|
|
34 |
/**
|
|
35 |
* Icon file provider.
|
|
36 |
* See MAknIconFileProvider.h for comments.
|
|
37 |
*
|
|
38 |
* @lib chat.app
|
|
39 |
* @since 3.0
|
|
40 |
*/
|
|
41 |
class CBSIconFileProvider : public CBase, public MAknIconFileProvider
|
|
42 |
{
|
|
43 |
public: // Constructors and destructor
|
|
44 |
|
|
45 |
/**
|
|
46 |
* Two-phased constructor.
|
|
47 |
*/
|
|
48 |
static CBSIconFileProvider* NewL( RFile& aFile );
|
|
49 |
/**
|
|
50 |
* Destructor.
|
|
51 |
*/
|
|
52 |
virtual ~CBSIconFileProvider();
|
|
53 |
|
|
54 |
public: // Functions from base classes
|
|
55 |
|
|
56 |
/**
|
|
57 |
* @see MAknIconFileProvider
|
|
58 |
*/
|
|
59 |
void RetrieveIconFileHandleL(
|
|
60 |
RFile& aFile, const TIconFileType aType );
|
|
61 |
|
|
62 |
/**
|
|
63 |
* @see MAknIconFileProvider
|
|
64 |
*/
|
|
65 |
void Finished();
|
|
66 |
|
|
67 |
private:
|
|
68 |
|
|
69 |
/**
|
|
70 |
* C++ default constructor.
|
|
71 |
*/
|
|
72 |
CBSIconFileProvider();
|
|
73 |
|
|
74 |
/**
|
|
75 |
* By default Symbian 2nd phase constructor is private.
|
|
76 |
*/
|
|
77 |
void ConstructL(RFile& aFile);
|
|
78 |
|
|
79 |
private: // Data
|
|
80 |
|
|
81 |
// owned. filename of this icon. must be a copy,
|
|
82 |
// a reference could end up pointing into another file.
|
|
83 |
HBufC* iFilename;
|
|
84 |
|
|
85 |
RFile iFile;
|
|
86 |
};
|
|
87 |
|
|
88 |
#endif // CBSICONFILEPROVIDER_H
|
|
89 |
|
|
90 |
// End of File
|