phonebookui/Speeddial/src/SpdiaDocument.cpp
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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:     Declares document for application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 // INCLUDE FILES
       
    24 #include <CPbkContactEngine.h>      // Phonebook Engine
       
    25 #include <CPbkContactItem.h>        // Phonebook Contact
       
    26 
       
    27 #include "speeddial.hrh"
       
    28 #include "SpdiaAppUi.h"
       
    29 #include "SpdiaDocument.h"
       
    30 
       
    31 // ================= MEMBER FUNCTIONS =======================
       
    32 
       
    33 // destructor
       
    34 CSpdiaDocument::~CSpdiaDocument()
       
    35     {
       
    36     }
       
    37 
       
    38 // C++ default constructor can NOT contain any code, that
       
    39 // might leave.
       
    40 //
       
    41 CSpdiaDocument::CSpdiaDocument(CEikApplication& aApp)
       
    42     : CAknDocument(aApp)
       
    43     {
       
    44     }
       
    45 
       
    46 // Symbian default constructor can leave.
       
    47 void CSpdiaDocument::ConstructL()
       
    48     {
       
    49     }
       
    50 
       
    51     // Two-phased constructor.
       
    52 CSpdiaDocument* CSpdiaDocument::NewL(
       
    53         CEikApplication& aApp)     // CSpeedDialApp reference
       
    54     {
       
    55     CSpdiaDocument* self = new (ELeave) CSpdiaDocument(aApp);
       
    56     CleanupStack::PushL(self);
       
    57     self->ConstructL();
       
    58     CleanupStack::Pop();
       
    59     return self;
       
    60     }
       
    61 
       
    62 // ----------------------------------------------------
       
    63 // CSpdiaDocument::CreateAppUiL()
       
    64 // constructs CSpdiaAppUi
       
    65 //
       
    66 // ----------------------------------------------------
       
    67 CEikAppUi* CSpdiaDocument::CreateAppUiL()
       
    68     {
       
    69     return new(ELeave) CSpdiaAppUi;
       
    70     }
       
    71 
       
    72 // End of File