wvuing/IMPSServiceSettingsUI/SharedDataSrc/CIMPSSharedDataFactoryPubSub.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	"CIMPSPubSubHandler.h"
       
    21 #include	"CIMPSSharedDataHandler.h"
       
    22 #include	"CIMPSSystemNotifierPubSub.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CIMPSSharedDataFactory::CreatePermanentKeyHandlerL
       
    28 // Two-phased constructor.
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 MIMPSSharedData* CIMPSSharedDataFactory::CreatePermanentKeyHandlerL(
       
    32     MIMPSSharedDataObserver* aObserver,
       
    33     const TUid aUid )
       
    34     {
       
    35     CIMPSSharedDataHandler* sharedDataHandler = CIMPSSharedDataHandler::NewL( aObserver, aUid );
       
    36     return sharedDataHandler;
       
    37     }
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // CIMPSSharedDataFactory::CreateTemporaryKeyHandlerL
       
    41 // Two-phased constructor.
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 MIMPSSharedData* CIMPSSharedDataFactory::CreateTemporaryKeyHandlerL(
       
    45     MIMPSSharedDataObserver* aObserver,
       
    46     const TUid aUid )
       
    47     {
       
    48     CIMPSPubSubHandler* pubSubHandler = CIMPSPubSubHandler::NewL( aObserver, aUid );
       
    49     return pubSubHandler;
       
    50     }
       
    51 
       
    52 // -----------------------------------------------------------------------------
       
    53 // CIMPSSharedDataFactory::CreateSystemNotifyHandlerL
       
    54 // Two-phased constructor.
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 MIMPSSystemNotifier* CIMPSSharedDataFactory::CreateSystemNotifyHandlerL(
       
    58     MIMPSSystemNotifierObserver& aObserver,
       
    59     const TUid aKey )
       
    60     {
       
    61     CIMPSSystemNotifierPubSub* systemAgent =
       
    62         CIMPSSystemNotifierPubSub::NewL( aObserver, aKey );
       
    63     return systemAgent;
       
    64     }
       
    65 
       
    66 //  End of File
       
    67