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