locationlandmarksrefappfors60/Src/LandmarksDocument.cpp
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2004-2005 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:  Implementation of CLandmarksDocument
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "LandmarksAppUi.h"
       
    21 #include "LandmarksDocument.h"
       
    22 
       
    23 // ============================ MEMBER FUNCTIONS ===============================
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 CLandmarksDocument::CLandmarksDocument(CEikApplication& aApp) : CAknDocument(aApp) 
       
    29     {
       
    30     // No implementation required
       
    31     }   
       
    32 
       
    33 // -----------------------------------------------------------------------------
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 void CLandmarksDocument::ConstructL()
       
    37     {
       
    38     // No implementation required
       
    39     }    
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 CLandmarksDocument* CLandmarksDocument::NewL(CEikApplication& aApp)
       
    45     {
       
    46     CLandmarksDocument* self = new (ELeave) CLandmarksDocument(aApp);
       
    47     CleanupStack::PushL(self);
       
    48     self->ConstructL();
       
    49     CleanupStack::Pop(self);
       
    50     return self;
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // -----------------------------------------------------------------------------
       
    55 //
       
    56 CLandmarksDocument::~CLandmarksDocument()
       
    57     {
       
    58     // No implementation required
       
    59     }
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 CEikAppUi* CLandmarksDocument::CreateAppUiL()
       
    65     {
       
    66     // Create the application user interface, and return a pointer to it,
       
    67     // the framework takes ownership of this object
       
    68     CEikAppUi* appUi = new (ELeave) CLandmarksAppUi;
       
    69     return appUi;
       
    70     }
       
    71 
       
    72