linklayercontrol/networkinterfacemgr/agentprcore/src/agentmcpravailabilitytesting.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalTechnology
       
    19  @prototype
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef _AGENTMCPRAVAILABILITYTESTING_H_
       
    24 #define _AGENTMCPRAVAILABILITYTESTING_H_
       
    25 
       
    26 #include <comms-infras/ss_nodemessages.h>
       
    27 
       
    28 #ifdef _DEBUG
       
    29 const TUid KAvailabilityTestingPubSubUid={0x10272F42};
       
    30 
       
    31 NONSHARABLE_CLASS(CAvailabilitySubscriber) : public CActive, public Messages::ASimpleNodeIdBase
       
    32 	{
       
    33 public:
       
    34 	static CAvailabilitySubscriber* NewL(const Messages::TNodeCtxId& aAvailabilityActivity, TUint aApId);
       
    35 	virtual ~CAvailabilitySubscriber();
       
    36 
       
    37 private:
       
    38 	CAvailabilitySubscriber(const Messages::TNodeCtxId& aAvailabilityActivity, TUint aApId);
       
    39 	void StartL();
       
    40 	void RunL();
       
    41 	TInt RunError(TInt aError);
       
    42 	void DoCancel();
       
    43 	virtual void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage);
       
    44 
       
    45 private:
       
    46 	Messages::TNodeCtxId iAvailabilityActivity;
       
    47 	TInt iApId;
       
    48 	RProperty iProperty;
       
    49 	};
       
    50 #endif
       
    51 
       
    52 #endif // _AGENTMCPRAVAILABILITYTESTING_H_
       
    53