|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The file contains implementation of TGsmSmsSlot class. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 */ |
|
21 |
|
22 |
|
23 #include "gsmuSmsSlot.h" |
|
24 |
|
25 #include "smsstacklog.h" |
|
26 |
|
27 /** |
|
28 * Default constructor. |
|
29 */ |
|
30 EXPORT_C TGsmSmsSlot::TGsmSmsSlot() |
|
31 { |
|
32 } // TGsmSmsSlot::TGsmSmsSlot |
|
33 |
|
34 |
|
35 /** |
|
36 * Constructor. |
|
37 */ |
|
38 EXPORT_C TGsmSmsSlot::TGsmSmsSlot(const RMobileSmsStore::TMobileGsmSmsEntryV1& aSmsEntry) |
|
39 : RMobileSmsStore::TMobileGsmSmsEntryV1( aSmsEntry ) |
|
40 { |
|
41 } // RMobileSmsStore::TMobileGsmSmsEntryV1 |
|
42 |
|
43 |
|
44 /** |
|
45 * Internalize |
|
46 * |
|
47 * @param aStream For internalizing the data |
|
48 */ |
|
49 void TGsmSmsSlot::InternalizeL(RReadStream& aStream) |
|
50 { |
|
51 // Ignore in code coverage - not used in SMS stack and not exported |
|
52 // but cannot be removed as impacts public header. |
|
53 BULLSEYE_OFF |
|
54 aStream >> iStore; |
|
55 iIndex=aStream.ReadInt32L(); |
|
56 BULLSEYE_RESTORE |
|
57 } |
|
58 |
|
59 /** |
|
60 * Externalize |
|
61 * |
|
62 * @param aStream For Externalizing the data |
|
63 */ |
|
64 void TGsmSmsSlot::ExternalizeL(RWriteStream& aStream) const |
|
65 { |
|
66 // Ignore in code coverage - not used in SMS stack and not exported |
|
67 // but cannot be removed as impacts public header. |
|
68 BULLSEYE_OFF |
|
69 aStream << iStore; |
|
70 aStream.WriteInt32L(iIndex); |
|
71 BULLSEYE_RESTORE |
|
72 } |