idlehomescreen/examples/mcsexample/src/MCSExampleDocument.cpp
branchRCL_3
changeset 102 ba63c83f4716
parent 93 b01126ce0bec
child 103 966d119a7e67
equal deleted inserted replaced
93:b01126ce0bec 102:ba63c83f4716
     1 /*
       
     2 * Copyright (c) 2010 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:
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "MCSExampleAppUi.h"
       
    20 #include "MCSExampleDocument.h"
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // CMCSExampleDocument::NewL()
       
    26 // Two-phased constructor.
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CMCSExampleDocument* CMCSExampleDocument::NewL(CEikApplication& aApp)
       
    30     {
       
    31     CMCSExampleDocument* self = NewLC(aApp);
       
    32     CleanupStack::Pop(self);
       
    33     return self;
       
    34     }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CMCSExampleDocument::NewLC()
       
    38 // Two-phased constructor.
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 CMCSExampleDocument* CMCSExampleDocument::NewLC(CEikApplication& aApp)
       
    42     {
       
    43     CMCSExampleDocument* self = new (ELeave) CMCSExampleDocument(aApp);
       
    44 
       
    45     CleanupStack::PushL(self);
       
    46     self->ConstructL();
       
    47     return self;
       
    48     }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // CMCSExampleDocument::ConstructL()
       
    52 // Symbian 2nd phase constructor can leave.
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 void CMCSExampleDocument::ConstructL()
       
    56     {
       
    57     // No implementation required
       
    58     }
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // CMCSExampleDocument::CMCSExampleDocument()
       
    62 // C++ default constructor can NOT contain any code, that might leave.
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 CMCSExampleDocument::CMCSExampleDocument(CEikApplication& aApp) :
       
    66     CAknDocument(aApp)
       
    67     {
       
    68     // No implementation required
       
    69     }
       
    70 
       
    71 // ---------------------------------------------------------------------------
       
    72 // CMCSExampleDocument::~CMCSExampleDocument()
       
    73 // Destructor.
       
    74 // ---------------------------------------------------------------------------
       
    75 //
       
    76 CMCSExampleDocument::~CMCSExampleDocument()
       
    77     {
       
    78     // No implementation required
       
    79     }
       
    80 
       
    81 // ---------------------------------------------------------------------------
       
    82 // CMCSExampleDocument::CreateAppUiL()
       
    83 // Constructs CreateAppUi.
       
    84 // ---------------------------------------------------------------------------
       
    85 //
       
    86 CEikAppUi* CMCSExampleDocument::CreateAppUiL()
       
    87     {
       
    88     // Create the application user interface, and return a pointer to it;
       
    89     // the framework takes ownership of this object
       
    90     return new (ELeave) CMCSExampleAppUi;
       
    91     }
       
    92 
       
    93 // End of File