menufw/menufwui/matrixmenu/src/mmdocument.cpp
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  Application Document class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "mmappui.h"
       
    21 #include "mmdocument.h"
       
    22 #include <apgwgnam.h>
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // 
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 CMmDocument* CMmDocument::NewL( CEikApplication& aApp )
       
    31 	{
       
    32 	CMmDocument* self = NewLC( aApp );
       
    33 	CleanupStack::Pop( self );
       
    34 	return self;
       
    35 	}
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // 
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 CMmDocument* CMmDocument::NewLC( CEikApplication& aApp )
       
    42 	{
       
    43 	CMmDocument* self =
       
    44 		new ( ELeave ) CMmDocument( aApp );
       
    45 
       
    46 	CleanupStack::PushL( self );
       
    47 	self->ConstructL();
       
    48 	return self;
       
    49 	}
       
    50 
       
    51 // ---------------------------------------------------------------------------
       
    52 // 
       
    53 // ---------------------------------------------------------------------------
       
    54 //
       
    55 void CMmDocument::ConstructL()
       
    56 	{
       
    57 	// No implementation required
       
    58 	}
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // 
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 CMmDocument::CMmDocument( CEikApplication& aApp )
       
    65 	: CAknDocument( aApp )
       
    66 	{
       
    67 	// No implementation required
       
    68 	}
       
    69 
       
    70 // ---------------------------------------------------------------------------
       
    71 // 
       
    72 // ---------------------------------------------------------------------------
       
    73 //
       
    74 CMmDocument::~CMmDocument()
       
    75 	{
       
    76 	// No implementation required
       
    77 	}
       
    78 
       
    79 // ---------------------------------------------------------------------------
       
    80 // 
       
    81 // ---------------------------------------------------------------------------
       
    82 //
       
    83 CEikAppUi* CMmDocument::CreateAppUiL()
       
    84 	{
       
    85 	// Create the application user interface, and return a pointer to it
       
    86 	// the framework takes ownership of this object
       
    87 	return ( static_cast <CEikAppUi*> ( new ( ELeave ) CMmAppUi ) );
       
    88 	}
       
    89 
       
    90 // End of File