messagingfw/wappushfw/SISLPushMsgUtils/inc/CSLPushMsgEntry.inl
changeset 22 bde600d88860
parent 0 8e480a14352b
equal deleted inserted replaced
21:08008ce8a6df 22:bde600d88860
       
     1 // Copyright (c) 2003-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 // WAP Push Message Inline functions  File for the Utility class
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @publishedPartner
       
    21  @released
       
    22 */
       
    23 
       
    24 _LIT(KPushSLContentTypeDesC, "text/vnd.wap.sl");
       
    25 
       
    26 
       
    27 /** 
       
    28 Gets the URL of the service to be loaded.
       
    29 
       
    30 If there is no URL in the message, then a NULL descriptor will be returned.
       
    31 
       
    32 @return 
       
    33 URL of the service to be loaded 
       
    34 */
       
    35 inline const TDesC& CSLPushMsgEntry::Url() const
       
    36 	{
       
    37 	if (iUrl)
       
    38 		return *iUrl;
       
    39 	else
       
    40 		return KNullDesC;
       
    41 	}
       
    42 
       
    43 
       
    44 /**
       
    45 Sets the time that the message was sent. 
       
    46 
       
    47 @param aTime
       
    48 The time that the message was sent.
       
    49 */
       
    50 inline void	CSLPushMsgEntry::SetTimeSent(const TTime& aTime)
       
    51 	{
       
    52 	iTimeSent=aTime;
       
    53 	}
       
    54 
       
    55 
       
    56 /**
       
    57 Gets the time that the message was sent. 
       
    58 
       
    59 @return 
       
    60 Time of sending
       
    61 */
       
    62 inline const TTime& CSLPushMsgEntry::TimeSent() const 
       
    63 	{
       
    64 	return iTimeSent;
       
    65 	}
       
    66 
       
    67 
       
    68 /**
       
    69 Gets the Content Type of the message. 
       
    70 
       
    71 This content type is defined for both SL and SLC Push Messages. This is because the SL content 
       
    72 handler deals with both types, decoding the WBXML versions prior to parsing, so there is 
       
    73 effectively no difference.
       
    74 
       
    75 @return 
       
    76 Content type of the Push message.
       
    77 */
       
    78 inline const TDesC& CSLPushMsgEntry::ContentType() const
       
    79 	{
       
    80 	// Generalise -group si & sic together!
       
    81 	return KPushSLContentTypeDesC;
       
    82 	}
       
    83