commsfwsupport/commselements/NetSubscribe/INC/NetPSSignal.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 
       
     2 // Copyright (c) 2004-2009 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:
       
    15 // Transport layer for event data is RProperty
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalComponent
       
    22 */
       
    23 
       
    24 #ifndef __NETPSSIGNAL_H_
       
    25 #define __NETPSSIGNAL_H_
       
    26 
       
    27 #include <e32base.h>
       
    28 #include <e32std.h>
       
    29 #include <e32property.h>
       
    30 #include "NetSubscriber.h"
       
    31 
       
    32 namespace NetSubscribe
       
    33 {
       
    34 
       
    35 class CPSSignal : public CSignalActive
       
    36 /**
       
    37  * PS signal class.
       
    38 
       
    39  * @internalComponent
       
    40  */
       
    41 	{
       
    42 public:
       
    43 	static CPSSignal* NewLC( const SSignalId& aSignalId );
       
    44 	~CPSSignal();
       
    45 
       
    46 
       
    47 protected:
       
    48 	CPSSignal(const SSignalId& aSignalId) :
       
    49 		CSignalActive(aSignalId)
       
    50 		{
       
    51 		}
       
    52 	void ConstructL();
       
    53 //the AO related functionality shouldn't be there see the commend above the
       
    54 //CSignalActive declaration in NetSubscriber.h
       
    55 	virtual void RunL();
       
    56 	virtual void DoCancel();
       
    57 	
       
    58 	RProperty iProperty;
       
    59 	
       
    60 	Meta::SMetaData* iUsrData;
       
    61 	};
       
    62 
       
    63 class CPSSubscribe : public CNetSubscribe
       
    64 /**
       
    65  * Specialisation of CNetSubscribe to accomodate publish/subscribe signal/transport mechanism
       
    66  *
       
    67  * @see CNetSubscribe
       
    68  * @internalComponent
       
    69  */
       
    70 	{
       
    71 
       
    72 protected:
       
    73 	virtual void RegisterNewSignalL(TEventClientData& aData, const SSignalId& aSignalId );
       
    74 	CPSSignal* Signal( TInt aIndex ) const
       
    75 		{
       
    76 		return static_cast<CPSSignal*>(iSignals[aIndex]);
       
    77 		}
       
    78 	};
       
    79 
       
    80 } // namespace NetSubscribe
       
    81 
       
    82 #endif // __NETPSSIGNAL_H_
       
    83