1 // Copyright (c) 1999-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // contains the implementation of the inline function the TSmsSettings class
15 // used to get and set the SMS settings
25 Gets the time-out value.
27 @return Time-out value
30 inline const TTimeIntervalMicroSeconds32& TSmsSettings::Timeout() const
32 return iTimeoutMicroSeconds32;
37 * Sets the time-out value.
39 * @param aTimeout Time-out value
41 inline void TSmsSettings::SetTimeout(const TTimeIntervalMicroSeconds32& aTimeout)
43 iTimeoutMicroSeconds32=aTimeout;
48 * Gets the maximum number of attempts to send an SMS.
50 * @return Maximum number of attempts to send a SMS
52 inline TInt TSmsSettings::SendTryLimit() const
59 * Sets the maximum number of attempts to send an SMS.
61 * @param aLimit Maximum number of attempts to send a SMS
63 inline void TSmsSettings::SetSendTryLimit(TInt aLimit)
70 * Gets whether the PDU can be deleted from the SIM.
72 * @return True if the PDU can be deleted from the SIM
74 inline TBool TSmsSettings::DeletePDUsFromSIM() const
76 return iFlags&ESmsFlagDeletePDUsFromSIM;
81 * Sets whether the PDU can be deleted from the SIM.
83 * @param aDelete True if the PDU can be deleted from the SIM
85 inline void TSmsSettings::SetDeletePDUsFromSIM(TBool aDelete)
87 iFlags=aDelete? iFlags|ESmsFlagDeletePDUsFromSIM: iFlags&(~ESmsFlagDeletePDUsFromSIM);
92 * Gets whether the PDU can be deleted from the phone store.
94 * @return True if the PDU can be deleted from the phone store
96 inline TBool TSmsSettings::DeletePDUsFromPhoneStores() const
98 return iFlags&ESmsFlagDeletePDUsFromPhoneStores;
103 * Sets whether the PDU can be deleted from the phone store.
105 * @param aDelete True if the PDU can be deleted from phone store
107 inline void TSmsSettings::SetDeletePDUsFromPhoneStores(TBool aDelete)
109 iFlags=aDelete? iFlags|ESmsFlagDeletePDUsFromPhoneStores: iFlags&(~ESmsFlagDeletePDUsFromPhoneStores);
114 * Gets whether the PDU can be deleted from the combined store.
116 * @return True if the PDU can be deleted from the combined store
118 inline TBool TSmsSettings::DeletePDUsFromCombinedStores() const
120 return iFlags&ESmsFlagDeletePDUsFromCombinedStores;
125 * Sets whether the PDU can be deleted from the combined store.
127 * @param aDelete True if the PDU can be deleted from the combined store
129 inline void TSmsSettings::SetDeletePDUsFromCombinedStores(TBool aDelete)
131 iFlags=aDelete? iFlags|ESmsFlagDeletePDUsFromCombinedStores: iFlags&(~ESmsFlagDeletePDUsFromCombinedStores);
136 * Gets the value of the Reassembly store life time.
138 * @return Reassembly store life time
140 inline const TTimeIntervalMinutes& TSmsSettings::ReassemblyLifetime() const
142 return iReassemblyLifetime;
147 * Sets the value of the Reassembly store life time.
149 * @param aReassemblyLifetime Reassembly store life time
151 inline void TSmsSettings::SetReassemblyLifetime(const TTimeIntervalMinutes& aReassemblyLifetime)
153 iReassemblyLifetime=aReassemblyLifetime;
158 * Gets the value of the segmentation store multiplier.
160 * @return Segmentation store multiplier
162 inline TInt TSmsSettings::KSegmentationLifetimeMultiplier() const
164 return iKSegmentationLifetimeMultiplier;
169 * Sets the value of the segmentation store multiplier.
171 * @param aKSegmentationLifetimeMultiplier Segmentation store multiplier
173 inline void TSmsSettings::SetKSegmentationLifetimeMultiplier(TInt aKSegmentationLifetimeMultiplier)
175 iKSegmentationLifetimeMultiplier=aKSegmentationLifetimeMultiplier;
180 * Gets the value of the modem initialisation timeout duration.
182 * @return Modem initialisation timeout duration
184 inline const TTimeIntervalMicroSeconds32& TSmsSettings::ModemInitializationTimeout() const
186 return iModemInitializationTimeoutMicroSeconds32;
191 * Sets the value of the modem initialisation timeout duration.
193 * @param aTimeout Modem initialisation timeout duration
195 inline void TSmsSettings::SetModemInitializationTimeout(const TTimeIntervalMicroSeconds32& aTimeout)
197 iModemInitializationTimeoutMicroSeconds32=aTimeout;
202 * Gets the Send Try Timeout value
204 * @return Time-out value
206 inline const TTimeIntervalMicroSeconds32& TSmsSettings::SendTryTimeout() const
208 return iSendTryTimeoutMicroSeconds32;
213 * Sets the Send Try Timeout value.
215 * @param aTimeout Time-out value
217 inline void TSmsSettings::SetSendTryTimeout(const TTimeIntervalMicroSeconds32& aTimeout)
219 iSendTryTimeoutMicroSeconds32=aTimeout;
224 * Gets the Boot Timer Timeout value
226 * @return Boot Timer Time-out value
228 inline const TTimeIntervalMicroSeconds32& TSmsSettings::BootTimerTimeout()
230 return iBootTimerTimeout32;
235 * Sets the Boot Timer Timeout value
237 * @param aTimeout Time-out value
239 inline void TSmsSettings::SetBootTimerTimeout(const TTimeIntervalMicroSeconds32& aTimeout)
241 iBootTimerTimeout32 = aTimeout;