deviceencryption/DevEncUi/inc/DevEncUiDocument.h
branchRCL_3
changeset 20 491b3ed49290
parent 19 95243422089a
child 21 65326cf895ed
equal deleted inserted replaced
19:95243422089a 20:491b3ed49290
     1 /*
       
     2 * Copyright (c) 2005 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 of the application.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __DEVENCUIDOCUMENT_H__
       
    19 #define __DEVENCUIDOCUMENT_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <AknDoc.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CDevEncUiAppUi;
       
    26 class CEikApplication;
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * CDevEncUiDocument application class.
       
    33 * An instance of class CDevEncUiDocument is the Document part of the
       
    34 * AVKON application framework for the DEVENCUI example application.
       
    35 */
       
    36 class CDevEncUiDocument : public CAknDocument
       
    37     {
       
    38     public: // Constructors and destructor
       
    39 
       
    40         /**
       
    41         * NewL.
       
    42         * Two-phased constructor.
       
    43         * Construct a CDevEncUiDocument for the AVKON application aApp
       
    44         * using two phase construction, and return a pointer
       
    45         * to the created object.
       
    46         * @param aApp Application creating this document.
       
    47         * @return A pointer to the created instance of CDevEncUiDocument.
       
    48         */
       
    49         static CDevEncUiDocument* NewL( CEikApplication& aApp );
       
    50 
       
    51         /**
       
    52         * NewLC.
       
    53         * Two-phased constructor.
       
    54         * Construct a CDevEncUiDocument for the AVKON application aApp
       
    55         * using two phase construction, and return a pointer
       
    56         * to the created object.
       
    57         * @param aApp Application creating this document.
       
    58         * @return A pointer to the created instance of CDevEncUiDocument.
       
    59         */
       
    60         static CDevEncUiDocument* NewLC( CEikApplication& aApp );
       
    61 
       
    62         /**
       
    63         * ~CDevEncUiDocument
       
    64         * Virtual Destructor.
       
    65         */
       
    66         virtual ~CDevEncUiDocument();
       
    67 
       
    68     public: // Functions from base classes
       
    69 
       
    70         /**
       
    71         * CreateAppUiL
       
    72         * From CEikDocument, CreateAppUiL.
       
    73         * Create a CDevEncUiAppUi object and return a pointer to it.
       
    74         * The object returned is owned by the Uikon framework.
       
    75         * @return Pointer to created instance of AppUi.
       
    76         */
       
    77         CEikAppUi* CreateAppUiL();
       
    78 
       
    79     private: // Constructors
       
    80 
       
    81         /**
       
    82         * ConstructL
       
    83         * 2nd phase constructor.
       
    84         */
       
    85         void ConstructL();
       
    86 
       
    87         /**
       
    88         * CDevEncUiDocument.
       
    89         * C++ default constructor.
       
    90         * @param aApp Application creating this document.
       
    91         */
       
    92         CDevEncUiDocument( CEikApplication& aApp );
       
    93         
       
    94         /**
       
    95          * From CEikDocument.
       
    96          * Always return NULL, so as not to create a INI file.
       
    97          *
       
    98          * @param aDoOpen ETrue if file exists. (ignored)
       
    99          * @param aFilename file to view. 
       
   100          * @param aFs FileServerSession. (ignored)
       
   101          * @return file store. (always NULL)
       
   102          */
       
   103         CFileStore* OpenFileL(
       
   104             TBool /*aDoOpen*/, 
       
   105             const TDesC& aFilename,
       
   106             RFs& /*aFs*/);
       
   107                         
       
   108         /**
       
   109          * From CEikDocument.
       
   110          *
       
   111          * @param aFileStore. (ignored)
       
   112          * @param aFile. 
       
   113          */
       
   114         void OpenFileL( 
       
   115             CFileStore*& /*aFileStore*/,
       
   116             RFile& aFile);
       
   117         	
       
   118     };
       
   119 
       
   120 #endif // __DEVENCUIDOCUMENT_H__
       
   121 
       
   122 // End of File