phonebookui/Phonebook2/ccapplication/ccapp/src/ccaappapplication.cpp
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2007 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:  An instance of CCCAAppApplication is the application part 
       
    15 *                of the AVKON application framework for the CCAApp 
       
    16 *                application
       
    17 *
       
    18 */
       
    19 
       
    20 #include "ccaappdocument.h"
       
    21 #include "ccaappapplication.h"
       
    22 #include "ccaappserverapp.h"
       
    23 #include "ccauids.h"
       
    24 #include "ccalogger.h"
       
    25 
       
    26 // UID for the application, this should correspond to the uid defined in the mmp file
       
    27 static const TUid KUidCCAApp = {KCCAAppUID};
       
    28 
       
    29 // ---------------------------------------------------------------------------
       
    30 // Create an App document, and return a pointer to it
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 CApaDocument* CCCAAppApplication::CreateDocumentL()
       
    34     {  
       
    35     CApaDocument* document = CCCAAppDocument::NewL(*this);
       
    36     return document;
       
    37     }
       
    38 
       
    39 // ---------------------------------------------------------------------------
       
    40 // Return the UID 
       
    41 // ---------------------------------------------------------------------------
       
    42 //
       
    43 TUid CCCAAppApplication::AppDllUid() const
       
    44     {
       
    45     return KUidCCAApp;
       
    46     }
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // The NewAppServerL() function, it only has to "new" the server,
       
    50 // further construction is called by the framework.
       
    51 // ---------------------------------------------------------------------------
       
    52 //
       
    53 void CCCAAppApplication::NewAppServerL(CApaAppServer*& aAppServer)
       
    54 	{
       
    55 
       
    56     //PERFORMANCE LOGGING: 2. Starting up application
       
    57     WriteToPerfLog();
       
    58 
       
    59 	aAppServer = new(ELeave) CCAAppServerApp();
       
    60 	}
       
    61