telephonyprotocols/pdplayer/inc/PDPDeftSCPR.h
changeset 0 3553901f7fa8
child 21 2492a6e4aed7
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2006-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 // PDP Default SubConnection Provider class definition.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef SYMBIAN_PDPDEFTSCPR_H
       
    24 #define SYMBIAN_PDPDEFTSCPR_H
       
    25 
       
    26 #include <comms-infras/ss_subconnprov.h>
       
    27 #include <comms-infras/corescpr.h>
       
    28 #include <comms-infras/corescprstates.h>
       
    29 #include "PDPSCPR.h"
       
    30 #include "PDPSCPRStates.h"
       
    31 
       
    32 namespace PDPSCprStates
       
    33     {
       
    34     class TCreatePrimaryPDPCtx;
       
    35 	class TRetrieveSipAddr;
       
    36     }
       
    37 
       
    38 enum PDPSCprCustomActivities
       
    39 	{
       
    40 	ECFActivityIoctl = ESock::ECFActivityCustom
       
    41 	};
       
    42     
       
    43 class CPDPSubConnectionProviderFactory;    
       
    44 class CPDPDefaultSubConnectionProvider : public CPDPSubConnectionProvider
       
    45 /** Default PDP subconnection provider
       
    46 
       
    47 @internalTechnology
       
    48 @released Since 9.4 */
       
    49     {
       
    50     friend class CPDPSubConnectionProviderFactory;
       
    51     friend class PDPSCprStates::TCreatePrimaryPDPCtx;
       
    52 	friend class PDPSCprStates::TRetrieveSipAddr;
       
    53 public:
       
    54     typedef CPDPSubConnectionProviderFactory FactoryType;
       
    55 	virtual ~CPDPDefaultSubConnectionProvider();
       
    56 	
       
    57 	//PdpFsm Callbacks
       
    58     void PdpFsmAllContextEvent(TInt aNotification, TInt aParam);
       
    59     
       
    60     virtual void LinkUp();
       
    61     virtual void LinkDown(TInt aCause);
       
    62 
       
    63 	void SendDataClientIdleIfNoSubconnsAndNoClientsL();
       
    64 	
       
    65 protected:
       
    66     //-====================================
       
    67     //Construction methods bundle - accessible thru the factory only
       
    68     //-====================================
       
    69     CPDPDefaultSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase& aFactory);
       
    70 	static CPDPDefaultSubConnectionProvider* NewL(CPDPSubConnectionProviderFactory& aFactory);
       
    71 	void ConstructL();
       
    72 
       
    73     TInt iLinkDowns;
       
    74     };
       
    75 
       
    76     
       
    77 #endif //SYMBIAN_PDPDEFTSCPR_H