|
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 "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: Generic object interface |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __MIMPSSAPOBJECT_H |
|
19 #define __MIMPSSAPOBJECT_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <s32strm.h> |
|
23 |
|
24 |
|
25 // DATA TYPES |
|
26 |
|
27 // Enumeration for SAP object IDs |
|
28 enum TIMPSSapObjectID |
|
29 { |
|
30 EIMPSSapObjSapSettings = 0x1230001, |
|
31 EIMPSSapObjKeyValuePairs = 0x1230002 |
|
32 }; |
|
33 |
|
34 // Initial version number for SAP object |
|
35 const TInt KIMPSSapObjVersionInitial = 1; |
|
36 |
|
37 |
|
38 |
|
39 // CLASS DECLARATION |
|
40 /** |
|
41 * Generic object interface. |
|
42 * |
|
43 * |
|
44 */ |
|
45 class MIMPSSapObject |
|
46 { |
|
47 public: // New methods |
|
48 |
|
49 virtual TIMPSSapObjectID ObjectID() const = 0; |
|
50 virtual TInt ObjectVersion() const = 0; |
|
51 virtual void ExternalizeVersionDataL( TInt aVersion, RWriteStream& aStream ) const = 0; |
|
52 virtual void InternalizeVersionDataL( TInt aVersion, RReadStream& aStream ) = 0; |
|
53 virtual TInt DataSize() const = 0; |
|
54 virtual void Reset() = 0; |
|
55 |
|
56 |
|
57 |
|
58 protected: |
|
59 virtual ~MIMPSSapObject() {} |
|
60 |
|
61 }; |
|
62 |
|
63 |
|
64 #endif // __MIMPSSAPOBJECT_H |
|
65 |
|
66 // End of File |