equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2003 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 "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: This file contains the header file of the CbsStreamHelper class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CBSSTREAMHELPER_H |
|
21 #define CBSSTREAMHELPER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <s32file.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Contains common methods used by the database. |
|
30 * |
|
31 * |
|
32 */ |
|
33 class CbsStreamHelper |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Reads boolean value from the stream. |
|
38 * |
|
39 * @param aStream The stream from which the value is read. |
|
40 * @return Read value. |
|
41 */ |
|
42 static TBool ReadBoolL( RReadStream& aStream ); |
|
43 |
|
44 /** |
|
45 * Writes boolean value to the stream. |
|
46 * |
|
47 * @param aStream The stream to which the value is written. |
|
48 * @param aBool The value to be written. |
|
49 */ |
|
50 static void WriteBoolL( RWriteStream& aStream, TBool aBool ); |
|
51 }; |
|
52 |
|
53 #endif // CBSSTREAMHELPER |