intl/locale/src/mac/nsDateTimeFormatMac.h

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

michael@0 1
michael@0 2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
michael@0 3 *
michael@0 4 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 5 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 7 #ifndef nsDateTimeFormatMac_h__
michael@0 8 #define nsDateTimeFormatMac_h__
michael@0 9
michael@0 10
michael@0 11 #include "nsCOMPtr.h"
michael@0 12 #include "nsIDateTimeFormat.h"
michael@0 13
michael@0 14
michael@0 15 class nsDateTimeFormatMac : public nsIDateTimeFormat {
michael@0 16
michael@0 17 public:
michael@0 18 NS_DECL_THREADSAFE_ISUPPORTS
michael@0 19
michael@0 20 // performs a locale sensitive date formatting operation on the time_t parameter
michael@0 21 NS_IMETHOD FormatTime(nsILocale* locale,
michael@0 22 const nsDateFormatSelector dateFormatSelector,
michael@0 23 const nsTimeFormatSelector timeFormatSelector,
michael@0 24 const time_t timetTime,
michael@0 25 nsAString& stringOut);
michael@0 26
michael@0 27 // performs a locale sensitive date formatting operation on the struct tm parameter
michael@0 28 NS_IMETHOD FormatTMTime(nsILocale* locale,
michael@0 29 const nsDateFormatSelector dateFormatSelector,
michael@0 30 const nsTimeFormatSelector timeFormatSelector,
michael@0 31 const struct tm* tmTime,
michael@0 32 nsAString& stringOut);
michael@0 33 // performs a locale sensitive date formatting operation on the PRTime parameter
michael@0 34 NS_IMETHOD FormatPRTime(nsILocale* locale,
michael@0 35 const nsDateFormatSelector dateFormatSelector,
michael@0 36 const nsTimeFormatSelector timeFormatSelector,
michael@0 37 const PRTime prTime,
michael@0 38 nsAString& stringOut);
michael@0 39
michael@0 40 // performs a locale sensitive date formatting operation on the PRExplodedTime parameter
michael@0 41 NS_IMETHOD FormatPRExplodedTime(nsILocale* locale,
michael@0 42 const nsDateFormatSelector dateFormatSelector,
michael@0 43 const nsTimeFormatSelector timeFormatSelector,
michael@0 44 const PRExplodedTime* explodedTime,
michael@0 45 nsAString& stringOut);
michael@0 46
michael@0 47 nsDateTimeFormatMac() {}
michael@0 48
michael@0 49 virtual ~nsDateTimeFormatMac() {}
michael@0 50
michael@0 51 private:
michael@0 52 // init this interface to a specified locale
michael@0 53 NS_IMETHOD Initialize(nsILocale* locale);
michael@0 54
michael@0 55 nsString mLocale;
michael@0 56 nsString mAppLocale;
michael@0 57 bool mUseDefaultLocale;
michael@0 58 };
michael@0 59
michael@0 60 #endif /* nsDateTimeFormatMac_h__ */

mercurial