LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - mozIOSPreferences.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/mozIOSPreferences.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_mozIOSPreferences_h__
       6             : #define __gen_mozIOSPreferences_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : // Define Contractid and CID
      18             : #define MOZ_OSPREFERENCES_CID \
      19             :   { 0x65944815, 0xe9ae, 0x48bd, { 0xa2, 0xbf, 0xf1, 0x10, 0x87, 0x20, 0x95, 0x0c } }
      20             : #define MOZ_OSPREFERENCES_CONTRACTID "@mozilla.org/intl/ospreferences;1"
      21             : 
      22             : /* starting interface:    mozIOSPreferences */
      23             : #define MOZIOSPREFERENCES_IID_STR "65944815-e9ae-48bd-a2bf-f1108720950c"
      24             : 
      25             : #define MOZIOSPREFERENCES_IID \
      26             :   {0x65944815, 0xe9ae, 0x48bd, \
      27             :     { 0xa2, 0xbf, 0xf1, 0x10, 0x87, 0x20, 0x95, 0x0c }}
      28             : 
      29           2 : class NS_NO_VTABLE mozIOSPreferences : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZIOSPREFERENCES_IID)
      33             : 
      34             :   enum {
      35             :     dateTimeFormatStyleNone = 0,
      36             :     dateTimeFormatStyleShort = 1,
      37             :     dateTimeFormatStyleMedium = 2,
      38             :     dateTimeFormatStyleLong = 3,
      39             :     dateTimeFormatStyleFull = 4
      40             :   };
      41             : 
      42             :   /* void getSystemLocales ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out string aOutArray); */
      43             :   NS_IMETHOD GetSystemLocales(uint32_t *aCount, char * **aOutArray) = 0;
      44             : 
      45             :   /* readonly attribute ACString systemLocale; */
      46             :   NS_IMETHOD GetSystemLocale(nsACString & aSystemLocale) = 0;
      47             : 
      48             :   /* AString getDateTimePattern (in long timeFormatStyle, in long dateFormatStyle, [optional] in ACString locale); */
      49             :   NS_IMETHOD GetDateTimePattern(int32_t timeFormatStyle, int32_t dateFormatStyle, const nsACString & locale, nsAString & _retval) = 0;
      50             : 
      51             : };
      52             : 
      53             :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIOSPreferences, MOZIOSPREFERENCES_IID)
      54             : 
      55             : /* Use this macro when declaring classes that implement this interface. */
      56             : #define NS_DECL_MOZIOSPREFERENCES \
      57             :   NS_IMETHOD GetSystemLocales(uint32_t *aCount, char * **aOutArray) override; \
      58             :   NS_IMETHOD GetSystemLocale(nsACString & aSystemLocale) override; \
      59             :   NS_IMETHOD GetDateTimePattern(int32_t timeFormatStyle, int32_t dateFormatStyle, const nsACString & locale, nsAString & _retval) override; 
      60             : 
      61             : /* Use this macro when declaring the members of this interface when the
      62             :    class doesn't implement the interface. This is useful for forwarding. */
      63             : #define NS_DECL_NON_VIRTUAL_MOZIOSPREFERENCES \
      64             :   nsresult GetSystemLocales(uint32_t *aCount, char * **aOutArray); \
      65             :   nsresult GetSystemLocale(nsACString & aSystemLocale); \
      66             :   nsresult GetDateTimePattern(int32_t timeFormatStyle, int32_t dateFormatStyle, const nsACString & locale, nsAString & _retval); 
      67             : 
      68             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      69             : #define NS_FORWARD_MOZIOSPREFERENCES(_to) \
      70             :   NS_IMETHOD GetSystemLocales(uint32_t *aCount, char * **aOutArray) override { return _to GetSystemLocales(aCount, aOutArray); } \
      71             :   NS_IMETHOD GetSystemLocale(nsACString & aSystemLocale) override { return _to GetSystemLocale(aSystemLocale); } \
      72             :   NS_IMETHOD GetDateTimePattern(int32_t timeFormatStyle, int32_t dateFormatStyle, const nsACString & locale, nsAString & _retval) override { return _to GetDateTimePattern(timeFormatStyle, dateFormatStyle, locale, _retval); } 
      73             : 
      74             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      75             : #define NS_FORWARD_SAFE_MOZIOSPREFERENCES(_to) \
      76             :   NS_IMETHOD GetSystemLocales(uint32_t *aCount, char * **aOutArray) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemLocales(aCount, aOutArray); } \
      77             :   NS_IMETHOD GetSystemLocale(nsACString & aSystemLocale) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemLocale(aSystemLocale); } \
      78             :   NS_IMETHOD GetDateTimePattern(int32_t timeFormatStyle, int32_t dateFormatStyle, const nsACString & locale, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDateTimePattern(timeFormatStyle, dateFormatStyle, locale, _retval); } 
      79             : 
      80             : #if 0
      81             : /* Use the code below as a template for the implementation class for this interface. */
      82             : 
      83             : /* Header file */
      84             : class _MYCLASS_ : public mozIOSPreferences
      85             : {
      86             : public:
      87             :   NS_DECL_ISUPPORTS
      88             :   NS_DECL_MOZIOSPREFERENCES
      89             : 
      90             :   _MYCLASS_();
      91             : 
      92             : private:
      93             :   ~_MYCLASS_();
      94             : 
      95             : protected:
      96             :   /* additional members */
      97             : };
      98             : 
      99             : /* Implementation file */
     100             : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIOSPreferences)
     101             : 
     102             : _MYCLASS_::_MYCLASS_()
     103             : {
     104             :   /* member initializers and constructor code */
     105             : }
     106             : 
     107             : _MYCLASS_::~_MYCLASS_()
     108             : {
     109             :   /* destructor code */
     110             : }
     111             : 
     112             : /* void getSystemLocales ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out string aOutArray); */
     113             : NS_IMETHODIMP _MYCLASS_::GetSystemLocales(uint32_t *aCount, char * **aOutArray)
     114             : {
     115             :     return NS_ERROR_NOT_IMPLEMENTED;
     116             : }
     117             : 
     118             : /* readonly attribute ACString systemLocale; */
     119             : NS_IMETHODIMP _MYCLASS_::GetSystemLocale(nsACString & aSystemLocale)
     120             : {
     121             :     return NS_ERROR_NOT_IMPLEMENTED;
     122             : }
     123             : 
     124             : /* AString getDateTimePattern (in long timeFormatStyle, in long dateFormatStyle, [optional] in ACString locale); */
     125             : NS_IMETHODIMP _MYCLASS_::GetDateTimePattern(int32_t timeFormatStyle, int32_t dateFormatStyle, const nsACString & locale, nsAString & _retval)
     126             : {
     127             :     return NS_ERROR_NOT_IMPLEMENTED;
     128             : }
     129             : 
     130             : /* End of implementation class template. */
     131             : #endif
     132             : 
     133             : 
     134             : #endif /* __gen_mozIOSPreferences_h__ */

Generated by: LCOV version 1.13