|
1 /* |
|
2 * Copyright (c) 2002-2007 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: Provides functions to read and write from/to long text columns. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef POSLMLONGTEXTCOLHANDLER_H |
|
20 #define POSLMLONGTEXTCOLHANDLER_H |
|
21 |
|
22 #include <d32dbms.h> |
|
23 |
|
24 /** |
|
25 * Provides functions to read and write from/to long text columns. |
|
26 */ |
|
27 class PosLmLongTextColHandler |
|
28 { |
|
29 |
|
30 public: // New functions |
|
31 |
|
32 /** |
|
33 * Reads the data of a long text column. |
|
34 * |
|
35 * @param[out] aLongText A buffer of proper size for the specified column. |
|
36 * @param[in] aView Prepared view. |
|
37 * @param[in] aCol The number of the column to read from. |
|
38 */ |
|
39 IMPORT_C static void ReadFromLongTextColumnL( |
|
40 TDes& aLongText, |
|
41 RDbRowSet& aView, |
|
42 TDbColNo aCol |
|
43 ); |
|
44 |
|
45 /** |
|
46 * Writes the specified text to a long text column. |
|
47 * |
|
48 * @param[in] aLongText The text to write. |
|
49 * @param[in] aView Prepared view. |
|
50 * @param[in] aCol The number of the column to write to. |
|
51 */ |
|
52 IMPORT_C static void WriteToLongTextColumnL( |
|
53 const TDesC& aLongText, |
|
54 RDbRowSet& aView, |
|
55 TDbColNo aCol |
|
56 ); |
|
57 |
|
58 /** |
|
59 * Reads the data of a long text column. |
|
60 * |
|
61 * @param[in] aView Prepared view. |
|
62 * @param[in] aCol The number of the column to read from. |
|
63 * @return Data from the column. |
|
64 */ |
|
65 IMPORT_C static HBufC* ReadFromLongTextColumnLC( |
|
66 RDbRowSet& aView, |
|
67 TDbColNo aCol ); |
|
68 }; |
|
69 |
|
70 #endif // POSLMLONGTEXTCOLHANDLER_H |