src/NPRDocument.cpp
changeset 0 0049171ecffb
equal deleted inserted replaced
-1:000000000000 0:0049171ecffb
       
     1 /*
       
     2  ============================================================================
       
     3  Name	: NPRDocument.cpp
       
     4  Author	: John Kern
       
     5  
       
     6  Copyright (c) 2009 Symbian Foundation Ltd
       
     7  This component and the accompanying materials are made available
       
     8  under the terms of the License "Eclipse Public License v1.0"
       
     9  which accompanies this distribution, and is available
       
    10  at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    11 
       
    12  Initial Contributors:
       
    13  - Symbian Foundation Ltd - initial contribution.
       
    14  
       
    15  Contributors:
       
    16  - John Kern
       
    17  - Symsource
       
    18  
       
    19  Description : Declares document class for application.
       
    20  ============================================================================
       
    21  */
       
    22 
       
    23 // INCLUDE FILES
       
    24 #include "NPRAppUi.h"
       
    25 #include "NPRDocument.h"
       
    26 
       
    27 // ============================ MEMBER FUNCTIONS ===============================
       
    28 
       
    29 // -----------------------------------------------------------------------------
       
    30 // CNPRDocument::NewL()
       
    31 // Two-phased constructor.
       
    32 // -----------------------------------------------------------------------------
       
    33 //
       
    34 CNPRDocument* CNPRDocument::NewL(CEikApplication& aApp)
       
    35 	{
       
    36 	CNPRDocument* self = NewLC(aApp);
       
    37 	CleanupStack::Pop(self);
       
    38 	return self;
       
    39 	}
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // CNPRDocument::NewLC()
       
    43 // Two-phased constructor.
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 CNPRDocument* CNPRDocument::NewLC(CEikApplication& aApp)
       
    47 	{
       
    48 	CNPRDocument* self = new (ELeave) CNPRDocument(aApp);
       
    49 	CleanupStack::PushL(self);
       
    50 	self->ConstructL();
       
    51 	return self;
       
    52 	}
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CNPRDocument::ConstructL()
       
    56 // Symbian 2nd phase constructor can leave.
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 void CNPRDocument::ConstructL()
       
    60 	{
       
    61 	// No implementation required
       
    62 	}
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // CNPRDocument::CNPRDocument()
       
    66 // C++ default constructor can NOT contain any code, that might leave.
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 CNPRDocument::CNPRDocument(CEikApplication& aApp) :
       
    70 	CAknDocument(aApp)
       
    71 	{
       
    72 	// No implementation required
       
    73 	}
       
    74 
       
    75 // ---------------------------------------------------------------------------
       
    76 // CNPRDocument::~CNPRDocument()
       
    77 // Destructor.
       
    78 // ---------------------------------------------------------------------------
       
    79 //
       
    80 CNPRDocument::~CNPRDocument()
       
    81 	{
       
    82 	// No implementation required
       
    83 	}
       
    84 
       
    85 // ---------------------------------------------------------------------------
       
    86 // CNPRDocument::CreateAppUiL()
       
    87 // Constructs CreateAppUi.
       
    88 // ---------------------------------------------------------------------------
       
    89 //
       
    90 CEikAppUi* CNPRDocument::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) CNPRAppUi;
       
    95 	}
       
    96 
       
    97 // End of File