networkcontrol/commsuserpromptmgr/utils/inc/netupsconnectionentry.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 // This file defines the CConnectionEntry a structure which
       
    15 // specifies the number of connections associated with a CommsId. 
       
    16 // @internalAll
       
    17 // @prototype
       
    18 // 
       
    19 //
       
    20 
       
    21 #ifndef NETUPSCONNECTIONENTRY_H
       
    22 #define NETUPSCONNECTIONENTRY_H
       
    23 
       
    24 #include <e32def.h>		  								// defines TInt
       
    25 
       
    26 #include <comms-infras/ss_activities.h>
       
    27 
       
    28 #include <comms-infras/commsdebugutility.h> 			// defines the comms debug logging utility
       
    29 
       
    30 #include "netupstypes.h"								// defines TRequestId
       
    31 
       
    32 namespace NetUps
       
    33 {
       
    34 
       
    35 class CConnectionEntry : public CBase
       
    36 	{
       
    37 public:
       
    38 	static CConnectionEntry* NewL(const Messages::TNodeId& aCommsId, TInt32 aCount);
       
    39 	~CConnectionEntry();
       
    40 	const Messages::TNodeId& CommsId() { return iCommsId; }
       
    41 	const TInt32 Count() 	  { return iCount; }
       
    42 	void IncrementCount();
       
    43 	void DecrementCount();
       
    44 private:
       
    45 	void ConstructL();
       
    46 	CConnectionEntry(const Messages::TNodeId& aCommsId, TInt32 aCount) : iCommsId(aCommsId), iCount(aCount) {}
       
    47 private:		
       
    48 	const Messages::TNodeId iCommsId;
       
    49 	TInt32					iCount;
       
    50 
       
    51 	__FLOG_DECLARATION_MEMBER;			
       
    52 	};
       
    53 	
       
    54 } // end of namespace NetUps
       
    55 
       
    56 #endif // NETUPSCONNECTIONENTRY_H