|
1 /* |
|
2 * Copyright (c) 2005-2009 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 "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 /** |
|
19 @test |
|
20 @internalComponent |
|
21 |
|
22 This contains CT_DataFbsTypefaceStore |
|
23 */ |
|
24 |
|
25 #if (!defined __T_DATA_FBS_TYPEFACE_STORE_H__) |
|
26 #define __T_DATA_FBS_TYPEFACE_STORE_H__ |
|
27 |
|
28 // User Includes |
|
29 #include "T_DataTypefaceStore.h" |
|
30 |
|
31 // EPOC includes |
|
32 #include <e32std.h> |
|
33 #include <fbs.h> |
|
34 |
|
35 class CT_DataFbsTypefaceStore : public CT_DataTypefaceStore |
|
36 { |
|
37 public: |
|
38 static CT_DataFbsTypefaceStore* NewL(); |
|
39 |
|
40 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
41 |
|
42 ~CT_DataFbsTypefaceStore(); |
|
43 |
|
44 virtual TAny* GetObject(); |
|
45 |
|
46 protected: |
|
47 CT_DataFbsTypefaceStore(); |
|
48 void ConstructL(); |
|
49 |
|
50 // CT_DataTypefaceStore implementation |
|
51 virtual CTypefaceStore* GetTypefaceStore() const; |
|
52 |
|
53 private: |
|
54 void DestroyData(); |
|
55 void DoCmdNewL(const TDesC& aSection); |
|
56 void DoCmdGetNearestFontInPixelsL(const TDesC& aSection); |
|
57 void DoCmdGetNearestFontToDesignHeightInPixelsL(const TDesC& aSection); |
|
58 void DoCmdGetNearestFontToMaxHeightInPixelsL(const TDesC& aSection); |
|
59 void DoCmdAddFile(const TDesC& aSection); |
|
60 void DoCmdInstallFile(const TDesC& aSection); |
|
61 void DoCmdRemoveFile(const TDesC& aSection); |
|
62 void DoCmdGetFontByIdL(const TDesC& aSection); |
|
63 void DoCmdFontHeightInPixels(const TDesC& aSection); |
|
64 void DoCmdDefaultBitmapType(const TDesC& aSection); |
|
65 void DoCmdSetDefaultBitmapType(const TDesC& aSection); |
|
66 void DoCmdSetFontNameAlias(const TDesC& aSection); |
|
67 void DoCmdSetDefaultLanguageForMetrics(const TDesC& aSection); |
|
68 void DoCmdRemoveFontFileLocks(const TDesC& aSection); |
|
69 void DoCmdSetSystemDefaultTypefaceName(const TDesC& aSection); |
|
70 |
|
71 private: |
|
72 /** CFbsTypefaceStore class instance to work with*/ |
|
73 CFbsTypefaceStore* iFbsTypefaceStore; |
|
74 |
|
75 /** temporarily stored value of typeface file id. Set by AddFile() and InstallFile() for later use in RemoveFile() */ |
|
76 TInt iLastTypefaceFileId; |
|
77 }; |
|
78 |
|
79 #endif /* __T_DATA_FBS_TYPEFACE_STORE_H__ */ |