diff -r 000000000000 -r dd21522fd290 browserutilities/favouritesengine/ClientServer/srvinc/FavouritesSrvStream.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browserutilities/favouritesengine/ClientServer/srvinc/FavouritesSrvStream.h Mon Mar 30 12:54:55 2009 +0300 @@ -0,0 +1,80 @@ +/* +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: +* Declaration of class HFavouritesSrvStream. +* +* +*/ + + +#ifndef FAVOURITES_SRV_STREAM_H +#define FAVOURITES_SRV_STREAM_H + +// INCLUDES + +#include +#include + +// FORWARD DECLARATION + +class RMessage2; + +// CLASS DECLARATION + +/** +* Server side stream object. +*/ +NONSHARABLE_CLASS(HFavouritesSrvStream) + { + + public: // Constructors and destructor + + /** + * Constructor. + * @param aHost Stream buffer hosting the stream. Ownership taken. + */ + inline HFavouritesSrvStream( MStreamBuf& aHost ); + + /** + * Destructor. Releases the stream buffer. + */ + inline ~HFavouritesSrvStream(); + + /** + * Read data from host to client. + * @param aMessage Message. + */ + TInt ReadL( const RMessage2& aMessage ); + + /** + * Write data from client to host. + * @param aMessage Message. + */ + void WriteL( const RMessage2& aMessage ); + + /** + * Get the stream buffer. + */ + inline MStreamBuf& Host(); + + private: // Data + + MStreamBuf& iHost; ///< Stream buffer hosting the stream. + }; + +#include "FavouritesSrvStream.inl" + +#endif + +// End of File