epoc32/include/smsuset.inl
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/smsuset.inl	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,242 @@
     1.4 +// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// 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
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// contains the implementation of the inline function the TSmsSettings class
    1.18 +// used to get and set the SMS settings
    1.19 +// 
    1.20 +//
    1.21 +
    1.22 +
    1.23 +
    1.24 +
    1.25 +/**
    1.26 + @file
    1.27 + 
    1.28 + Gets the time-out value.
    1.29 + 
    1.30 + @return Time-out value 
    1.31 + 
    1.32 +*/
    1.33 +inline const TTimeIntervalMicroSeconds32& TSmsSettings::Timeout() const
    1.34 +	{
    1.35 +	return iTimeoutMicroSeconds32;
    1.36 +	}
    1.37 +
    1.38 +
    1.39 +/**
    1.40 + *  Sets the time-out value.
    1.41 + *  
    1.42 + *  @param aTimeout Time-out value 
    1.43 + */
    1.44 +inline void TSmsSettings::SetTimeout(const TTimeIntervalMicroSeconds32& aTimeout)
    1.45 +	{
    1.46 +	iTimeoutMicroSeconds32=aTimeout;
    1.47 +	}
    1.48 +
    1.49 +
    1.50 +/**
    1.51 + *  Gets the maximum number of attempts to send an SMS.
    1.52 + *  
    1.53 + *  @return Maximum number of attempts to send a SMS 
    1.54 + */
    1.55 +inline TInt TSmsSettings::SendTryLimit() const
    1.56 +	{
    1.57 +	return iSendTryLimit;
    1.58 +	}
    1.59 +
    1.60 +
    1.61 +/**
    1.62 + *  Sets the maximum number of attempts to send an SMS.
    1.63 + *  
    1.64 + *  @param aLimit Maximum number of attempts to send a SMS 
    1.65 + */
    1.66 +inline void TSmsSettings::SetSendTryLimit(TInt aLimit)
    1.67 +	{
    1.68 +	iSendTryLimit=aLimit;
    1.69 +	}
    1.70 +
    1.71 +
    1.72 +/**
    1.73 + *  Gets whether the PDU can be deleted from the SIM.
    1.74 + *  
    1.75 + *  @return True if the PDU can be deleted from the SIM 
    1.76 + */
    1.77 +inline TBool TSmsSettings::DeletePDUsFromSIM() const
    1.78 +	{
    1.79 +	return iFlags&ESmsFlagDeletePDUsFromSIM;
    1.80 +	}
    1.81 +
    1.82 +
    1.83 +/**
    1.84 + *  Sets whether the PDU can be deleted from the SIM.
    1.85 + *  
    1.86 + *  @param aDelete True if the PDU can be deleted from the SIM 
    1.87 + */
    1.88 +inline void TSmsSettings::SetDeletePDUsFromSIM(TBool aDelete)
    1.89 +	{
    1.90 +	iFlags=aDelete? iFlags|ESmsFlagDeletePDUsFromSIM: iFlags&(~ESmsFlagDeletePDUsFromSIM);
    1.91 +	}
    1.92 +
    1.93 +
    1.94 +/**
    1.95 + *  Gets whether the PDU can be deleted from the phone store.
    1.96 + *  
    1.97 + *  @return True if the PDU can be deleted from the phone store 
    1.98 + */
    1.99 +inline TBool TSmsSettings::DeletePDUsFromPhoneStores() const
   1.100 +	{
   1.101 +	return iFlags&ESmsFlagDeletePDUsFromPhoneStores;
   1.102 +	}
   1.103 +
   1.104 +
   1.105 +/**
   1.106 + *  Sets whether the PDU can be deleted from the phone store.
   1.107 + *  
   1.108 + *  @param aDelete True if the PDU can be deleted from phone store 
   1.109 + */
   1.110 +inline void TSmsSettings::SetDeletePDUsFromPhoneStores(TBool aDelete)
   1.111 +	{
   1.112 +	iFlags=aDelete? iFlags|ESmsFlagDeletePDUsFromPhoneStores: iFlags&(~ESmsFlagDeletePDUsFromPhoneStores);
   1.113 +	}
   1.114 +
   1.115 +
   1.116 +/**
   1.117 + *  Gets whether the PDU can be deleted from the combined store.
   1.118 + *  
   1.119 + *  @return True if the PDU can be deleted from the combined store 
   1.120 + */
   1.121 +inline TBool TSmsSettings::DeletePDUsFromCombinedStores() const
   1.122 +	{
   1.123 +	return iFlags&ESmsFlagDeletePDUsFromCombinedStores;
   1.124 +	}
   1.125 +
   1.126 +
   1.127 +/**
   1.128 + *  Sets whether the PDU can be deleted from the combined store.
   1.129 + *  
   1.130 + *  @param aDelete True if the PDU can be deleted from the combined store 
   1.131 + */
   1.132 +inline void TSmsSettings::SetDeletePDUsFromCombinedStores(TBool aDelete)
   1.133 +	{
   1.134 +	iFlags=aDelete? iFlags|ESmsFlagDeletePDUsFromCombinedStores: iFlags&(~ESmsFlagDeletePDUsFromCombinedStores);
   1.135 +	}
   1.136 +
   1.137 +
   1.138 +/**
   1.139 + *  Gets the value of the Reassembly store life time.
   1.140 + *  
   1.141 + *  @return Reassembly store life time 
   1.142 + */
   1.143 +inline const TTimeIntervalMinutes& TSmsSettings::ReassemblyLifetime() const
   1.144 +	{
   1.145 +	return iReassemblyLifetime;
   1.146 +	}
   1.147 +
   1.148 +
   1.149 +/**
   1.150 + *  Sets the value of the Reassembly store life time.
   1.151 + *  
   1.152 + *  @param aReassemblyLifetime Reassembly store life time 
   1.153 + */
   1.154 +inline void TSmsSettings::SetReassemblyLifetime(const TTimeIntervalMinutes& aReassemblyLifetime)
   1.155 +	{
   1.156 +	iReassemblyLifetime=aReassemblyLifetime;
   1.157 +	}
   1.158 +
   1.159 +
   1.160 +/**
   1.161 + *  Gets the value of the segmentation store multiplier.
   1.162 + *  
   1.163 + *  @return Segmentation store multiplier 
   1.164 + */
   1.165 +inline TInt TSmsSettings::KSegmentationLifetimeMultiplier() const
   1.166 +	{
   1.167 +	return iKSegmentationLifetimeMultiplier;
   1.168 +	}
   1.169 +
   1.170 +
   1.171 +/**
   1.172 + *  Sets the value of the segmentation store multiplier.
   1.173 + *  
   1.174 + *  @param aKSegmentationLifetimeMultiplier Segmentation store multiplier 
   1.175 + */
   1.176 +inline void TSmsSettings::SetKSegmentationLifetimeMultiplier(TInt aKSegmentationLifetimeMultiplier)
   1.177 +	{
   1.178 +	iKSegmentationLifetimeMultiplier=aKSegmentationLifetimeMultiplier;
   1.179 +	}
   1.180 +
   1.181 +
   1.182 +/**
   1.183 + *  Gets the value of the modem initialisation timeout duration.
   1.184 + *  
   1.185 + *  @return Modem initialisation timeout duration 
   1.186 + */
   1.187 +inline const TTimeIntervalMicroSeconds32& TSmsSettings::ModemInitializationTimeout() const
   1.188 +	{
   1.189 +	return iModemInitializationTimeoutMicroSeconds32;
   1.190 +	}
   1.191 +
   1.192 +
   1.193 +/**
   1.194 + *  Sets the value of the modem initialisation timeout duration.
   1.195 + *  
   1.196 + *  @param aTimeout Modem initialisation timeout duration 
   1.197 + */
   1.198 +inline void TSmsSettings::SetModemInitializationTimeout(const TTimeIntervalMicroSeconds32& aTimeout)
   1.199 +	{
   1.200 +	iModemInitializationTimeoutMicroSeconds32=aTimeout;
   1.201 +	}
   1.202 +
   1.203 +
   1.204 +/**
   1.205 + *  Gets the Send Try Timeout value
   1.206 + *  
   1.207 + *  @return Time-out value
   1.208 + */
   1.209 +inline const TTimeIntervalMicroSeconds32& TSmsSettings::SendTryTimeout() const
   1.210 +	{
   1.211 +	return iSendTryTimeoutMicroSeconds32;
   1.212 +	}
   1.213 +
   1.214 +
   1.215 +/**
   1.216 + *  Sets the Send Try Timeout value.
   1.217 + *  
   1.218 + *  @param aTimeout Time-out value
   1.219 + */
   1.220 +inline void TSmsSettings::SetSendTryTimeout(const TTimeIntervalMicroSeconds32& aTimeout)
   1.221 +	{
   1.222 +	iSendTryTimeoutMicroSeconds32=aTimeout;
   1.223 +	}
   1.224 +
   1.225 +
   1.226 +/**
   1.227 + *  Gets the Boot Timer Timeout value
   1.228 + *  
   1.229 + *  @return Boot Timer Time-out value
   1.230 + */
   1.231 +inline const TTimeIntervalMicroSeconds32& TSmsSettings::BootTimerTimeout()
   1.232 +    {
   1.233 +    return iBootTimerTimeout32;
   1.234 +    }
   1.235 +
   1.236 +
   1.237 +/**
   1.238 + *  Sets the Boot Timer Timeout value
   1.239 + *  
   1.240 + *  @param aTimeout Time-out value 
   1.241 + */
   1.242 +inline void TSmsSettings::SetBootTimerTimeout(const TTimeIntervalMicroSeconds32& aTimeout)
   1.243 +    {
   1.244 +    iBootTimerTimeout32 = aTimeout;
   1.245 +    }