networkcontrol/commsuserpromptmgr/utils/inc/netupstls.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 interface into the Networking UPS TLS Component.
       
    15 // @internalComponent
       
    16 // @prototype
       
    17 // 
       
    18 //
       
    19 
       
    20 #ifndef NETUPSTLS_H
       
    21 #define NETUPSTLS_H
       
    22 
       
    23 #include <e32def.h>			// defines TInt
       
    24 #include <e32base.h>		// defines CActive
       
    25 
       
    26 #include "netupsconst.h" 	// defines the patchable constant enums
       
    27 
       
    28 #include <comms-infras/commsdebugutility.h> 		// defines the comms debug logging utility
       
    29 
       
    30 namespace NetUps
       
    31 {
       
    32 class CNetUpsImpl;
       
    33 
       
    34 NONSHARABLE_CLASS(CNetUpsTls) : public CBase
       
    35 	{
       
    36 private:
       
    37 	enum TConfigurableSetting
       
    38 		{
       
    39 		EEnabledStatus			= 0,
       
    40 		ESessionMode			= 1
       
    41 		};
       
    42 
       
    43 	enum TNetUpsEnableConst
       
    44 		{
       
    45 		ENetUpsEnabled  		= 0,
       
    46 		ENetUpsDisabled 		= 1,
       
    47 		EReadStatusFromFile 	= 2
       
    48 		};
       
    49 
       
    50 	enum TNetUpsSessionConst
       
    51 		{
       
    52 		EProcessLifeTime		= 0,
       
    53 		ENetworkLifeTime 		= 1,	
       
    54 		EReadSessionDefFromFile = 2
       
    55 		};
       
    56 public:
       
    57 	static CNetUpsTls* NewL(TInt32 aServiceId);
       
    58 	virtual ~CNetUpsTls();
       
    59 
       
    60 	// declared but not defined:
       
    61 	CNetUpsTls(const CNetUpsTls&);
       
    62 	void operator=(const CNetUpsTls&);
       
    63 	bool operator==(const CNetUpsTls&);
       
    64 				
       
    65 	CNetUpsImpl* GetNetUpsImpl();
       
    66 	TUint32 GetUpsIpDisabled();  
       
    67 	TUint32 GetUpsSessionType();  
       
    68 private:
       
    69 	void ConstructL(TInt32 aServiceId);
       
    70 	CNetUpsTls();
       
    71 
       
    72 	void ReadConfigurableSettingsL(TConfigurableSetting);
       
    73 private:
       
    74 	CNetUpsImpl* iNetUpsImpl;
       
    75 	TNetUpsEnableConst iUpsIpActive;  
       
    76 	TNetUpsSessionConst iUpsSessionType;  	
       
    77 
       
    78 	__FLOG_DECLARATION_MEMBER;				
       
    79 	};
       
    80 	
       
    81 } // end of namespace
       
    82 
       
    83 #endif // NETUPSTLS_H