1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/bifbase.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,90 @@
1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// 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
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef __BIFBASE_H__
1.20 +#define __BIFBASE_H__
1.21 +
1.22 +#include <e32base.h>
1.23 +#include <s32std.h> // for TSwizzle
1.24 +#include <apmrec.h> // for TRecognitionConfidence
1.25 +
1.26 +/** Base classes for BIO-message Information File (BIF) Reader
1.27 +
1.28 +@internalTechnology
1.29 +@released
1.30 +*/
1.31 +class CBioInfoFile : public CBase
1.32 + {
1.33 +public:
1.34 + ~CBioInfoFile();
1.35 +
1.36 +protected:
1.37 + CBioInfoFile(RFs& aFs);
1.38 + void ConstructL();
1.39 +
1.40 +protected:
1.41 + class CIdHeader : public CBase
1.42 + {
1.43 + public:
1.44 + CIdHeader();
1.45 + ~CIdHeader();
1.46 +
1.47 + void InternalizeL(RReadStream& aStream);
1.48 + void ExternalizeL(RWriteStream& aStream) const;
1.49 +
1.50 + public:
1.51 + TBioMsgIdType iType;
1.52 + CApaDataRecognizerType::TRecognitionConfidence iConfidence;
1.53 + TSwizzle<HBufC> iText;
1.54 + TUint16 iPort;
1.55 + TUid iCharacterSet;
1.56 + TInt16 iGeneralIdData;
1.57 + };
1.58 +
1.59 + class TIconZoomLevel
1.60 + {
1.61 + public:
1.62 + void InternalizeL(RReadStream& aStream);
1.63 + void ExternalizeL(RWriteStream& aStream) const;
1.64 +
1.65 + public:
1.66 + TInt16 iZoomLevel;
1.67 + };
1.68 +
1.69 +protected:
1.70 + RFs& iFs;
1.71 +
1.72 + //
1.73 + // Simple data to be read/write to/from BIF file
1.74 + TUid iMessageTypeUid;
1.75 +
1.76 + HBufC* iMessageParserName;
1.77 +
1.78 + TUid iMessageAppUid;
1.79 + HBufC* iMessageAppCtrlName;
1.80 + HBufC* iDescription;
1.81 + TInt16 iGeneralData1;
1.82 + TInt16 iGeneralData2;
1.83 + TInt16 iGeneralData3;
1.84 + HBufC* iFileExtension;
1.85 + HBufC* iIconsFilename;
1.86 +
1.87 + //
1.88 + // Complex data to be read/write to/from BIF file
1.89 + CArrayPtrFlat<CIdHeader>* iIdHeaderArray;
1.90 + CArrayFix<TIconZoomLevel>* iIconZoomLevelArray;
1.91 + };
1.92 +
1.93 +#endif // __BIFBASE_H__