telephonyprotocols/pdplayer/inc/PDPProvision.h
changeset 23 6b1d113cdff3
parent 19 1f776524b15c
child 24 6638e7f4bd8f
equal deleted inserted replaced
20:244d7c5f118e 23:6b1d113cdff3
     1 /**
     1 /**
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    28 #define PDPPROVISION_H_
    28 #define PDPPROVISION_H_
    29 
    29 
    30 #include <etelqos.h>
    30 #include <etelqos.h>
    31 #include <comms-infras/metadata.h>
    31 #include <comms-infras/metadata.h>
    32 #include <metadatabase.h>		// TMDBElementId
    32 #include <metadatabase.h>		// TMDBElementId
       
    33 #include "pdp.hrh"
    33 
    34 
    34 namespace ESock 
    35 namespace ESock 
    35 	{
    36 	{
    36 	class CCommsDatIapView;
    37 	class CCommsDatIapView;
    37 	}
    38 	}
    43 */
    44 */
    44 	{
    45 	{
    45 public:
    46 public:
    46     enum 
    47     enum 
    47     {
    48     {
    48     EUid = 0x102822E0,  //Same as PDPSCPR, who's gonna use it.
    49     EUid = PDPScprImplUid,  //Same as PDPSCPR, who's gonna use it.
    49     ETypeId = 1,
    50     ETypeId = 1,
    50     };
    51     };
    51 	
    52 	
    52 	static CGPRSProvision* NewLC(ESock::CCommsDatIapView* aIapView);
    53 	static CGPRSProvision* NewLC(ESock::CCommsDatIapView* aIapView);
    53 	TInt UmtsGprsRelease() const;
    54 	TInt UmtsGprsRelease() const;
    63 	void RetrieveUmtsPacketFlowIdentifierL(RPacketContext::TPacketFlowIdentifier& aPfi, ESock::CCommsDatIapView* aIapView) const;
    64 	void RetrieveUmtsPacketFlowIdentifierL(RPacketContext::TPacketFlowIdentifier& aPfi, ESock::CCommsDatIapView* aIapView) const;
    64 
    65 
    65 private:
    66 private:
    66     TInt InitialiseScratchContext(TUint32 aConfigRel) const;
    67     TInt InitialiseScratchContext(TUint32 aConfigRel) const;
    67     void RetrieveAuthenticationInfoL(RPacketContext::TProtocolConfigOptionV2& aProtocolConfigOption, ESock::CCommsDatIapView* aIapView);
    68     void RetrieveAuthenticationInfoL(RPacketContext::TProtocolConfigOptionV2& aProtocolConfigOption, ESock::CCommsDatIapView* aIapView);
    68     void CreateChallengeAndResponseForChapL(RPacketContext::TProtocolConfigOptionV2& aProtocolConfigOption);
       
    69 
    69 
    70 public:
    70 public:
    71     //RPacketContext::TContextConfigGPRS iGprsConfig;
    71     //RPacketContext::TContextConfigGPRS iGprsConfig;
    72 	/** Temporary storage of GPRS, or R4, or R5 context configuration, here to avoid stack overflow */
    72 	/** Temporary storage of GPRS, or R4, or R5 context configuration, here to avoid stack overflow */
    73 	TBuf8<KScratchContextConfigSize> iScratchContext;
    73 	TBuf8<KScratchContextConfigSize> iScratchContext;
    86 */
    86 */
    87 	{
    87 	{
    88 public:
    88 public:
    89     enum 
    89     enum 
    90     {
    90     {
    91     EUid = 0x102822E0,  //Same as PDPSCPR, who's gonna use it.
    91     EUid = PDPScprImplUid,  //Same as PDPSCPR, who's gonna use it.
    92     ETypeId = 2,
    92     ETypeId = 2,
    93     };
    93     };
    94     
    94     
    95     static CTSYProvision* NewLC(ESock::CCommsDatIapView* aIapView);
    95     static CTSYProvision* NewLC(ESock::CCommsDatIapView* aIapView);
    96 
    96 
   109 */
   109 */
   110 	{
   110 	{
   111 public:
   111 public:
   112     enum 
   112     enum 
   113     {
   113     {
   114     EUid = 0x102822E0,  //Same as PDPSCPR, who's gonna use it.
   114     EUid = PDPScprImplUid,  //Same as PDPSCPR, who's gonna use it.
   115     ETypeId = 3,
   115     ETypeId = 3,
   116     };
   116     };
   117 	static CDefaultPacketQoSProvision* NewL(ESock::CCommsDatIapView* aIapView);
   117 	static CDefaultPacketQoSProvision* NewL(ESock::CCommsDatIapView* aIapView);
   118 
   118 
   119 protected:
   119 protected:
   130 */
   130 */
   131 	{
   131 	{
   132 public:
   132 public:
   133     enum 
   133     enum 
   134     {
   134     {
   135     EUid = 0x102822E0,  //Same as PDPSCPR, who's gonna use it.
   135     EUid = PDPScprImplUid,  //Same as PDPSCPR, who's gonna use it.
   136     ETypeId = 4,
   136     ETypeId = 4,
   137     };
   137     };
   138 	static CImsExtProvision* NewLC(ESock::CCommsDatIapView* aIapView);
   138 	static CImsExtProvision* NewLC(ESock::CCommsDatIapView* aIapView);
   139 
   139 
   140 protected:
   140 protected: