inc/mmsheaders.inl
changeset 23 238255e8b033
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     1 /*
       
     2 * Copyright (c) 2002 - 2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *     Inline methods for CMmsHeaders
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 inline TInt CMmsHeaders::MessageClass() const
       
    23    {
       
    24    return iMsgClass;
       
    25    }
       
    26 
       
    27 inline void CMmsHeaders::SetMessageClass( TInt aClass )
       
    28    {
       
    29    iMsgClass = aClass;
       
    30    }
       
    31 
       
    32 inline void CMmsHeaders::SetMessagePriority( TInt aPriority )
       
    33    {
       
    34    iPriority = aPriority;
       
    35    }
       
    36 
       
    37 inline TInt CMmsHeaders::MessagePriority() const
       
    38    {
       
    39    return iPriority;
       
    40    }
       
    41 
       
    42 inline void CMmsHeaders::SetSenderVisibility( TInt aVisibility )
       
    43    {
       
    44    iSenderVisi = aVisibility;
       
    45    }
       
    46 
       
    47 inline TInt CMmsHeaders::SenderVisibility()
       
    48    {
       
    49    return iSenderVisi;
       
    50    }
       
    51 
       
    52 inline void CMmsHeaders::SetDeliveryReport( TInt aRequest )
       
    53    {
       
    54    iDelivReport = aRequest;
       
    55    }
       
    56 
       
    57 inline TInt CMmsHeaders::DeliveryReport()
       
    58    {
       
    59    return iDelivReport;
       
    60    }
       
    61 
       
    62 inline void CMmsHeaders::SetReadReply( TInt aRequest )
       
    63    {
       
    64    iReadReply = aRequest;
       
    65    }
       
    66 
       
    67 inline TInt CMmsHeaders::ReadReply()
       
    68    {
       
    69    return iReadReply;
       
    70    }
       
    71 
       
    72 inline void CMmsHeaders::SetMessageType( TInt aType )
       
    73    {
       
    74    iMsgType = aType;
       
    75    }
       
    76 
       
    77 inline TInt CMmsHeaders::MessageType()
       
    78    {
       
    79    return iMsgType;
       
    80    }
       
    81 
       
    82 inline void CMmsHeaders::SetMmsVersion( TInt16 aVersion )
       
    83    {
       
    84    // Only one byte version number supported
       
    85    iVersion = aVersion & 0x00FF;
       
    86    }
       
    87 
       
    88 inline TInt16 CMmsHeaders::MmsVersion()
       
    89    {
       
    90    return iVersion;
       
    91    }
       
    92 
       
    93 inline void CMmsHeaders::SetDate( TInt64 aTime )
       
    94    {
       
    95    iDate = aTime;
       
    96    }
       
    97 
       
    98 inline TInt64 CMmsHeaders::Date()
       
    99    {
       
   100    return iDate;
       
   101    }
       
   102 
       
   103 inline const CDesCArray& CMmsHeaders::ToRecipients () const 
       
   104     {
       
   105     return *iToArray;
       
   106     }
       
   107 
       
   108 inline const CDesCArray& CMmsHeaders::CcRecipients () const
       
   109     {
       
   110     return *iCcArray;
       
   111     }
       
   112     
       
   113 inline const CDesCArray& CMmsHeaders::BccRecipients() const
       
   114     {
       
   115     return *iBccArray;
       
   116     }
       
   117 
       
   118 inline void CMmsHeaders::SetMessageSize( TInt aSize )
       
   119     {
       
   120     iMessageSize = aSize; //lint !e732 nothing lost here
       
   121     }
       
   122 
       
   123 inline TInt CMmsHeaders::MessageSize() const
       
   124     {
       
   125     return iMessageSize; //lint !e713 nothing lost here
       
   126     }
       
   127 
       
   128 inline TInt32 CMmsHeaders::ReportAllowed() const
       
   129     {
       
   130     return iReportAllowed;
       
   131     }
       
   132 
       
   133 inline void CMmsHeaders::SetReportAllowed( TInt32 aValue )
       
   134     {
       
   135     iReportAllowed = aValue;
       
   136     }
       
   137 
       
   138 inline TInt32 CMmsHeaders::ResponseStatus() const
       
   139     {
       
   140     return iResponseStatus;
       
   141     }
       
   142 
       
   143 inline void CMmsHeaders::SetResponseStatus( TInt32 aValue )
       
   144     {
       
   145     iResponseStatus = aValue;
       
   146     }
       
   147     
       
   148 inline void CMmsHeaders::SetMessageRoot( const TMsvAttachmentId aId )
       
   149     {
       
   150     iStart = aId;
       
   151     }
       
   152 
       
   153 inline TMsvAttachmentId CMmsHeaders::MessageRoot( ) const
       
   154     {
       
   155     return iStart;
       
   156     }
       
   157 
       
   158 inline void CMmsHeaders::SetStatus( const TInt aStatus )
       
   159     {
       
   160     iStatus = aStatus;
       
   161     }
       
   162 
       
   163 inline TInt CMmsHeaders::Status() const
       
   164     {
       
   165     return iStatus;
       
   166     }
       
   167     
       
   168 inline void CMmsHeaders::SetReadStatus( const TInt aValue )
       
   169     {
       
   170     iReadStatus = aValue;
       
   171     }
       
   172 
       
   173 inline TInt CMmsHeaders::ReadStatus() const
       
   174     {
       
   175     return iReadStatus;
       
   176     }
       
   177 
       
   178 inline void CMmsHeaders::SetReplyCharging( const TInt aReplyCharging )
       
   179     {
       
   180     iReplyCharging = aReplyCharging;
       
   181     }
       
   182 
       
   183 inline TInt CMmsHeaders::ReplyCharging() const
       
   184     {
       
   185     return iReplyCharging;
       
   186     }
       
   187 
       
   188 inline void CMmsHeaders::SetReplyChargingSize( const TInt aReplyChargingSize )
       
   189     {
       
   190     iReplyChargingSize = aReplyChargingSize;
       
   191     }
       
   192 
       
   193 inline TInt CMmsHeaders::ReplyChargingSize() const
       
   194     {
       
   195     return iReplyChargingSize;
       
   196     }
       
   197 
       
   198 inline const RPointerArray<CMmsSendingChain>& CMmsHeaders::PreviouslySentList()
       
   199     {
       
   200     return iPreviouslySentArray;
       
   201     }
       
   202 
       
   203 inline TInt CMmsHeaders::DistributionIndicator() const
       
   204     {
       
   205     return iDistributionIndicator;
       
   206     }
       
   207 
       
   208 inline void CMmsHeaders::SetDistributionIndicator( const TInt aDistributionIndicator )
       
   209     {
       
   210     iDistributionIndicator = aDistributionIndicator;
       
   211     }
       
   212 
       
   213 inline TMsvId CMmsHeaders::RelatedEntry() const
       
   214     {
       
   215     return iRelatedEntry;
       
   216     }
       
   217 
       
   218 inline void CMmsHeaders::SetRelatedEntry( const TMsvId aRelatedEntry )
       
   219     {
       
   220     iRelatedEntry = aRelatedEntry;
       
   221     }
       
   222 
       
   223 inline TInt CMmsHeaders::MultipartType() const
       
   224     {
       
   225     return iMultipartType;
       
   226     }
       
   227 
       
   228 inline void CMmsHeaders::SetMultipartType( const TInt aMultipartType )
       
   229     {
       
   230     iMultipartType = aMultipartType;
       
   231     }
       
   232 
       
   233 inline const CMmsElementDescriptor* CMmsHeaders::ReadOnlyElementDescriptor() const
       
   234     {
       
   235     return iElementDescriptor;
       
   236     }
       
   237 
       
   238 inline const CMmsMMBoxMessageHeaders* CMmsHeaders::ReadOnlyMMBoxMessageHeaders() const
       
   239     {
       
   240     return iMmBoxMessageHeaders;
       
   241     }
       
   242 
       
   243 inline const CMmsMMBoxViewHeaders* CMmsHeaders::ReadOnlyMMBoxViewHeaders() const
       
   244     {
       
   245     return iMmBoxViewHeaders;
       
   246     }
       
   247 
       
   248 inline void CMmsHeaders::SetMessageComplete( TInt aExtensionStatus )
       
   249     {
       
   250     iExtensionStatus = aExtensionStatus;
       
   251     }
       
   252 
       
   253 inline TInt CMmsHeaders::MessageComplete()
       
   254     {
       
   255     return iExtensionStatus;
       
   256     }
       
   257 
       
   258 inline const RPointerArray<CMmsDeleteResultArray>& CMmsHeaders::DeleteResultArray()
       
   259     {
       
   260     return iDeleteResultArray;
       
   261     }
       
   262     
       
   263 inline void CMmsHeaders::SetReceivingTime( TTime aTime )
       
   264     {
       
   265     iReceivingTime = aTime;
       
   266     }
       
   267     
       
   268 inline TTime CMmsHeaders::ReceivingTime() const
       
   269     {
       
   270     return iReceivingTime;
       
   271     }
       
   272     
       
   273 inline TInt CMmsHeaders::ContentClass() const
       
   274     {
       
   275     return iContentClass;
       
   276     }
       
   277     
       
   278 inline void CMmsHeaders::SetContentClass( TInt aContentClass )
       
   279     {
       
   280     iContentClass = aContentClass;
       
   281     }
       
   282     
       
   283 inline TInt CMmsHeaders::DrmContent() const
       
   284     {
       
   285     return iDrmContent;
       
   286     }
       
   287     
       
   288 inline void CMmsHeaders::SetDrmContent( TInt aDrmContent )
       
   289     {
       
   290     iDrmContent = aDrmContent;
       
   291     }
       
   292     
       
   293 inline void CMmsHeaders::SetAdaptationAllowed( TInt aAdaptationAllowed )
       
   294     {
       
   295     iAdaptationAllowed = aAdaptationAllowed;
       
   296     }
       
   297     
       
   298 inline TInt CMmsHeaders::AdaptationAllowed() const
       
   299     {
       
   300     return iAdaptationAllowed;
       
   301     }
       
   302     
       
   303 inline void CMmsHeaders::SetRecommendedRetrievalMode( TInt aRetrievalMode )
       
   304     {
       
   305     iRecommendedRetrievalMode = aRetrievalMode;
       
   306     }
       
   307     
       
   308 inline TInt CMmsHeaders::RecommendedRetrievalMode() const
       
   309     {
       
   310     return iRecommendedRetrievalMode;
       
   311     }
       
   312     
       
   313 inline void CMmsHeaders::SetCancelStatus( TInt aCancelStatus )
       
   314     {
       
   315     iCancelStatus = aCancelStatus;
       
   316     }
       
   317     
       
   318 inline TInt CMmsHeaders::CancelStatus() const
       
   319     {
       
   320     return iCancelStatus;
       
   321     }
       
   322     
       
   323    
       
   324 // End of File