X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=zypp%2FDate.h;h=2158d5216ad3e0649c90f716d28faaf71eb5980a;hb=42b5d038414cf4a4a050e816b471f890b24e8032;hp=e002c2c09ec584e03459ad1cf5319906f4d2591c;hpb=b61a0ff7e76a542a874714e4ee7753db48f9f8aa;p=platform%2Fupstream%2Flibzypp.git diff --git a/zypp/Date.h b/zypp/Date.h index e002c2c..2158d52 100644 --- a/zypp/Date.h +++ b/zypp/Date.h @@ -36,6 +36,7 @@ namespace zypp public: typedef time_t ValueType; + typedef time_t Duration; static const ValueType second = 1; static const ValueType minute = 60; @@ -129,7 +130,7 @@ namespace zypp /** \name Printing in various predefined formats */ //@{ /** Date formats for printing (use like 'enum class \ref DateFormat') */ - struct _DateFormatDef { enum Enum { + struct EDateFormatDef { enum Enum { none, ///< "" calendar, ///< 2014-02-07 month, ///< 2014-02 @@ -138,24 +139,24 @@ namespace zypp weekday, ///< 2014-W06-5 (1 is Monday) ordinal, ///< 2014-038 };}; - typedef base::EnumClass<_DateFormatDef> DateFormat; ///< 'enum class DateFormat' + typedef base::EnumClass DateFormat; ///< 'enum class DateFormat' /** Time formats for printing (use like 'enum class \ref TimeFormat') */ - struct _TimeFormatDef { enum Enum { + struct ETimeFormatDef { enum Enum { none, ///< "" seconds, ///< 07:06:41 minutes, ///< 07:06 hours, ///< 07 };}; - typedef base::EnumClass<_TimeFormatDef> TimeFormat; ///< 'enum class TimeFormat' + typedef base::EnumClass TimeFormat; ///< 'enum class TimeFormat' /** Timezone indicator for printing (use like 'enum class \ref TimeZoneFormat') */ - struct _TimeZoneFormatDef { enum Enum { + struct ETimeZoneFormatDef { enum Enum { none, ///< "" name, ///< UTC, CET, ... offset, ///< +00[:00] };}; - typedef base::EnumClass<_TimeZoneFormatDef> TimeZoneFormat; ///< 'enum class TimeZoneFormat' + typedef base::EnumClass TimeZoneFormat; ///< 'enum class TimeZoneFormat' /** Default format is '2014-02-07 07:06:41 CET' * The default is \ref DateFormat::calendar, \ref TimeFormat::seconds, \ref TimeZoneFormat::name and