|
1 /* |
|
2 * Copyright (c) 2008 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: Task list entry |
|
15 * |
|
16 */ |
|
17 #include <s32mem.h> |
|
18 #include "tsmodelitemkeymsg.h" |
|
19 |
|
20 // ----------------------------------------------------------------------------- |
|
21 CTsModelItemKeyMsg* CTsModelItemKeyMsg::NewLC(RReadStream& stream) |
|
22 { |
|
23 CTsModelItemKeyMsg* self = new (ELeave)CTsModelItemKeyMsg(); |
|
24 CleanupStack::PushL(self); |
|
25 self->ConstructL(stream); |
|
26 return self; |
|
27 } |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 CTsModelItemKeyMsg::~CTsModelItemKeyMsg() |
|
31 {} |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 TTsModelItemKey CTsModelItemKeyMsg::key() const |
|
35 { |
|
36 return mKey; |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 void CTsModelItemKeyMsg::InternalizeL(RReadStream &stream) |
|
41 { |
|
42 stream >> mKey; |
|
43 } |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 CTsModelItemKeyMsg::CTsModelItemKeyMsg() |
|
47 { |
|
48 //no implementation required |
|
49 } |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 void CTsModelItemKeyMsg::ConstructL(RReadStream &stream) |
|
53 { |
|
54 stream >> (*this); |
|
55 } |
|
56 |