equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_NCDSTORAGEITEMDATA_H |
|
20 #define M_NCDSTORAGEITEMDATA_H |
|
21 |
|
22 |
|
23 #include <s32strm.h> // RWriteStream, RReadStream |
|
24 |
|
25 |
|
26 /** |
|
27 * Interface for database items. |
|
28 * |
|
29 * All items that are added to the database storage must implement this |
|
30 * |
|
31 * @note Do not try to use the database from ExternalizeL or InternalizeL since |
|
32 * it leads to a DBMS-Table 11 panic. |
|
33 * |
|
34 */ |
|
35 class MNcdStorageDataItem |
|
36 { |
|
37 public: |
|
38 |
|
39 |
|
40 /** |
|
41 * Writes the implementing object's data to the stream |
|
42 * |
|
43 * @param aStream Write stream |
|
44 */ |
|
45 virtual void ExternalizeL( RWriteStream& aStream ) = 0; |
|
46 |
|
47 |
|
48 /** |
|
49 * Reads the implementing object's data from the stream |
|
50 * |
|
51 * @param aStream Read stream |
|
52 */ |
|
53 virtual void InternalizeL( RReadStream& aStream ) = 0; |
|
54 |
|
55 |
|
56 protected: |
|
57 |
|
58 virtual ~MNcdStorageDataItem() |
|
59 { |
|
60 } |
|
61 }; |
|
62 |
|
63 |
|
64 #endif // M_NCDSTORAGEITEMDATA_H |