telephonyserverplugins/simtsy/src/CSimPubSub.cpp
branchRCL_3
changeset 66 07a122eea281
parent 65 630d2f34d719
equal deleted inserted replaced
65:630d2f34d719 66:07a122eea281
     1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    13 // Description:
    13 // Description:
    14 // Implements the CSimPubSub class
    14 // Implements the CSimPubSub class
    15 // 
    15 // 
    16 //
    16 //
    17 
    17 
    18 
       
    19 
       
    20 #include "OstTraceDefinitions.h"
       
    21 #ifdef OST_TRACE_COMPILER_IN_USE
       
    22 #include "CSimPubSubTraces.h"
       
    23 #endif
       
    24 
       
    25 #include "CSimPubSub.h"
    18 #include "CSimPubSub.h"
       
    19 #include "Simlog.h"
    26 
    20 
    27 
    21 
    28 /**
    22 /**
    29 Standard two phase construction.
    23 Standard two phase construction.
    30 
    24 
    31 @param aPSSimObserver pointer to event observer
    25 @param aPSSimObserver pointer to event observer
    32 @param aUid uids of Publish&Subscribe uids to subscribe to.
    26 @param aUid uids of Publish&Subscribe uids to subscribe to.
    33 */
    27 */
    34 CSimPubSub* CSimPubSub::NewL(MPSSimObserver* aPSSimObserver, const CSimPubSub::TPubSubProperty aProperty)
    28 CSimPubSub* CSimPubSub::NewL(MPSSimObserver* aPSSimObserver, const CSimPubSub::TPubSubProperty aProperty)
    35 	{
    29 	{
    36 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSIMPUBSUB_NEWL_1, ">>CSimPubSub::NewL");
    30 	LOGSCOMMON1(">>CSimPubSub::NewL");
    37 	CSimPubSub* pubsub=new(ELeave) CSimPubSub(aPSSimObserver,aProperty);
    31 	CSimPubSub* pubsub=new(ELeave) CSimPubSub(aPSSimObserver,aProperty);
    38 	CleanupStack::PushL(pubsub);
    32 	CleanupStack::PushL(pubsub);
    39 	pubsub->ConstructL();
    33 	pubsub->ConstructL();
    40 	CleanupStack::Pop();
    34 	CleanupStack::Pop();
    41 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSIMPUBSUB_NEWL_2, "<<CSimPubSub::NewL");
    35 	LOGSCOMMON1("<<CSimPubSub::NewL");
    42 	return pubsub;
    36 	return pubsub;
    43 	}
    37 	}
    44 
    38 
    45 /**
    39 /**
    46 Private constructor used in the first phase of construction.
    40 Private constructor used in the first phase of construction.