hwrmhaptics/examples/hapticstestapp/inc/hapticstestdocument.h
changeset 76 cb32bcc88bad
equal deleted inserted replaced
73:d38941471f1c 76:cb32bcc88bad
       
     1 /*
       
     2 * Copyright (c) 2007 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 the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Document class definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __HAPTICSTEST_DOCUMENT_H__
       
    20 #define __HAPTICSTEST_DOCUMENT_H__
       
    21 
       
    22 #include <akndoc.h>
       
    23 
       
    24 // Forward references
       
    25 class CHapticsTestAppUi;
       
    26 class CEikApplication;
       
    27 
       
    28 
       
    29 /**
       
    30  * An instance of class ChapticstestDocument is the Document part of the AVKON
       
    31  * application framework for the hapticstest example application
       
    32  */
       
    33 class CHapticsTestDocument : public CAknDocument
       
    34     {
       
    35 public:
       
    36 
       
    37    /**
       
    38     * Construct a ChapticstestDocument for the AVKON application aApp 
       
    39     * using two phase construction, and return a pointer to the created object
       
    40     *
       
    41     * @param aApp application creating this document
       
    42     * @return a pointer to the created instance of ChapticstestDocument
       
    43     */
       
    44     static CHapticsTestDocument* NewL(CEikApplication& aApp);
       
    45 
       
    46    /**
       
    47     * Construct a ChapticstestDocument for the AVKON application aApp 
       
    48     * using two phase construction, and return a pointer to the created object
       
    49     *
       
    50     * @param aApp application creating this document
       
    51     * @return a pointer to the created instance of ChapticstestDocument
       
    52     */
       
    53     static CHapticsTestDocument* NewLC(CEikApplication& aApp);
       
    54 
       
    55    /**
       
    56     * Destroy the object and release all memory objects
       
    57     */
       
    58     ~CHapticsTestDocument();
       
    59 
       
    60 public: // from CAknDocument
       
    61 
       
    62    /**
       
    63     * Create a ChapticstestAppUi object and return a pointer to it
       
    64     *
       
    65     * @return a pointer to the created instance of the AppUi created
       
    66     */
       
    67     CEikAppUi* CreateAppUiL();
       
    68 
       
    69 private:
       
    70 
       
    71    /**
       
    72     * Perform the second phase construction of a ChapticstestDocument object
       
    73     */
       
    74     void ConstructL();
       
    75 
       
    76    /**
       
    77     * Perform the first phase of two phase construction
       
    78     *
       
    79     * @param application creating this document
       
    80     */
       
    81     CHapticsTestDocument(CEikApplication& aApp);
       
    82 
       
    83     };
       
    84 
       
    85 
       
    86 #endif // __HAPTICSTEST_DOCUMENT_H__