videofeeds/mrssplugin/inc/ciptvxmldatetime.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2004-2009 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 the License "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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CIPTV3XMLDATETIME_H
       
    20 #define CIPTV3XMLDATETIME_H
       
    21 
       
    22 #include <e32std.h>
       
    23 
       
    24 NONSHARABLE_CLASS( CIptvXmlDateTime ): public CBase
       
    25     {
       
    26 
       
    27 public:
       
    28 
       
    29     /**
       
    30      * Parse GMT time.
       
    31      *
       
    32      * @param aBuffer       Time string to be parsed.
       
    33      * @param aTime         Parsed time.
       
    34      */
       
    35     static void ParseGmtL( const HBufC* aBuffer, TTime& aTime);
       
    36 
       
    37     /**
       
    38      * Parses hour shift value from time zone.
       
    39      *
       
    40      * @param aZone         Time zone string to be parsed.
       
    41      * @return              Hour shift.
       
    42      */
       
    43     static TInt GetHourShiftFromZone( const TPtr16& aZone );
       
    44 
       
    45     /**
       
    46      * Converts english month in date string to locale specific month string.
       
    47      *
       
    48      * @param aDateString   Original month string.
       
    49      * @return              Converted month string.
       
    50      */
       
    51     static HBufC* ConvertMonthStringToLocaleL( const TDesC& aDateString );
       
    52 
       
    53     };
       
    54 
       
    55 #endif // CIPTV3XMLDATETIME_H