|
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: Document class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef C_GLXIVWRDOCUMENT_H |
|
22 #define C_GLXIVWRDOCUMENT_H |
|
23 |
|
24 #include <AknDoc.h> |
|
25 |
|
26 // Forward references |
|
27 class CEikApplication; |
|
28 class MMPXViewUtility; |
|
29 class CGlxImageViewerManager; |
|
30 |
|
31 /** |
|
32 * CViewerDocument |
|
33 * |
|
34 * @lib ViewerApplication |
|
35 */ |
|
36 class CGlxIVwrDocument : public CAknDocument |
|
37 { |
|
38 public: |
|
39 static CGlxIVwrDocument* NewL(CEikApplication& aApp); |
|
40 static CGlxIVwrDocument* NewLC(CEikApplication& aApp); |
|
41 ~CGlxIVwrDocument(); |
|
42 |
|
43 public: // from CAknDocument |
|
44 CEikAppUi* CreateAppUiL(); |
|
45 |
|
46 public: // from CEikDocument |
|
47 CFileStore* OpenFileL( TBool aDoOpen, const TDesC& aFilename, RFs& aFs ); |
|
48 void OpenFileL( CFileStore*& aFileStore, RFile& aFile ); |
|
49 |
|
50 private: |
|
51 void ConstructL(); |
|
52 |
|
53 CGlxIVwrDocument(CEikApplication& aApp); |
|
54 void ResetDocument(); |
|
55 |
|
56 private: |
|
57 MMPXViewUtility* iViewUtility; |
|
58 CGlxImageViewerManager* iImageViewerInstance; |
|
59 }; |
|
60 |
|
61 #endif // C_GLXIVWRDOCUMENT_H |