photosgallery/imgvwr/inc/glxivwrdocument.h
author William Roberts <williamr@symbian.org>
Thu, 08 Apr 2010 20:18:37 +0100
branchCompilerCompatibility
changeset 20 d1bdfdf534bd
parent 1 9ba538e329bd
permissions -rw-r--r--
Add missing EXPORT_C in cpp files, and reinstate the DEF file additions, to fix Bug 2473 Mystery solved - RVCT 2.2 only exports functions on the basis of EXPORT_C, but RVCT 4.0 is triggered by the IMPORT_C as well

/*
 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description:    Document class 
 *
 */




#ifndef C_GLXIVWRDOCUMENT_H
#define C_GLXIVWRDOCUMENT_H

#include <AknDoc.h>

// Forward references
class CEikApplication;
class MMPXViewUtility;
class CGlxImageViewerManager;

/**
 *  CViewerDocument
 *
 *  @lib ViewerApplication
 */
class CGlxIVwrDocument : public CAknDocument
    {
public:
    static CGlxIVwrDocument* NewL(CEikApplication& aApp);
    static CGlxIVwrDocument* NewLC(CEikApplication& aApp);
    ~CGlxIVwrDocument();

public: // from CAknDocument
    CEikAppUi* CreateAppUiL();

public: // from CEikDocument
    CFileStore* OpenFileL( TBool aDoOpen, const TDesC& aFilename, RFs& aFs );
    void OpenFileL( CFileStore*& aFileStore, RFile& aFile );

private:
    void ConstructL();

    CGlxIVwrDocument(CEikApplication& aApp);
    void ResetDocument();

private:
    MMPXViewUtility* iViewUtility;
    CGlxImageViewerManager* iImageViewerInstance;
    };

#endif // C_GLXIVWRDOCUMENT_H