networkcontrol/commsuserpromptmgr/interface/inc/netupsstatedef.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 // netupstatedef.h
       
    15 // This file provides the internal definitions for the IP Transport State
       
    16 // Machine and the events which cause the state machine to transition
       
    17 // into the next state.
       
    18 // @internalComponent
       
    19 // @released
       
    20 // 
       
    21 //
       
    22 
       
    23 
       
    24 #ifndef NETUPSSTATEDEF_H
       
    25 #define NETUPSSTATEDEF_H
       
    26 
       
    27 namespace NetUps
       
    28 {
       
    29 
       
    30 enum TNetUpsState
       
    31 	{
       
    32 	// Numbers need to be unique as they are used in switch statements.
       
    33 
       
    34 	// Note a transit state is entered when the UPS Server responds with
       
    35 	// either SessionYes or SessionNo and there are 1 or more UPS requests
       
    36 	// outstanding to other subsessions which are associated with the same process.			
       
    37 
       
    38 
       
    39 	// Definitions common to all state machines
       
    40 	ENull 												= 0,
       
    41 
       
    42 	// Definitions common to IP Transport Process Life Time
       
    43 	EProcLife_NonSession 								= 10,
       
    44 
       
    45 	EProcLife_Transit_SessionYes 						= 11,
       
    46 	EProcLife_SessionYes 								= 12,
       
    47 
       
    48 	EProcLife_Transit_SessionNo 						= 13,
       
    49 	EProcLife_SessionNo 								= 14,
       
    50 
       
    51 	// Definitions common to IP Transport Network Life Time
       
    52 	ENetLife_NonSession									= 20,
       
    53 
       
    54 	ENetLife_SessionNo_Transit_WithoutConnections 		= 21,
       
    55 	ENetLife_SessionNo_WithOutConnections 				= 22,
       
    56 
       
    57 	ENetLife_SessionNo_Transit_WithConnections 			= 23,
       
    58 	ENetLife_SessionNo_WithConnections 					= 24,
       
    59 
       
    60 	ENetLife_Transit_SessionYes 						= 25,		
       
    61 	ENetLife_SessionYes 								= 26
       
    62 
       
    63 	// Subsequent NetUps Clients should add their state definitions
       
    64 	// in their own unique decade.
       
    65 	};
       
    66 	
       
    67 enum  TEvent
       
    68 	{
       
    69 	EPolicyCheckRequest,
       
    70 	EResponseYes,
       
    71 	EResponseNo,
       
    72 	EResponseSessionYes,
       
    73 	EResponseSessionNo,
       
    74 	EResponseSessionNo_WithConnections,
       
    75 	EResponseSessionNo_WithoutConnections,		
       
    76 	ETransitionForward	
       
    77 	};
       
    78 
       
    79 }
       
    80 #endif // NETUPSSTATEDEF_H