telephonyserverplugins/simtsy/src/CSimPubSub.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2010 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 
    18 #include "CSimPubSub.h"
    25 #include "CSimPubSub.h"
    19 #include "Simlog.h"
       
    20 
    26 
    21 
    27 
    22 /**
    28 /**
    23 Standard two phase construction.
    29 Standard two phase construction.
    24 
    30 
    25 @param aPSSimObserver pointer to event observer
    31 @param aPSSimObserver pointer to event observer
    26 @param aUid uids of Publish&Subscribe uids to subscribe to.
    32 @param aUid uids of Publish&Subscribe uids to subscribe to.
    27 */
    33 */
    28 CSimPubSub* CSimPubSub::NewL(MPSSimObserver* aPSSimObserver, const CSimPubSub::TPubSubProperty aProperty)
    34 CSimPubSub* CSimPubSub::NewL(MPSSimObserver* aPSSimObserver, const CSimPubSub::TPubSubProperty aProperty)
    29 	{
    35 	{
    30 	LOGSCOMMON1(">>CSimPubSub::NewL");
    36 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSIMPUBSUB_NEWL_1, ">>CSimPubSub::NewL");
    31 	CSimPubSub* pubsub=new(ELeave) CSimPubSub(aPSSimObserver,aProperty);
    37 	CSimPubSub* pubsub=new(ELeave) CSimPubSub(aPSSimObserver,aProperty);
    32 	CleanupStack::PushL(pubsub);
    38 	CleanupStack::PushL(pubsub);
    33 	pubsub->ConstructL();
    39 	pubsub->ConstructL();
    34 	CleanupStack::Pop();
    40 	CleanupStack::Pop();
    35 	LOGSCOMMON1("<<CSimPubSub::NewL");
    41 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSIMPUBSUB_NEWL_2, "<<CSimPubSub::NewL");
    36 	return pubsub;
    42 	return pubsub;
    37 	}
    43 	}
    38 
    44 
    39 /**
    45 /**
    40 Private constructor used in the first phase of construction.
    46 Private constructor used in the first phase of construction.