hwrmhaptics/examples/hapticstestapp/src/hapticstestdocument.cpp
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 implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "hapticstestappui.h"
       
    20 #include "hapticstestdocument.h"
       
    21 
       
    22 // ---------------------------------------------------------
       
    23 // Standard Symbian OS construction sequence
       
    24 // ---------------------------------------------------------
       
    25 //
       
    26 CHapticsTestDocument* CHapticsTestDocument::NewL(CEikApplication& aApp)
       
    27     {
       
    28     CHapticsTestDocument* self = NewLC(aApp);
       
    29     CleanupStack::Pop(self);
       
    30     return self;
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------
       
    34 // Standard Symbian OS construction sequence
       
    35 // ---------------------------------------------------------
       
    36 //
       
    37 CHapticsTestDocument* CHapticsTestDocument::NewLC(CEikApplication& aApp)
       
    38     {
       
    39     CHapticsTestDocument* self = new (ELeave) CHapticsTestDocument(aApp);
       
    40     CleanupStack::PushL(self);
       
    41     self->ConstructL();
       
    42     return self;
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------
       
    46 // Second phase construction.
       
    47 // ---------------------------------------------------------
       
    48 //
       
    49 void CHapticsTestDocument::ConstructL()
       
    50     {
       
    51     // no implementation required
       
    52     }    
       
    53 
       
    54 // ---------------------------------------------------------
       
    55 // Constructor.
       
    56 // ---------------------------------------------------------
       
    57 //
       
    58 CHapticsTestDocument::CHapticsTestDocument(CEikApplication& aApp) 
       
    59     : CAknDocument(aApp) 
       
    60     {
       
    61     // no implementation required
       
    62     }
       
    63 
       
    64 // ---------------------------------------------------------
       
    65 // Destructor.
       
    66 // ---------------------------------------------------------
       
    67 //
       
    68 CHapticsTestDocument::~CHapticsTestDocument()
       
    69     {
       
    70     // no implementation required
       
    71     }
       
    72 
       
    73 // ---------------------------------------------------------
       
    74 // Creates AppUi component.
       
    75 // ---------------------------------------------------------
       
    76 //
       
    77 CEikAppUi* CHapticsTestDocument::CreateAppUiL()
       
    78     {
       
    79     // Create the application user interface, and return a pointer to it,
       
    80     // the framework takes ownership of this object
       
    81     CEikAppUi* appUi = new (ELeave) CHapticsTestAppUi;
       
    82     return appUi;
       
    83     }
       
    84