1 // Copyright (c) 1997-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __BIFBASE_H__ |
|
17 #define __BIFBASE_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <s32std.h> // for TSwizzle |
|
21 #include <apmrec.h> // for TRecognitionConfidence |
|
22 |
|
23 /** Base classes for BIO-message Information File (BIF) Reader |
|
24 |
|
25 @internalTechnology |
|
26 @released |
|
27 */ |
|
28 class CBioInfoFile : public CBase |
|
29 { |
|
30 public: |
|
31 ~CBioInfoFile(); |
|
32 |
|
33 protected: |
|
34 CBioInfoFile(RFs& aFs); |
|
35 void ConstructL(); |
|
36 |
|
37 protected: |
|
38 class CIdHeader : public CBase |
|
39 { |
|
40 public: |
|
41 CIdHeader(); |
|
42 ~CIdHeader(); |
|
43 |
|
44 void InternalizeL(RReadStream& aStream); |
|
45 void ExternalizeL(RWriteStream& aStream) const; |
|
46 |
|
47 public: |
|
48 TBioMsgIdType iType; |
|
49 CApaDataRecognizerType::TRecognitionConfidence iConfidence; |
|
50 TSwizzle<HBufC> iText; |
|
51 TUint16 iPort; |
|
52 TUid iCharacterSet; |
|
53 TInt16 iGeneralIdData; |
|
54 }; |
|
55 |
|
56 class TIconZoomLevel |
|
57 { |
|
58 public: |
|
59 void InternalizeL(RReadStream& aStream); |
|
60 void ExternalizeL(RWriteStream& aStream) const; |
|
61 |
|
62 public: |
|
63 TInt16 iZoomLevel; |
|
64 }; |
|
65 |
|
66 protected: |
|
67 RFs& iFs; |
|
68 |
|
69 // |
|
70 // Simple data to be read/write to/from BIF file |
|
71 TUid iMessageTypeUid; |
|
72 |
|
73 HBufC* iMessageParserName; |
|
74 |
|
75 TUid iMessageAppUid; |
|
76 HBufC* iMessageAppCtrlName; |
|
77 HBufC* iDescription; |
|
78 TInt16 iGeneralData1; |
|
79 TInt16 iGeneralData2; |
|
80 TInt16 iGeneralData3; |
|
81 HBufC* iFileExtension; |
|
82 HBufC* iIconsFilename; |
|
83 |
|
84 // |
|
85 // Complex data to be read/write to/from BIF file |
|
86 CArrayPtrFlat<CIdHeader>* iIdHeaderArray; |
|
87 CArrayFix<TIconZoomLevel>* iIconZoomLevelArray; |
|
88 }; |
|
89 |
|
90 #endif // __BIFBASE_H__ |
|