realtimenetprots/sipfw/SIP/Client/src/CSIPClientConnectionReceiver.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Name          : CSIPClientConnectionReceiver.h
       
    16 * Part of       : SIPClient
       
    17 * Version       : SIP/4.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef CSIPCLIENTCONNECTIONRECEIVER_H
       
    29 #define CSIPCLIENTCONNECTIONRECEIVER_H
       
    30 
       
    31 #include "CSIPITCReceiverBase.h"
       
    32 #include "sipconnection.h"
       
    33 #include "_sipcodecdefs.h"
       
    34 
       
    35 class RSIPConnection;
       
    36 class MSIPClientConnectionObserver;
       
    37 
       
    38 
       
    39 class CSIPClientConnectionReceiver : public CSIPITCReceiverBase
       
    40 	{
       
    41 public:
       
    42 
       
    43 	CSIPClientConnectionReceiver(RSIPConnection& aConnection,
       
    44                                  MSIPClientConnectionObserver& aObserver);
       
    45 
       
    46 	~CSIPClientConnectionReceiver();
       
    47 
       
    48 private: // From CSIPITCReceiverBase
       
    49 
       
    50 	void IncomingRequestL(TSIPIds& aIds,
       
    51                            CSIPRequestElements* aRequest);
       
    52 
       
    53 	void IncomingResponseL(TSIPIds& aIds,
       
    54                            CSIPResponseElements* aResponse);
       
    55 
       
    56     void ErrorOccuredL(TSIPIds& aIds, TInt aError);
       
    57 
       
    58 private: // New functions
       
    59 
       
    60     void ErrorOccured(TSIPIds& aIds, TInt aError);
       
    61     void InviteCompleted(TSIPIds& aIds);
       
    62     void ConnectionStateChanged(CSIPConnection::TState aState);
       
    63 
       
    64 private: // Data
       
    65 	
       
    66     RSIPConnection& iConnection; // uses to receive through ITC
       
    67 	MSIPClientConnectionObserver& iObserver;
       
    68 
       
    69 private: // For testing purposes
       
    70 
       
    71     UNIT_TEST(CSIPClientConnectionReceiverTest)
       
    72 	};
       
    73 
       
    74 #endif // CSIPCLIENTCONNECTIONRECEIVER_H
       
    75 
       
    76 // End of File