|
1 /* |
|
2 * Copyright (c) 2004 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 the License "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 * Declaration of class HFavouritesSrvStream. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef FAVOURITES_SRV_STREAM_H |
|
22 #define FAVOURITES_SRV_STREAM_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <s32buf.h> |
|
28 |
|
29 // FORWARD DECLARATION |
|
30 |
|
31 class RMessage2; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Server side stream object. |
|
37 */ |
|
38 NONSHARABLE_CLASS(HFavouritesSrvStream) |
|
39 { |
|
40 |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Constructor. |
|
45 * @param aHost Stream buffer hosting the stream. Ownership taken. |
|
46 */ |
|
47 inline HFavouritesSrvStream( MStreamBuf& aHost ); |
|
48 |
|
49 /** |
|
50 * Destructor. Releases the stream buffer. |
|
51 */ |
|
52 inline ~HFavouritesSrvStream(); |
|
53 |
|
54 /** |
|
55 * Read data from host to client. |
|
56 * @param aMessage Message. |
|
57 */ |
|
58 TInt ReadL( const RMessage2& aMessage ); |
|
59 |
|
60 /** |
|
61 * Write data from client to host. |
|
62 * @param aMessage Message. |
|
63 */ |
|
64 void WriteL( const RMessage2& aMessage ); |
|
65 |
|
66 /** |
|
67 * Get the stream buffer. |
|
68 */ |
|
69 inline MStreamBuf& Host(); |
|
70 |
|
71 private: // Data |
|
72 |
|
73 MStreamBuf& iHost; ///< Stream buffer hosting the stream. |
|
74 }; |
|
75 |
|
76 #include "FavouritesSrvStream.inl" |
|
77 |
|
78 #endif |
|
79 |
|
80 // End of File |