equal
deleted
inserted
replaced
|
1 // Copyright (c) 1999-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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __OTACONVERT_H__ |
|
17 #define __OTACONVERT_H__ |
|
18 |
|
19 #include "icl/ImagePlugin.h" |
|
20 #include "OTACodec.h" |
|
21 |
|
22 // Decoder. |
|
23 class COtaReadCodec; |
|
24 class COtaDecoder : public CImageDecoderPlugin |
|
25 { |
|
26 public: |
|
27 static COtaDecoder* NewL(); |
|
28 virtual ~COtaDecoder(); |
|
29 |
|
30 virtual void ImageType(TInt aFrameNumber, TUid& aImageType, TUid& aImageSubType) const; |
|
31 CFrameInfoStrings* FrameInfoStringsL(RFs& aFs, TInt aFrameNumber); |
|
32 |
|
33 private: |
|
34 void ScanDataL(); |
|
35 COtaDecoder(); |
|
36 |
|
37 // From CImageDecoderPlugin |
|
38 // Called by ScanDataL. |
|
39 // Opens file, scans header and validates format. |
|
40 void ReadFormatL(); |
|
41 |
|
42 private: |
|
43 TSize iSize; |
|
44 }; |
|
45 |
|
46 #endif // __OTACONVERT_H__ |
|
47 |