wvuing/IMPSServiceSettingsUI/SharedDataSrc/CIMPSSharedDataFactoryCenrep.cpp
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Publish and subscribe implementation of the shared data factory
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include    "CIMPSSharedDataFactory.h"
       
    20 #include	"CIMPSSharedDataHandler.h"
       
    21 #include	"CIMPSCenrepHandler.h"
       
    22 #include	"CIMPSSystemNotifierSystemAgent.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CIMPSSharedDataFactory::CreatePermanentKeyHandlerL
       
    28 // Two-phased constructor.
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 MIMPSSharedData* CIMPSSharedDataFactory::CreatePermanentKeyHandlerL(
       
    32     MIMPSSharedDataObserver* aObserver, const TUid aUid )
       
    33     {
       
    34     CIMPSCenrepHandler* cenRepHandler = CIMPSCenrepHandler::NewL( aObserver, aUid );
       
    35     return cenRepHandler;
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // CIMPSSharedDataFactory::CreateTemporaryKeyHandlerL
       
    40 // Two-phased constructor.
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 MIMPSSharedData* CIMPSSharedDataFactory::CreateTemporaryKeyHandlerL(
       
    44     MIMPSSharedDataObserver* aObserver, const TUid aUid )
       
    45     {
       
    46     CIMPSSharedDataHandler* sharedDataHandler =
       
    47         CIMPSSharedDataHandler::NewL( aObserver, aUid, ETrue );
       
    48     return sharedDataHandler;
       
    49     }
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // CIMPSSharedDataFactory::CreateSystemNotifyHandlerL
       
    53 // Two-phased constructor.
       
    54 // -----------------------------------------------------------------------------
       
    55 //
       
    56 MIMPSSystemNotifier* CIMPSSharedDataFactory::CreateSystemNotifyHandlerL(
       
    57     MIMPSSystemNotifierObserver& aObserver, const TUid aKey )
       
    58     {
       
    59     CIMPSSystemNotifierSystemAgent* systemAgent =
       
    60         CIMPSSystemNotifierSystemAgent::NewL( aObserver, aKey );
       
    61     return systemAgent;
       
    62     }
       
    63 
       
    64 //  End of File
       
    65