|
1 // Copyright (c) 2002-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 __IMAGECODEC_DEF_H__ |
|
17 #define __IMAGECODEC_DEF_H__ |
|
18 |
|
19 #include <e32cmn.h> |
|
20 /** |
|
21 @internalComponent |
|
22 |
|
23 |
|
24 Class used to shadow the descriptor supplying the image data. |
|
25 |
|
26 It maintains a flag to determine whether the descriptor contains a |
|
27 filename or the image data itself. |
|
28 |
|
29 This class is not intended for public use. |
|
30 */ |
|
31 class TImageParameterData |
|
32 { |
|
33 public: |
|
34 |
|
35 /** |
|
36 Flag used to determine what the descriptor contains. |
|
37 */ |
|
38 enum TImageParameterDataFlag |
|
39 { |
|
40 /** Field not set. |
|
41 */ |
|
42 ENull = 0x00000000, |
|
43 |
|
44 /** Descriptor is a filename. |
|
45 */ |
|
46 EFilename = 0x00000001, |
|
47 |
|
48 /** Descriptor contains data. |
|
49 */ |
|
50 EData = 0x00000002 |
|
51 }; |
|
52 |
|
53 TImageParameterData(); |
|
54 void SetFilenamePtr(const TDesC* aSourceFilenamePtr); |
|
55 void SetDataPtr(const TDesC8* aSourceDataPtr); |
|
56 IMPORT_C TBool IsFilename() const; |
|
57 IMPORT_C const TDesC* SourceFilenamePtr() const; |
|
58 IMPORT_C const TDesC8* SourceDataPtr() const; |
|
59 TBool IsDataTypeDefined() const; |
|
60 |
|
61 private: |
|
62 TImageParameterDataFlag iImageParameterDataFlag; |
|
63 union |
|
64 { |
|
65 const TDesC* iSourceFilenamePtr; |
|
66 const TDesC8* iSourceDataPtr; |
|
67 }; |
|
68 }; |
|
69 |
|
70 |
|
71 |
|
72 #endif // __IMAGECODEC_H__ |