equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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 #ifndef TSMODELITEMKEY_H |
|
18 #define TSMODELITEMKEY_H |
|
19 |
|
20 #include <e32base.h> |
|
21 #include <s32strm.h> |
|
22 |
|
23 typedef TInt TTsKey; |
|
24 |
|
25 class TTsModelItemKey |
|
26 { |
|
27 public: |
|
28 static TInt size(); |
|
29 TTsModelItemKey(); |
|
30 TTsModelItemKey(TTsKey key, TInt root); |
|
31 TTsModelItemKey(const TTsModelItemKey &key); |
|
32 TTsModelItemKey& operator =(const TTsModelItemKey& key); |
|
33 TBool operator == (const TTsModelItemKey key) const; |
|
34 TInt key() const; |
|
35 void ExternalizeL(RWriteStream& stream) const; |
|
36 void InternalizeL(RReadStream& stream); |
|
37 |
|
38 private: |
|
39 TTsKey mKey; |
|
40 TInt mRoot; |
|
41 }; |
|
42 |
|
43 #endif //TSMODELITEMKEY_H |