realtimenetprots/sipfw/SIP/Client/src/RSIP.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2004-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          : RSIP.h
       
    16 * Part of       : SIPClient
       
    17 * Version       : SIP/4.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef RSIP_H
       
    30 #define RSIP_H
       
    31 
       
    32 #include <e32std.h>
       
    33 #include "MSIPITC.h"
       
    34 
       
    35 
       
    36 class RSIP : public RSessionBase, public MSIPITC
       
    37 	{
       
    38 public: // Constructor
       
    39 
       
    40 	RSIP();
       
    41 
       
    42 public: // From MSIPITC
       
    43 
       
    44     TInt Send (TSipItcFunctions aFunction, TIpcArgs& aArgs) const;
       
    45     void Receive (TIpcArgs& aArgs, TRequestStatus& aStatus);
       
    46     TInt Receive (TIpcArgs& aArgs);
       
    47     void CancelReceive ();
       
    48 
       
    49 public: // New functions
       
    50 
       
    51 	TInt Connect (const TUid& aUid);
       
    52     TInt Connect ();
       
    53 	void Close ();
       
    54 	TVersion Version () const;
       
    55 
       
    56 private:
       
    57 
       
    58 	TInt SendClientUid (const TUid& aUid) const;
       
    59     void Panic (TInt aReason) const;
       
    60 
       
    61     TBool iConnected;
       
    62 
       
    63 #ifdef CPPUNIT_TEST
       
    64     // For testing purposes only:
       
    65     TBool iReceiveCalled;
       
    66     TRequestStatus* iStatus;
       
    67 #endif
       
    68 	};
       
    69 
       
    70 #endif // RSIP_H
       
    71 
       
    72 // End of File