diff -r 000000000000 -r 307788aac0a8 realtimenetprots/sipfw/SIP/ConnectionMgr/inc/CSocketOpt.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/realtimenetprots/sipfw/SIP/ConnectionMgr/inc/CSocketOpt.h Tue Feb 02 01:03:15 2010 +0200 @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* Name : CSocketOpt.h +* Part of : ConnectionMgr +* See class definition below. +* Version : SIP/4.0 +* +*/ + + + +#ifndef __CSOCKETOPT_H__ + +/** +* @internalComponent +*/ +#define __CSOCKETOPT_H__ + +// INCLUDES +#include +#include + +class CSocketOpt : public CBase + { +public: // Constructor and destructor + + static CSocketOpt* NewLC( TUint aOptionName, + TUint aOptionLevel, + TInt aOption ); + + static CSocketOpt* NewLC( TUint aOptionName, + TUint aOptionLevel, + const TDesC8& aOption ); + ~CSocketOpt(); + +private: // Private contruction + + void ConstructL( const TDesC8& aOption = KNullDesC8 ); + + CSocketOpt( TUint aOptionName, + TUint aOptionLevel, + TInt aOption = 0 ); + +public: // Public methods + + TUint OptionName() const; + + /** + * Sets socket options + */ + CSocketOpt* SetOptL( RSocket& aSocket ); + + +private: // Data + + TUint iOptionName; + + TUint iOptionLevel; + + TInt iOption; + + HBufC8* iOptionBuf; + +private: // For unit testing +#ifdef CPPUNIT_TEST + friend class COwnerSettingsListTest; +#endif + }; + +#endif // __CSOCKETOPT_H__