telephonyprotocols/umtsgprsscpr/inc/PdpFsmRequest.h
author hgs
Mon, 28 Jun 2010 17:02:18 +0100
changeset 45 28dbf5a297f4
parent 44 8b72faa1200f
permissions -rw-r--r--
201024_05
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     1
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     2
// All rights reserved.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     7
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     8
// Initial Contributors:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    10
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    11
// Contributors:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    12
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    13
// Description:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    14
// PDP Context control requests.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    15
// 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    16
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    17
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    18
/**
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    19
 @file
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    20
 @internalComponent
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    21
*/
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    22
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    23
#ifndef CPDPFSMREQUEST_H
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    24
#define CPDPFSMREQUEST_H
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    25
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    26
#include "UmtsGprs_subconnProv.h"
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    27
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    28
/** The class commits previous modifications to an active PDP context.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    29
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    30
@internalTechnology
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    31
@released Since 9.3
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    32
*/
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    33
class CModifyActivePDPCtx : public CPdpFsmRequestBase
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    34
{
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    35
public:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    36
    virtual TInt Start();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    37
    virtual TBool PdpFsmEvent(TContextId aContextId, TInt aEvent, TInt aParam);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    38
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    39
    CModifyActivePDPCtx(CUmtsGprsSubConnProvd& aProvider, MPdpFsmRequestOwner& aOwner);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    40
    virtual ~CModifyActivePDPCtx();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    41
};
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    42
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    43
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    44
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    45
#ifdef SYMBIAN_NETWORKING_UMTSR5
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    46
/** The class modifies R5 QoS on an active PDP context.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    47
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    48
@internalTechnology
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    49
@released Since 9.3
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    50
*/
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    51
class CModifyR5QoS : public CPdpFsmRequestBase, public MPdpFsmRequestOwner
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    52
{
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    53
public:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    54
	virtual void Done( TInt aResult, CPdpFsmRequestBase& aThis );
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    55
	virtual TInt Start();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    56
	virtual TBool PdpFsmEvent(TContextId aContextId, TInt aEvent, TInt aParam);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    57
	virtual ~CModifyR5QoS();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    58
	static CModifyR5QoS* NewL(CUmtsGprsSubConnProvd& aProvider, MPdpFsmRequestOwner& aOwner, RPacketQoS::TQoSR5Requested& aParams);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    59
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    60
protected:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    61
	CModifyR5QoS(CUmtsGprsSubConnProvd& aProvider, MPdpFsmRequestOwner& aOwner, RPacketQoS::TQoSR5Requested& aParams);    
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    62
	
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    63
	void ConstructL();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    64
	
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    65
private:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    66
    void GrantedSetupL();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    67
    void RejectedSetupL(TInt aResult);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    68
private:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    69
    CModifyActivePDPCtx* iModifyActive;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    70
	RPacketQoS::TQoSR5Requested i5;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    71
};
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    72
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    73
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    74
#else
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    75
// !SYMBIAN_NETWORKING_UMTSR5
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    76
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    77
/**
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    78
The class modifies R99/R4 QoS on an active PDP context.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    79
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    80
@internalTechnology
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    81
@released Since 9.3
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    82
*/
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    83
class CModifyR4QoS : public CPdpFsmRequestBase, public MPdpFsmRequestOwner
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    84
{
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    85
public:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    86
    virtual void Done( TInt aResult, CPdpFsmRequestBase& aThis );
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    87
    virtual TInt Start();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    88
    virtual TBool PdpFsmEvent(TContextId aContextId, TInt aEvent, TInt aParam);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    89
    virtual ~CModifyR4QoS();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    90
    
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    91
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    92
    static CModifyR4QoS* NewL(CUmtsGprsSubConnProvd& aProvider, MPdpFsmRequestOwner& aOwner, RPacketQoS::TQoSR99_R4Requested aParams);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    93
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    94
protected:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    95
    CModifyR4QoS(CUmtsGprsSubConnProvd& aProvider, MPdpFsmRequestOwner& aOwner, RPacketQoS::TQoSR99_R4Requested aParams); 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    96
	
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    97
	void ConstructL();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    98
    
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    99
private:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   100
    void GrantedSetupL();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   101
    void RejectedSetupL(TInt aResult);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   102
private:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   103
    CModifyActivePDPCtx* iModifyActive;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   104
    RPacketQoS::TQoSR99_R4Requested i99;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   105
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   106
};
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   107
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   108
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   109
#endif 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   110
// SYMBIAN_NETWORKING_UMTSR5
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   111
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   112
#endif
8b72faa1200f 201024_02
hgs
parents:
diff changeset
   113
// CPDPFSMREQUEST_H