realtimenetprots/sipfw/SIP/Client/src/RSIPConnection.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          : RSIPConnection.h
       
    16 * Part of       : SIPClient
       
    17 * Version       : SIP/4.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef RSIPCONNECTION_H
       
    30 #define RSIPCONNECTION_H
       
    31 
       
    32 #include <e32std.h>
       
    33 #include "sipconnection.h"
       
    34 #include "MSIPITC.h"
       
    35 
       
    36 class RSIP;
       
    37 
       
    38 
       
    39 class RSIPConnection : public RSubSessionBase, public MSIPITC
       
    40 	{
       
    41 public:
       
    42 
       
    43 	RSIPConnection(TUint32 aIapId);
       
    44 
       
    45 	TInt Open (RSIP& aSip);
       
    46 	void Close ();
       
    47 
       
    48     void SetState (CSIPConnection::TState aState);
       
    49     CSIPConnection::TState State () const;
       
    50 
       
    51 public: // From MSIPITC
       
    52 
       
    53     TInt Send (TSipItcFunctions aFunction, TIpcArgs& aArgs) const;
       
    54     void Receive (TIpcArgs& aArgs, TRequestStatus& aStatus);
       
    55     TInt Receive (TIpcArgs& aArgs);
       
    56     void CancelReceive ();
       
    57 
       
    58 private: // Data
       
    59 
       
    60     TBool iOpen;
       
    61     TUint32 iIapId;
       
    62     CSIPConnection::TState iState;
       
    63 
       
    64 #ifdef CPPUNIT_TEST
       
    65     // For testing purposes only:
       
    66     TBool iReceiveCalled;
       
    67     TRequestStatus* iStatus;
       
    68 #endif
       
    69 	};
       
    70 
       
    71 #endif // RSIPCONNECTION_H
       
    72 
       
    73 // End of File