|
1 /* |
|
2 * Copyright (c) 2008-2009 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 "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: Image Viewer Manager header file : CCGlxImageViewerManager declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GLXIMAGEVIEWERMANAGER_H |
|
20 #define GLXIMAGEVIEWERMANAGER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 class RFile; |
|
28 class RFile64; |
|
29 |
|
30 /** |
|
31 * CGlxImageViewerManager |
|
32 * |
|
33 */ |
|
34 class CGlxImageViewerManager : public CBase |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Destructor. |
|
40 */ |
|
41 ~CGlxImageViewerManager(); |
|
42 |
|
43 /** |
|
44 * Singleton constructor. |
|
45 */ |
|
46 static CGlxImageViewerManager* InstanceL(); |
|
47 |
|
48 public: |
|
49 IMPORT_C HBufC* ImageUri(); |
|
50 IMPORT_C RFile64& ImageFileHandle(); |
|
51 IMPORT_C TBool IsPrivate(); |
|
52 IMPORT_C void Close( void ); |
|
53 IMPORT_C void SetImageUriL(const TDesC& aFileName); |
|
54 IMPORT_C void SetImageFileHandleL(const RFile& aFileHandle); |
|
55 IMPORT_C void Reset(); |
|
56 |
|
57 private: |
|
58 |
|
59 /** |
|
60 * Two-phased constructor. |
|
61 */ |
|
62 static CGlxImageViewerManager* NewL(); |
|
63 |
|
64 /** |
|
65 * Two-phased constructor. |
|
66 */ |
|
67 static CGlxImageViewerManager* NewLC(); |
|
68 |
|
69 /** |
|
70 * Constructor for performing 1st stage construction |
|
71 */ |
|
72 CGlxImageViewerManager(); |
|
73 |
|
74 /** |
|
75 * EPOC default constructor for performing 2nd stage construction |
|
76 */ |
|
77 void ConstructL(); |
|
78 |
|
79 private: |
|
80 /// image file uri in case of Photos starting as Image viewer |
|
81 HBufC* iImageUri; |
|
82 |
|
83 /// Handle to image file which will be shown in Image viewer |
|
84 RFile64* iFile; |
|
85 |
|
86 /// Flag that stores if the image file is in a private folder. |
|
87 /// ETrue means the image is private, else EFalse |
|
88 TBool iIsPrivate; |
|
89 }; |
|
90 |
|
91 #endif // GLXIMAGEVIEWERMANAGER_H |