diff -r 4096754ee773 -r 52a167391590 localconnectivityservice/dun/utils/inc/DunUtils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/localconnectivityservice/dun/utils/inc/DunUtils.h Wed Sep 01 12:20:40 2010 +0100 @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2006-2008 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: Common utility methods for DUN +* +*/ + + +#ifndef C_CDUNUTILS_H +#define C_CDUNUTILS_H + +#ifdef PRJ_USE_NETWORK_STUBS +#include +#else +#include +#endif +#include + +/** + * This class contains common utility methods for DUN + * + * @lib dunutils.lib + * @since S60 v3.2 + */ +NONSHARABLE_CLASS( CDunUtils ) : public CBase + { + +public: + + /** + * Connects to comms server + * + * @since S60 3.2 + * @param aCommServer Comms server where to connect + * @return Symbian error code on error, KErrNone otherwise + */ + IMPORT_C static TInt ConnectCommsServer( RCommServ& aCommServer ); + + /** + * Sets RComm buffer length + * + * @since S60 3.2 + * @param aComm RComm object whose length to set + * @param aLength Length to set to aComm + * @return Symbian error code on error, KErrNone otherwise + */ + IMPORT_C static TInt SetRCommBufferLength( RComm& aComm, TInt aLength ); + + }; + +#endif // C_CDUNUTILS_H