diff -r 000000000000 -r af10295192d8 networkcontrol/commsuserpromptmgr/interface/inc/netups.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/networkcontrol/commsuserpromptmgr/interface/inc/netups.h Tue Jan 26 15:23:49 2010 +0200 @@ -0,0 +1,68 @@ +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// This file provides the public interface into the Networking UPS Component. +// @internalAll +// @released +// +// + +#ifndef NETUPS_H +#define NETUPS_H + +#include // defines TInt +#include // defines ProcessId, ThreadId, Dll +#include // definition for descriptors + +#include // defines TServiceId + +#include // defines TNodeId + +#include // defines MPolicyCheckRequestOriginator + +#include // defines the comms debug logging utility + +namespace NetUps +{ + +class CNetUpsImpl; + +class CNetUps : public CBase + { +public: + IMPORT_C static CNetUps* NewL(TInt32 aServiceId); + virtual ~CNetUps(); + + IMPORT_C static TBool UpsDisabled(TInt32 aServiceId); + + IMPORT_C void ProcessPolicyCheckRequestL(TPolicyCheckRequestData& aPolicyCheckRequestData, TRequestId& aRequestId); + IMPORT_C TInt CancelRequest(const Messages::TNodeId& aCallersNodeId, const TRequestId& aRequestId); + IMPORT_C void IncrementConnectionCountL(const Messages::TNodeId& aCallersNodeId); + IMPORT_C void DecrementConnectionCountL(const Messages::TNodeId& aCallersNodeId); + IMPORT_C void DecrementConnectionCountL(const Messages::TNodeId& aCallersNodeId, TProcessId& aProcessId, TThreadId& aThreadId); +private: + virtual void ConstructL(TInt32 aServiceId); + CNetUps(TInt32 aServiceId); +private: + CNetUps(const CNetUps&); + void operator=(const CNetUps&); + bool operator==(const CNetUps&); +private: + TInt32 iServiceId; + CNetUpsImpl* iNetUps; + __FLOG_DECLARATION_MEMBER; + }; + +} // end namespace NetUps + +#endif // NETUPS_H