|
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 HFavouritesSrvBuf. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef FAVOURITES_SRV_BUF_H |
|
22 #define FAVOURITES_SRV_BUF_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <s32mem.h> |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Server side dynamic stream buffer. Hosts streamed data on the server side. |
|
33 */ |
|
34 NONSHARABLE_CLASS(HFavouritesSrvBuf): public TBufBuf |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Two phased constructor. Leaves on failure. |
|
40 * @return The constructed buffer. |
|
41 */ |
|
42 static HFavouritesSrvBuf* NewL(); |
|
43 |
|
44 /** |
|
45 * Two phased constructor. Leaves on failure. |
|
46 * @return The constructed buffer. |
|
47 */ |
|
48 static HFavouritesSrvBuf* NewLC(); |
|
49 |
|
50 private: // Constructors and destructor |
|
51 |
|
52 /** |
|
53 * Constructor. |
|
54 */ |
|
55 inline HFavouritesSrvBuf(); |
|
56 |
|
57 /** |
|
58 * Second phase constructor. Leaves on failure. |
|
59 */ |
|
60 void ConstructL(); |
|
61 |
|
62 /** |
|
63 * Destructor. |
|
64 */ |
|
65 virtual inline ~HFavouritesSrvBuf(); |
|
66 |
|
67 private: // From TBufBuf |
|
68 |
|
69 /** |
|
70 * Release this buffer. Deletes this. |
|
71 */ |
|
72 void DoRelease(); |
|
73 |
|
74 private: // Data |
|
75 |
|
76 CBufBase* iBuf; ///< The buffer. Owned. |
|
77 |
|
78 }; |
|
79 |
|
80 #include "FavouritesSrvBuf.inl" |
|
81 |
|
82 #endif |
|
83 |
|
84 // End of File |