bluetoothengine/btui/src/BTUIDocument.cpp
branchRCL_3
changeset 56 9386f31cc85b
parent 0 f63038272f30
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
       
     1 /*
       
     2 * Copyright (c) 2002-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:    This is the implementation of document class.
       
    15  *
       
    16 */
       
    17 
       
    18  
       
    19 // INCLUDE FILES
       
    20 
       
    21 #include "BTUIDocument.h"
       
    22 #include "debug.h"
       
    23 #include "BTUIAppUi.h"
       
    24 
       
    25 // ================= MEMBER FUNCTIONS =======================
       
    26 
       
    27 // ----------------------------------------------------
       
    28 // Destructor
       
    29 // ----------------------------------------------------
       
    30 //
       
    31 CBTUIDocument::~CBTUIDocument()
       
    32     {
       
    33     TRACE_FUNC
       
    34   //  delete iModel;
       
    35     }
       
    36 
       
    37 // ----------------------------------------------------
       
    38 // Symbian OS default constructor can leave.
       
    39 // ----------------------------------------------------
       
    40 //
       
    41 void CBTUIDocument::ConstructL()
       
    42     {
       
    43     TRACE_FUNC
       
    44     }
       
    45 
       
    46 // ----------------------------------------------------
       
    47 // Two-phased constructor
       
    48 // ----------------------------------------------------
       
    49 //
       
    50 CBTUIDocument* CBTUIDocument::NewL( CAknApplication& aApp ) // CBTUIApp reference
       
    51     {
       
    52     CBTUIDocument* self = new (ELeave) CBTUIDocument( aApp );
       
    53     CleanupStack::PushL( self );
       
    54     self->ConstructL();
       
    55     CleanupStack::Pop( self);
       
    56 
       
    57     return self;
       
    58     }
       
    59 
       
    60 // ----------------------------------------------------
       
    61 // CBTUIDocument::CreateAppUiL()
       
    62 // constructs CBTUIAppUi
       
    63 // ----------------------------------------------------
       
    64 //
       
    65 CEikAppUi* CBTUIDocument::CreateAppUiL()
       
    66     {
       
    67     return new (ELeave) CBTUIAppUi;
       
    68     }