telephonyprotocols/umtsgprsscpr/inc/UmtsGprs_defaultSubconnProv.h
changeset 42 3adadc800673
equal deleted inserted replaced
31:8ab6687fb94c 42:3adadc800673
       
     1 // Copyright (c) 2005-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 // UmtsGprs_subconnProv.h
       
    15 // Umts/Gprs Default SubConnection Provider class definition.
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalComponent
       
    22 */
       
    23 
       
    24 
       
    25 #ifndef UMTSGPRS_DEFAULTSUBCONNPROV_H
       
    26 #define UMTSGPRS_DEFAULTSUBCONNPROV_H
       
    27 
       
    28 
       
    29 #include "UmtsGprs_subconnProv.h"
       
    30 
       
    31 
       
    32 /** 
       
    33 Specialised subconnection provider for handling default UMTS contexts.
       
    34 
       
    35 @internalTechnology
       
    36 @released Since 9.3
       
    37 */
       
    38 class CUmtsGprsDefaultSubConnProvd : public CUmtsGprsSubConnProvd
       
    39 	{
       
    40     friend class CUmtsGprsSubConnProvdFactory; //for the protected constructor.
       
    41 public:
       
    42 
       
    43 	/** Modifies iContextId of 'this' to aContextId. This method should be called
       
    44 	* in the handover scenario, where the current default is dropped and a new
       
    45 	* one is elected.
       
    46 	* @param aContextId the id of the new default PDP context.
       
    47 	*/
       
    48 	void NewDefaultElected(TContextId aContextId);
       
    49 	
       
    50 #ifdef SYMBIAN_NETWORKING_UMTSR5
       
    51 	
       
    52 	/** This parameter adds the IMCN information to the Default 
       
    53 	* SubConnection Parameter Bundle
       
    54 	*/
       
    55 	TInt AddIMCNInformationToParameterBundleL(TBool aImCnInfo);
       
    56 	
       
    57 #endif //SYMBIAN_NETWORKING_UMTSR5
       
    58 
       
    59     virtual TBool ShouldIDeleteNow();
       
    60 
       
    61 
       
    62 protected:
       
    63 
       
    64 	//-=========================================================
       
    65 	// CSubConnectionProviderBase methods
       
    66 	//-=========================================================
       
    67 	virtual void DoParametersAboutToBeSetL(CSubConParameterBundle& aParameterBundle);
       
    68    virtual TInt DoControl(TUint aOptionLevel, TUint aOptionName, TDes8& aOption);
       
    69 
       
    70 	//-=========================================================
       
    71 	// C'tor & D'tor methods
       
    72 	//-=========================================================
       
    73 	CUmtsGprsDefaultSubConnProvd(CSubConnectionProviderFactoryBase& aFactory, 
       
    74 	                             CConnectionProviderBase& aConnProvider);
       
    75 	                           
       
    76 	static CUmtsGprsDefaultSubConnProvd* NewL(CSubConnectionProviderFactoryBase& aFactory, 
       
    77 	                             CConnectionProviderBase& aConnProvider);
       
    78 	                             
       
    79 	void ConstructL();
       
    80 	
       
    81 	// Don't allow clients to invoke the destructor.
       
    82 	// (Only the CCommsFactoryBase should do this)
       
    83 	virtual ~CUmtsGprsDefaultSubConnProvd();
       
    84 	
       
    85 	
       
    86 	
       
    87 	//-=========================================================
       
    88 	// Custom methods
       
    89 	//-=========================================================
       
    90 	/** 
       
    91 	  @return the default CUmtsGprsSubConnProvd for 'this'
       
    92 	*/
       
    93 	virtual CUmtsGprsSubConnProvd& GetDefaultSubConnection();
       
    94 	
       
    95 	
       
    96 	/**
       
    97 	Returns the PdpFsmInterface instance, which can be used to talk to SpudFsm
       
    98    
       
    99    @return the local instance (pertaining to this connection) of CPdpFsmInterface.
       
   100 	*/
       
   101 	virtual CPdpFsmInterface& GetPdpFsmInterface();
       
   102 	
       
   103 	/**
       
   104 	Reads default QoS parameters from the database.
       
   105 	
       
   106    @param aParams - The QoS parameter structure to be filled in by this method.
       
   107 	*/
       
   108 	void GetQoSDefaultsL(RPacketQoS::TQoSR99_R4Requested* aParams);
       
   109 	
       
   110 	//-=========================================================
       
   111 	// Members
       
   112 	//-=========================================================
       
   113 	CPdpFsmInterface* iPdpFsm;
       
   114 
       
   115 	};
       
   116 
       
   117 
       
   118 #include "UmtsGprs_defaultSubconnProv.inl"
       
   119 #endif
       
   120 // UMTSGPRS_DEFAULTSUBCONNPROV_H