|
1 // Copyright (c) 1998-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 // |
|
15 |
|
16 |
|
17 inline CMsvRecipient::TRecipientStatus CMsvRecipient::Status() const |
|
18 /** Gets the message sending status for the recipient. |
|
19 |
|
20 @return Message sending status for the recipient */ |
|
21 { |
|
22 return iStatus; |
|
23 } |
|
24 |
|
25 inline void CMsvRecipient::SetStatus(TRecipientStatus aStatus) |
|
26 /** Sets the message sending status for the recipient. |
|
27 |
|
28 @param aStatus Message sending status for the recipient */ |
|
29 { |
|
30 iStatus=aStatus; |
|
31 } |
|
32 |
|
33 inline TInt CMsvRecipient::Error() const |
|
34 /** Gets any error code for message sending to the recipient. |
|
35 |
|
36 @return System wide error code */ |
|
37 { |
|
38 return iError; |
|
39 } |
|
40 |
|
41 inline void CMsvRecipient::SetError(TInt aError) |
|
42 /** Sets any error code for message sending to the recipient. |
|
43 |
|
44 @param aError System wide error code */ |
|
45 { |
|
46 iError=aError; |
|
47 } |
|
48 |
|
49 inline const TTime& CMsvRecipient::Time() const |
|
50 /** Gets the (const) time for message sending to the recipient. |
|
51 |
|
52 @return Time for message sending to the recipient */ |
|
53 { |
|
54 return iTime; |
|
55 } |
|
56 |
|
57 inline TTime& CMsvRecipient::Time() |
|
58 /** Gets the (writable) time for message sending to the recipient. |
|
59 |
|
60 @return Time for message sending to the recipient */ |
|
61 { |
|
62 return iTime; |
|
63 } |
|
64 |
|
65 inline TInt CMsvRecipient::Retries() const |
|
66 /** Gets the number of retries for message sending to the recipient. |
|
67 |
|
68 @return Number of retries */ |
|
69 { |
|
70 return iRetries; |
|
71 } |
|
72 #if (defined SYMBIAN_MESSAGESTORE_HEADER_BODY_USING_SQLDB) |
|
73 /** Sets iRetries code for message sending to the recipient.*/ |
|
74 inline void CMsvRecipient::SetRetries(TInt aRetries) |
|
75 { |
|
76 iRetries = aRetries; |
|
77 } |
|
78 /** Sets aiTime code for message sending to the recipient.*/ |
|
79 inline void CMsvRecipient:: SetTimeValue(TInt64 aTime) |
|
80 { |
|
81 iTime = aTime; |
|
82 } |
|
83 #endif |
|
84 |
|
85 inline void CMsvRecipient::IncreaseRetries() |
|
86 /** Increments the number of retries for message sending to the recipient. */ |
|
87 { |
|
88 iRetries++; |
|
89 } |
|
90 |
|
91 inline void CMsvRecipient::ResetRetries() |
|
92 /** Resets the number of retries for message sending to the recipient to zero. */ |
|
93 { |
|
94 iRetries=0; |
|
95 } |
|
96 |