realtimenetprots/sipfw/SIP/ConnectionMgr/src/CSecureSocketContainer.h
changeset 0 307788aac0a8
child 17 654ed625511d
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        : CSecureSocketContainer.h
       
    16 * Part of     : ConnectionMgr
       
    17 * See class definition below.
       
    18 * Version     : SIP/5.0
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 /**
       
    26  @internalComponent
       
    27 */
       
    28 
       
    29 #ifndef CSECURESOCKETCONTAINER_H
       
    30 #define CSECURESOCKETCONTAINER_H
       
    31   
       
    32 // INCLUDES
       
    33 #include "CSocketContainer.h"
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 class CSecureSocket;
       
    37 
       
    38 // CLASS DEFINITION
       
    39 //
       
    40 class CSecureSocketContainer : public CSocketContainer
       
    41     {
       
    42     public: // Constructor and destructor
       
    43         
       
    44         static CSecureSocketContainer* NewL( RSocket& aSocket );
       
    45         
       
    46         static CSecureSocketContainer* NewLC( RSocket& aSocket );   
       
    47          
       
    48         ~CSecureSocketContainer();
       
    49     
       
    50     public: // From CSocketContainer
       
    51     
       
    52         void Send( const TDesC8& aDesc, 
       
    53                    TUint aFlags, 
       
    54                    TRequestStatus& aStatus );
       
    55         
       
    56         void CancelSend();
       
    57         
       
    58         void RecvOneOrMore( TDes8& aDes, 
       
    59                             TUint aFlags, 
       
    60                             TRequestStatus& aStatus, 
       
    61                             TSockXfrLength& aLen );
       
    62                             
       
    63         void CancelRecv();
       
    64         
       
    65         void Connect( TSockAddr& aAddr, TRequestStatus& aStatus );
       
    66         
       
    67         void CancelConnect();
       
    68         
       
    69         void RemoteName( TSockAddr& aAddr );
       
    70         
       
    71         TInt SetOpt( TUint aOptionName, TUint aOptionLevel, const TDesC8& aOption );
       
    72         
       
    73         TInt SetOpt( TUint aOptionName, TUint aOptionLevel, TInt aOption );
       
    74         
       
    75         TBool HasSecureSocket() const;
       
    76         
       
    77         CSecureSocket* SecureSocket();
       
    78     
       
    79     public: // New methods
       
    80     
       
    81         void SetSecureSocket( CSecureSocket* aSecureSocket );
       
    82           
       
    83     private: // Private constructor
       
    84 
       
    85         CSecureSocketContainer( RSocket& aSocket );
       
    86         
       
    87     private: // Data
       
    88         
       
    89         CSecureSocket* iSecureSocket; // Not owned
       
    90         
       
    91     };
       
    92     
       
    93 #endif // CSECURESOCKETCONTAINER_H