networkcontrol/commsuserpromptmgr/interface/inc/netups.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 provides the public interface into the Networking UPS Component.
       
    15 // @internalAll
       
    16 // @released
       
    17 // 
       
    18 //
       
    19 
       
    20 #ifndef NETUPS_H
       
    21 #define NETUPS_H
       
    22 
       
    23 #include <e32def.h>		  								// defines TInt
       
    24 #include <e32std.h>										// defines ProcessId, ThreadId, Dll
       
    25 #include <e32des8.h>									// definition for descriptors
       
    26 
       
    27 #include <ups/upstypes.h> 								// defines TServiceId
       
    28 
       
    29 #include <elements/nm_address.h> 					 	// defines TNodeId
       
    30 
       
    31 #include <comms-infras/netupstypes.h>					// defines MPolicyCheckRequestOriginator
       
    32 
       
    33 #include <comms-infras/commsdebugutility.h> 			// defines the comms debug logging utility
       
    34 
       
    35 namespace NetUps
       
    36 {
       
    37 
       
    38 class CNetUpsImpl;
       
    39 	
       
    40 class CNetUps : public CBase
       
    41 	{
       
    42 public:
       
    43 	IMPORT_C static CNetUps* NewL(TInt32 aServiceId);
       
    44 	virtual ~CNetUps();
       
    45 	
       
    46 	IMPORT_C static TBool UpsDisabled(TInt32 aServiceId);
       
    47 
       
    48 	IMPORT_C void ProcessPolicyCheckRequestL(TPolicyCheckRequestData& aPolicyCheckRequestData, TRequestId& aRequestId);
       
    49 	IMPORT_C TInt CancelRequest(const Messages::TNodeId&  aCallersNodeId, const TRequestId& aRequestId);
       
    50 	IMPORT_C void IncrementConnectionCountL(const Messages::TNodeId&  aCallersNodeId); 
       
    51 	IMPORT_C void DecrementConnectionCountL(const Messages::TNodeId&  aCallersNodeId);
       
    52 	IMPORT_C void DecrementConnectionCountL(const Messages::TNodeId&  aCallersNodeId, TProcessId& aProcessId, TThreadId& aThreadId);
       
    53 private:
       
    54 	virtual void ConstructL(TInt32 aServiceId);
       
    55 	CNetUps(TInt32 aServiceId);
       
    56 private:
       
    57 	CNetUps(const CNetUps&);
       
    58 	void operator=(const CNetUps&);
       
    59 	bool operator==(const CNetUps&);		
       
    60 private:
       
    61 	TInt32 iServiceId;
       
    62 	CNetUpsImpl* iNetUps;		
       
    63 	__FLOG_DECLARATION_MEMBER;		
       
    64 	};
       
    65 
       
    66 } // end namespace NetUps
       
    67 
       
    68 #endif // NETUPS_H