phonebookui/Phonebook2/ccapplication/ccapp/src/ccaappdocument.cpp
branchRCL_3
changeset 20 f4a778e096c2
parent 0 e686773b3f54
equal deleted inserted replaced
19:5b6f26637ad3 20:f4a778e096c2
       
     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 "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:  An instance of class CCCAAppDocument is the 
       
    15 *                Document part of the AVKON application 
       
    16 *                framework for the CCAApp 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #include "ccaappappui.h"
       
    22 #include "ccaappdocument.h"
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // CCCAAppDocument::NewL
       
    26 // ---------------------------------------------------------------------------
       
    27 //
       
    28 CCCAAppDocument* CCCAAppDocument::NewL( CEikApplication& aApp )
       
    29     {
       
    30     CCCAAppDocument* self = NewLC(aApp);
       
    31     CleanupStack::Pop(self);
       
    32     return self;
       
    33     }
       
    34 
       
    35 // ---------------------------------------------------------------------------
       
    36 // CCCAAppDocument::NewLC
       
    37 // ---------------------------------------------------------------------------
       
    38 //
       
    39 CCCAAppDocument* CCCAAppDocument::NewLC( CEikApplication& aApp )
       
    40     {
       
    41     CCCAAppDocument* self = new (ELeave) CCCAAppDocument( aApp );
       
    42     CleanupStack::PushL( self );
       
    43     self->ConstructL();
       
    44     return self;
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // CCCAAppDocument::ConstructL
       
    49 // ---------------------------------------------------------------------------
       
    50 //
       
    51 void CCCAAppDocument::ConstructL()
       
    52     {
       
    53     }    
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // CCCAAppDocument::CCCAAppDocument
       
    57 // ---------------------------------------------------------------------------
       
    58 //
       
    59 CCCAAppDocument::CCCAAppDocument( CEikApplication& aApp ) 
       
    60     : CAknDocument( aApp ) 
       
    61     {
       
    62 	// no implementation required
       
    63     }
       
    64 
       
    65 // ---------------------------------------------------------------------------
       
    66 // CCCAAppDocument::~CCCAAppDocument
       
    67 // ---------------------------------------------------------------------------
       
    68 //
       
    69 CCCAAppDocument::~CCCAAppDocument()
       
    70     {
       
    71     //As last operation call FinalClose to let Ecom unload plugin dlls  
       
    72     REComSession::FinalClose();      
       
    73     }
       
    74 
       
    75 // ---------------------------------------------------------------------------
       
    76 // CCCAAppDocument::CreateAppUiL
       
    77 // ---------------------------------------------------------------------------
       
    78 //
       
    79 CEikAppUi* CCCAAppDocument::CreateAppUiL()
       
    80     {
       
    81     // Create the application user interface, and return a pointer to it,
       
    82     // the framework takes ownership of this object
       
    83     CEikAppUi* appUi = new (ELeave) CCCAAppAppUi;
       
    84     return appUi;
       
    85     }
       
    86 
       
    87 //End Of File
       
    88