photosgallery/gallery/inc/glxdocument.h
changeset 0 4e91876724a2
child 1 9ba538e329bd
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     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_GLXDOCUMENT_H
       
    22 #define C_GLXDOCUMENT_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 CGlxDocument : public CAknDocument
       
    37     {
       
    38 public:
       
    39     static CGlxDocument* NewL(CEikApplication& aApp);
       
    40     static CGlxDocument* NewLC(CEikApplication& aApp);
       
    41     ~CGlxDocument();
       
    42 
       
    43 public: // from CAknDocument
       
    44     CEikAppUi* CreateAppUiL();
       
    45 
       
    46 public: // from CEikDocument
       
    47     void OpenFileL( CFileStore*& aFileStore, RFile& aFile );
       
    48     
       
    49 private:
       
    50     void ConstructL();
       
    51 
       
    52     CGlxDocument(CEikApplication& aApp);
       
    53     void ResetDocument();
       
    54     
       
    55 private:
       
    56     MMPXViewUtility* iViewUtility;
       
    57     CGlxImageViewerManager* iImageViewerInstance;
       
    58 	};
       
    59 
       
    60 #endif // C_GLXDOCUMENT_H