telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstates.h
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    22 
    22 
    23 #ifndef TPDPSTATES_H
    23 #ifndef TPDPSTATES_H
    24 #define TPDPSTATES_H
    24 #define TPDPSTATES_H
    25 
    25 
    26 #include "tpdpstate.h"
    26 #include "tpdpstate.h"
    27 #include "spudfsmdebuglogger.h"
       
    28 
    27 
    29 class CPdpFsm;
    28 class CPdpFsm;
    30 
    29 
    31 #if _DEBUG 
    30 #if (OST_TRACE_CATEGORY & OST_TRACE_CATEGORY_DEBUG)
    32 #define DEFINE_TPDPSTATE_CLASS(state) _LIT(KName##state, #state); \
    31 #define DEFINE_TPDPSTATE_CLASS(state) _LIT(KName##state, #state); \
    33 NONSHARABLE_CLASS(TPdpState##state) : public TPdpState \
    32 NONSHARABLE_CLASS(TPdpState##state) : public TPdpState \
    34 { \
    33 { \
    35 public: \
    34 public: \
    36 	TPdpState##state (CPdpFsmFactory * aPdpFsmFactory) \
    35 	TPdpState##state (CPdpFsmFactory * aPdpFsmFactory) \
    37 	{ \
    36 	{ \
    38 		SPUDFSMVERBOSE_FNLOG("TPdpState" L ## #state L"::TPdpState" L ## #state L"()"); \
       
    39 		iName = KName##state; \
    37 		iName = KName##state; \
    40 		iPdpFsmFactory = aPdpFsmFactory; \
    38 		iPdpFsmFactory = aPdpFsmFactory; \
    41 	} \
    39 	} \
    42 	TInt Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aParam); \
    40 	TInt Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aParam); \
    43 private: \
    41 private: \
    47 #define DEFINE_TPDPSTATE_CLASS(state) NONSHARABLE_CLASS(TPdpState##state) : public TPdpState \
    45 #define DEFINE_TPDPSTATE_CLASS(state) NONSHARABLE_CLASS(TPdpState##state) : public TPdpState \
    48 { \
    46 { \
    49 public: \
    47 public: \
    50 	TPdpState##state (CPdpFsmFactory * aPdpFsmFactory) \
    48 	TPdpState##state (CPdpFsmFactory * aPdpFsmFactory) \
    51 	{ \
    49 	{ \
    52 		SPUDFSMVERBOSE_FNLOG("TPdpState" L ## #state L"::TPdpState" L ## #state L"()"); \
       
    53 		iPdpFsmFactory = aPdpFsmFactory; \
    50 		iPdpFsmFactory = aPdpFsmFactory; \
    54 	} \
    51 	} \
    55 	TInt Input (CPdpFsm& aFsm, TInt aOperation, TInt aErrorCode); \
    52 	TInt Input (CPdpFsm& aFsm, TInt aOperation, TInt aErrorCode); \
    56 private: \
    53 private: \
    57 	TInt iErrorCode; \
    54 	TInt iErrorCode; \