williamr@2: /* williamr@2: * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: williamr@2: * williamr@2: */ williamr@2: williamr@2: #ifndef __AKNDOC_H__ williamr@2: #define __AKNDOC_H__ williamr@2: williamr@2: // INCLUDES williamr@2: williamr@2: #include williamr@2: williamr@2: // CLASS DECLARATION williamr@2: williamr@2: /** williamr@2: * Base class for a Series 60 application document. williamr@2: * williamr@2: * @since Series 60 0.9 williamr@2: */ williamr@2: class CAknDocument : public CEikDocument williamr@2: { williamr@2: public: // from CEikDocument williamr@2: williamr@2: /** williamr@2: * From @c CEikDocument. Opens a file. williamr@2: * @param aDoOpen Open an existing file if @c ETrue, williamr@2: * otherwise create a new file. Not used. williamr@2: * @param aFilename The file to open or create. Not used. williamr@2: * @param aFs File server session to use. Not used. williamr@2: * @return Pointer to file store object. williamr@2: */ williamr@2: IMPORT_C CFileStore* OpenFileL(TBool aDoOpen, williamr@2: const TDesC& aFilename, williamr@2: RFs& aFs); williamr@2: IMPORT_C void OpenFileL(CFileStore*& aFileStore, RFile& aFile); williamr@2: protected: williamr@2: williamr@2: /** williamr@2: * C++ default constructor. williamr@2: * @param aApp The application instance with which the new document is williamr@2: * associated. williamr@2: */ williamr@2: IMPORT_C CAknDocument(CEikApplication& aApp); williamr@2: }; williamr@2: williamr@2: #endif williamr@2: