multimediacommsengine/tsrc/MCETestUI/src/CMCETestUIDoc.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2009 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 
       
    19 
       
    20 
       
    21 #include <eikapp.h>
       
    22 #include <akndoc.h>
       
    23 
       
    24 #include "CMCETestUIEngine.h"
       
    25 
       
    26 #include "CMCETestUIDoc.h"
       
    27 #include "CMCETestUIAppUi.h"
       
    28 
       
    29 
       
    30 
       
    31 
       
    32 CMCETestUIDoc* CMCETestUIDoc::NewL(CEikApplication& aApp)
       
    33     {
       
    34     CMCETestUIDoc* self = NewLC(aApp);
       
    35     CleanupStack::Pop(self);
       
    36     return self;
       
    37     }
       
    38 CMCETestUIDoc* CMCETestUIDoc::NewLC(CEikApplication& aApp)
       
    39     {
       
    40     CMCETestUIDoc* self = new (ELeave) CMCETestUIDoc(aApp);
       
    41     CleanupStack::PushL(self);
       
    42     self->ConstructL();
       
    43     return self;
       
    44     }
       
    45 void CMCETestUIDoc::ConstructL()
       
    46     {
       
    47     iEngine = CMCETestUIEngine::NewL();
       
    48     }    
       
    49 
       
    50 CMCETestUIDoc::CMCETestUIDoc(CEikApplication& aApp) 
       
    51     : CAknDocument(aApp) 
       
    52     {
       
    53     // NOP  
       
    54     }   
       
    55 
       
    56 
       
    57 CMCETestUIDoc::~CMCETestUIDoc()
       
    58     {
       
    59     delete iEngine;
       
    60     }
       
    61 
       
    62 CEikAppUi* CMCETestUIDoc::CreateAppUiL()
       
    63     {
       
    64     
       
    65     CEikAppUi* appUi = new ( ELeave ) CMCETestUIAppUi( *iEngine );
       
    66     //iMCETestUIAppUi = ( CMCETestUIAppUi* ) appUi;
       
    67     return appUi;
       
    68     
       
    69     }
       
    70