5
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-2007 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 "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: This Class is used to find resolution of image file
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef MGIMAGERESOLUTION_H_
|
|
19 |
#define MGIMAGERESOLUTION_H_
|
|
20 |
|
|
21 |
#include<e32base.h>
|
|
22 |
#include<ImageConversion.h>
|
|
23 |
#include<icl/imagedata.h>
|
|
24 |
#include<f32file.h>
|
|
25 |
|
|
26 |
|
|
27 |
#include"mgmresolution.h"
|
|
28 |
|
|
29 |
// CLASS DECLARATION
|
|
30 |
|
|
31 |
/**
|
|
32 |
* CImageResolution class This class can be used to find the resolution of image file
|
|
33 |
*
|
|
34 |
* @since Series60 v3.2
|
|
35 |
*/
|
|
36 |
class CImageResolution : public CBase , public MResolution
|
|
37 |
{
|
|
38 |
public:
|
|
39 |
|
|
40 |
/**
|
|
41 |
* Two-phased constructor
|
|
42 |
* @since Series60 v3.2
|
|
43 |
* @param aUrl Url of the image file
|
|
44 |
* @return CImageResolution* Returns the instance of
|
|
45 |
* CImageResolution.
|
|
46 |
*/
|
|
47 |
static CImageResolution* NewL(TDesC& aUrl);
|
|
48 |
|
|
49 |
/**
|
|
50 |
* Method to get resolution of image file
|
|
51 |
* @since Series60 v3.2
|
|
52 |
* @param aSize In return it contains size of image file
|
|
53 |
* @return TBool ETrue when it is able to get resolution of image else EFalse
|
|
54 |
*
|
|
55 |
*/
|
|
56 |
TBool GetresolutionL(TSize& aSize);
|
|
57 |
/**
|
|
58 |
* Destructor
|
|
59 |
*/
|
|
60 |
~CImageResolution();
|
|
61 |
|
|
62 |
private:
|
|
63 |
/**
|
|
64 |
* Symbian ConstructL
|
|
65 |
* @since Series60 v3.2
|
|
66 |
* @param aUrl Url of the image file
|
|
67 |
*
|
|
68 |
*/
|
|
69 |
|
|
70 |
void ConstructL(TDesC& aUrl);
|
|
71 |
/**
|
|
72 |
* C++ constructor
|
|
73 |
*/
|
|
74 |
CImageResolution();
|
|
75 |
|
|
76 |
private:
|
|
77 |
/**
|
|
78 |
* Image decoder instance
|
|
79 |
*/
|
|
80 |
|
|
81 |
CImageDecoder* iImageDecoder;
|
|
82 |
/**
|
|
83 |
* TFrameInfo instance
|
|
84 |
*/
|
|
85 |
|
|
86 |
TFrameInfo iFrameInfo;
|
|
87 |
/**
|
|
88 |
* File server session
|
|
89 |
*/
|
|
90 |
|
|
91 |
RFs iFs;
|
|
92 |
/**
|
|
93 |
* RFile instance
|
|
94 |
*/
|
|
95 |
|
|
96 |
RFile iFile;
|
|
97 |
};
|
|
98 |
|
|
99 |
|
|
100 |
#endif /* MGIMAGERESOLUTION_H_ */
|