|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : SIPExSIPServerEstablishingState.h 00004 * Part of : SIPExSIPEngine 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004-2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 #ifndef _SIPEXSIPSERVERESTABLISHINGSTATE_H_ 00017 #define _SIPEXSIPSERVERESTABLISHINGSTATE_H_ 00018 00019 // INCLUDES 00020 #include "SIPExSIPStateBase.h" 00021 00022 // FORWARD DECLARATIONS 00023 class CSIPExSIPEngine; 00024 00025 // CLASS DECLARATION 00026 /** 00027 * Reacts to events that are possible in 00028 * "ClientOffering" state. 00029 */ 00030 class CSIPExSIPServerEstablishingState: public CSIPExSIPStateBase 00031 { 00032 public:// Constructors and destructor 00033 /** 00034 * Two-phased constructor. 00035 */ 00036 IMPORT_C static CSIPExSIPServerEstablishingState* NewL(); 00037 00038 /** 00039 * Destructor 00040 */ 00041 IMPORT_C virtual ~CSIPExSIPServerEstablishingState(); 00042 00043 public://new functions 00044 /** 00045 * Links the states 00046 * @param aEstablishedState SIP Session is established. 00047 * @param aTerminatedState Peer has declined the invite, SIP Session is terminated. 00048 */ 00049 void LinkStates( 00050 CSIPExSIPStateBase& aEstablishedState, 00051 CSIPExSIPStateBase& aTerminatedState ); 00052 00053 public://functions from base class 00054 00055 /** 00056 * AckReceivedL 00057 * ACK has been received. 00058 * @param aEngine Reference to Engine object. 00059 * @param aTransaction Contains response elements. 00060 */ 00061 void AckReceivedL( CSIPExSIPEngine& aEngine, 00062 CSIPServerTransaction& aTransaction ); 00063 00064 00065 /** 00066 * ByeReceivedL 00067 * BYE has been received. 00068 * @param aEngine Reference to Engine object. 00069 * @param aTransaction Contains response elements. 00070 */ 00071 void ByeReceivedL( CSIPExSIPEngine& aEngine, 00072 CSIPServerTransaction& aTransaction ); 00073 00074 /** 00075 * CancelReceivedL 00076 * CANCEL has been received. 00077 * @param aEngine Reference to Engine object. 00078 * @param aTransaction Contains response elements. 00079 */ 00080 void CancelReceivedL( CSIPExSIPEngine& aEngine, 00081 CSIPClientTransaction& aTransaction ); 00082 00083 00084 private: 00085 /** 00086 * C++ default constructor. 00087 */ 00088 CSIPExSIPServerEstablishingState(); 00089 00090 private://data members 00091 CSIPExSIPStateBase* iEstablishedState; 00092 CSIPExSIPStateBase* iTerminatedState; 00093 }; 00094 00095 #endif // _SIPEXSIPSERVERESTABLISHINGSTATE_H_ 00096
|
© Nokia 2006 |