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 "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".
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
22 Gets the time-out value.
24 @return Time-out value
27 inline const TTimeIntervalMicroSeconds32& TSmsSettings::Timeout() const
29 return iTimeoutMicroSeconds32;
33 * Sets the time-out value.
35 * @param aTimeout Time-out value
37 inline void TSmsSettings::SetTimeout(const TTimeIntervalMicroSeconds32& aTimeout)
39 iTimeoutMicroSeconds32=aTimeout;
43 * Gets the maximum number of attempts to send an SMS.
45 * @return Maximum number of attempts to send a SMS
47 inline TInt TSmsSettings::SendTryLimit() const
53 * Sets the maximum number of attempts to send an SMS.
55 * @param aLimit Maximum number of attempts to send a SMS
57 inline void TSmsSettings::SetSendTryLimit(TInt aLimit)
63 * Gets whether the PDU can be deleted from the SIM.
65 * @return True if the PDU can be deleted from the SIM
67 inline TBool TSmsSettings::DeletePDUsFromSIM() const
69 return iFlags&ESmsFlagDeletePDUsFromSIM;
73 * Sets whether the PDU can be deleted from the SIM.
75 * @param aDelete True if the PDU can be deleted from the SIM
77 inline void TSmsSettings::SetDeletePDUsFromSIM(TBool aDelete)
79 iFlags=aDelete? iFlags|ESmsFlagDeletePDUsFromSIM: iFlags&(~ESmsFlagDeletePDUsFromSIM);
83 * Gets whether the PDU can be deleted from the phone store.
85 * @return True if the PDU can be deleted from the phone store
87 inline TBool TSmsSettings::DeletePDUsFromPhoneStores() const
89 return iFlags&ESmsFlagDeletePDUsFromPhoneStores;
93 * Sets whether the PDU can be deleted from the phone store.
95 * @param aDelete True if the PDU can be deleted from phone store
97 inline void TSmsSettings::SetDeletePDUsFromPhoneStores(TBool aDelete)
99 iFlags=aDelete? iFlags|ESmsFlagDeletePDUsFromPhoneStores: iFlags&(~ESmsFlagDeletePDUsFromPhoneStores);
103 * Gets whether the PDU can be deleted from the combined store.
105 * @return True if the PDU can be deleted from the combined store
107 inline TBool TSmsSettings::DeletePDUsFromCombinedStores() const
109 return iFlags&ESmsFlagDeletePDUsFromCombinedStores;
113 * Sets whether the PDU can be deleted from the combined store.
115 * @param aDelete True if the PDU can be deleted from the combined store
117 inline void TSmsSettings::SetDeletePDUsFromCombinedStores(TBool aDelete)
119 iFlags=aDelete? iFlags|ESmsFlagDeletePDUsFromCombinedStores: iFlags&(~ESmsFlagDeletePDUsFromCombinedStores);
123 * Gets the value of the Reassembly store life time.
125 * @return Reassembly store life time
127 inline const TTimeIntervalMinutes& TSmsSettings::ReassemblyLifetime() const
129 return iReassemblyLifetime;
133 * Sets the value of the Reassembly store life time.
135 * @param aReassemblyLifetime Reassembly store life time
137 inline void TSmsSettings::SetReassemblyLifetime(const TTimeIntervalMinutes& aReassemblyLifetime)
139 iReassemblyLifetime=aReassemblyLifetime;
143 * Gets the value of the segmentation store multiplier.
145 * @return Segmentation store multiplier
147 inline TInt TSmsSettings::KSegmentationLifetimeMultiplier() const
149 return iKSegmentationLifetimeMultiplier;
153 * Sets the value of the segmentation store multiplier.
155 * @param aKSegmentationLifetimeMultiplier Segmentation store multiplier
157 inline void TSmsSettings::SetKSegmentationLifetimeMultiplier(TInt aKSegmentationLifetimeMultiplier)
159 iKSegmentationLifetimeMultiplier=aKSegmentationLifetimeMultiplier;
163 * Gets the value of the modem initialisation timeout duration.
165 * @return Modem initialisation timeout duration
167 inline const TTimeIntervalMicroSeconds32& TSmsSettings::ModemInitializationTimeout() const
169 return iModemInitializationTimeoutMicroSeconds32;
173 * Sets the value of the modem initialisation timeout duration.
175 * @param aTimeout Modem initialisation timeout duration
177 inline void TSmsSettings::SetModemInitializationTimeout(const TTimeIntervalMicroSeconds32& aTimeout)
179 iModemInitializationTimeoutMicroSeconds32=aTimeout;
183 * Gets the Send Try Timeout value
185 * @return Time-out value
187 inline const TTimeIntervalMicroSeconds32& TSmsSettings::SendTryTimeout() const
189 return iSendTryTimeoutMicroSeconds32;
193 * Sets the Send Try Timeout value.
195 * @param aTimeout Time-out value
197 inline void TSmsSettings::SetSendTryTimeout(const TTimeIntervalMicroSeconds32& aTimeout)
199 iSendTryTimeoutMicroSeconds32=aTimeout;
203 * Gets the Boot Timer Timeout value
205 * @return Boot Timer Time-out value
207 inline const TTimeIntervalMicroSeconds32& TSmsSettings::BootTimerTimeout()
209 return iBootTimerTimeout32;
213 * Sets the Boot Timer Timeout value
215 * @param aTimeout Time-out value
217 inline void TSmsSettings::SetBootTimerTimeout(const TTimeIntervalMicroSeconds32& aTimeout)
219 iBootTimerTimeout32 = aTimeout;