00001 /* 00002 * ============================================================================== 00003 * Name : SenDateUtils.h 00004 * Part of : Web Services Framework / Utils 00005 * Interface : 00006 * Description : This utility class provides static methods for conversions 00007 * between Symbian class types and XSD time-date type 00008 * Version : 00009 * 00010 * Copyright © 2002-2005 Nokia. All rights reserved. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia. All rights are reserved. Copying, including 00014 * reproducing, storing, adapting or translating, any 00015 * or all of this material requires the prior written consent of 00016 * Nokia. This material also contains confidential 00017 * information which may not be disclosed to others without the 00018 * prior written consent of Nokia. 00019 * ============================================================================== 00020 */ 00021 00022 #ifndef SEN_DATE_UTILS_H 00023 #define SEN_DATE_UTILS_H 00024 00025 // INCLUDES 00026 #include <e32base.h> 00027 00028 // CLASS DECLARATION 00029 00036 class SenDateUtils 00037 { 00038 public: 00039 enum { KXmlDateTimeMaxLength = 31 }; 00040 00041 // New functions 00056 IMPORT_C static TTime FromXmlDateTimeL(const TDesC8& aXmlDateTime); 00057 00067 IMPORT_C static void ToXmlDateTimeUtf8L(TDes8& aDest, 00068 const TTime& aSrc); 00069 00079 IMPORT_C static void ToXmlDateTimeUtf82L(TDes8& aDest, const TTime& aSrc) ; 00080 00081 private: 00085 SenDateUtils() { } 00086 00090 SenDateUtils( const SenDateUtils& ); 00091 00095 SenDateUtils& operator=( const SenDateUtils& ); 00096 }; 00097 00098 #endif // SEN_DATE_UTILS_H 00099 // End of File