defaultapplicationsettings/server/src/das_server.cpp
branchRCL_3
changeset 13 90fe62538f66
parent 12 3fec62e6e7fc
child 14 5f281e37a2f5
equal deleted inserted replaced
12:3fec62e6e7fc 13:90fe62538f66
     1 /*
       
     2 * Copyright (c) 2005-2006 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 the server class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <eikstart.h>  //for RDebug
       
    21 
       
    22 #include "das_server.h"
       
    23 #include "das_service.h"
       
    24 #include "das_app.h"
       
    25 
       
    26 const TUid KDefaultAppServiceUid = { 0x10281B9D };
       
    27 
       
    28 // ======== MEMBER FUNCTIONS ========
       
    29 
       
    30 // ---------------------------------------------------------------------------
       
    31 // Symbian 2-phased constructor
       
    32 // ---------------------------------------------------------------------------
       
    33 //
       
    34 CDefaultAppServer* CDefaultAppServer::NewL(CDefaultAppApplication* aApp)
       
    35     {
       
    36     CDefaultAppServer* self = new (ELeave) CDefaultAppServer(aApp);
       
    37     return self;
       
    38     }
       
    39 
       
    40 // ---------------------------------------------------------------------------
       
    41 // Default constructor
       
    42 // ---------------------------------------------------------------------------
       
    43 //
       
    44 CDefaultAppServer::CDefaultAppServer(CDefaultAppApplication* aApp) : iApp(aApp)
       
    45     {
       
    46     }
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // From class CAknAppServer.
       
    50 // Creates a service for the specified service Uid
       
    51 // ---------------------------------------------------------------------------
       
    52 //
       
    53 CApaAppServiceBase* CDefaultAppServer::CreateServiceL(TUid aServiceType) const
       
    54     {
       
    55     RDebug::Print(_L("CDefaultAppServer::CreateServiceL"));
       
    56     if (aServiceType == KDefaultAppServiceUid)
       
    57         return CDefaultAppService::NewL(this);
       
    58     else
       
    59         return CAknAppServer::CreateServiceL(aServiceType);
       
    60     }
       
    61         
       
    62 
       
    63 //  End of File