LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIPrefLocalizedString.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/nsIPrefLocalizedString.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIPrefLocalizedString_h__
       6             : #define __gen_nsIPrefLocalizedString_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             : 
      18             : /* starting interface:    nsIPrefLocalizedString */
      19             : #define NS_IPREFLOCALIZEDSTRING_IID_STR "ae419e24-1dd1-11b2-b39a-d3e5e7073802"
      20             : 
      21             : #define NS_IPREFLOCALIZEDSTRING_IID \
      22             :   {0xae419e24, 0x1dd1, 0x11b2, \
      23             :     { 0xb3, 0x9a, 0xd3, 0xe5, 0xe7, 0x07, 0x38, 0x02 }}
      24             : 
      25          25 : class NS_NO_VTABLE nsIPrefLocalizedString : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPREFLOCALIZEDSTRING_IID)
      29             : 
      30             :   /* attribute wstring data; */
      31             :   NS_IMETHOD GetData(char16_t * *aData) = 0;
      32             :   NS_IMETHOD SetData(const char16_t * aData) = 0;
      33             : 
      34             :   /* wstring toString (); */
      35             :   NS_IMETHOD ToString(char16_t * *_retval) = 0;
      36             : 
      37             :   /* void setDataWithLength (in unsigned long length, [size_is (length)] in wstring data); */
      38             :   NS_IMETHOD SetDataWithLength(uint32_t length, const char16_t * data) = 0;
      39             : 
      40             : };
      41             : 
      42             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrefLocalizedString, NS_IPREFLOCALIZEDSTRING_IID)
      43             : 
      44             : /* Use this macro when declaring classes that implement this interface. */
      45             : #define NS_DECL_NSIPREFLOCALIZEDSTRING \
      46             :   NS_IMETHOD GetData(char16_t * *aData) override; \
      47             :   NS_IMETHOD SetData(const char16_t * aData) override; \
      48             :   NS_IMETHOD ToString(char16_t * *_retval) override; \
      49             :   NS_IMETHOD SetDataWithLength(uint32_t length, const char16_t * data) override; 
      50             : 
      51             : /* Use this macro when declaring the members of this interface when the
      52             :    class doesn't implement the interface. This is useful for forwarding. */
      53             : #define NS_DECL_NON_VIRTUAL_NSIPREFLOCALIZEDSTRING \
      54             :   nsresult GetData(char16_t * *aData); \
      55             :   nsresult SetData(const char16_t * aData); \
      56             :   nsresult ToString(char16_t * *_retval); \
      57             :   nsresult SetDataWithLength(uint32_t length, const char16_t * data); 
      58             : 
      59             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      60             : #define NS_FORWARD_NSIPREFLOCALIZEDSTRING(_to) \
      61             :   NS_IMETHOD GetData(char16_t * *aData) override { return _to GetData(aData); } \
      62             :   NS_IMETHOD SetData(const char16_t * aData) override { return _to SetData(aData); } \
      63             :   NS_IMETHOD ToString(char16_t * *_retval) override { return _to ToString(_retval); } \
      64             :   NS_IMETHOD SetDataWithLength(uint32_t length, const char16_t * data) override { return _to SetDataWithLength(length, data); } 
      65             : 
      66             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      67             : #define NS_FORWARD_SAFE_NSIPREFLOCALIZEDSTRING(_to) \
      68             :   NS_IMETHOD GetData(char16_t * *aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
      69             :   NS_IMETHOD SetData(const char16_t * aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
      70             :   NS_IMETHOD ToString(char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } \
      71             :   NS_IMETHOD SetDataWithLength(uint32_t length, const char16_t * data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDataWithLength(length, data); } 
      72             : 
      73             : #if 0
      74             : /* Use the code below as a template for the implementation class for this interface. */
      75             : 
      76             : /* Header file */
      77             : class nsPrefLocalizedString : public nsIPrefLocalizedString
      78             : {
      79             : public:
      80             :   NS_DECL_ISUPPORTS
      81             :   NS_DECL_NSIPREFLOCALIZEDSTRING
      82             : 
      83             :   nsPrefLocalizedString();
      84             : 
      85             : private:
      86             :   ~nsPrefLocalizedString();
      87             : 
      88             : protected:
      89             :   /* additional members */
      90             : };
      91             : 
      92             : /* Implementation file */
      93             : NS_IMPL_ISUPPORTS(nsPrefLocalizedString, nsIPrefLocalizedString)
      94             : 
      95             : nsPrefLocalizedString::nsPrefLocalizedString()
      96             : {
      97             :   /* member initializers and constructor code */
      98             : }
      99             : 
     100             : nsPrefLocalizedString::~nsPrefLocalizedString()
     101             : {
     102             :   /* destructor code */
     103             : }
     104             : 
     105             : /* attribute wstring data; */
     106             : NS_IMETHODIMP nsPrefLocalizedString::GetData(char16_t * *aData)
     107             : {
     108             :     return NS_ERROR_NOT_IMPLEMENTED;
     109             : }
     110             : NS_IMETHODIMP nsPrefLocalizedString::SetData(const char16_t * aData)
     111             : {
     112             :     return NS_ERROR_NOT_IMPLEMENTED;
     113             : }
     114             : 
     115             : /* wstring toString (); */
     116             : NS_IMETHODIMP nsPrefLocalizedString::ToString(char16_t * *_retval)
     117             : {
     118             :     return NS_ERROR_NOT_IMPLEMENTED;
     119             : }
     120             : 
     121             : /* void setDataWithLength (in unsigned long length, [size_is (length)] in wstring data); */
     122             : NS_IMETHODIMP nsPrefLocalizedString::SetDataWithLength(uint32_t length, const char16_t * data)
     123             : {
     124             :     return NS_ERROR_NOT_IMPLEMENTED;
     125             : }
     126             : 
     127             : /* End of implementation class template. */
     128             : #endif
     129             : 
     130             : 
     131             : #define NS_PREFLOCALIZEDSTRING_CID                     \
     132             :   { /* {064d9cee-1dd2-11b2-83e3-d25ab0193c26} */       \
     133             :     0x064d9cee,                                        \
     134             :     0x1dd2,                                            \
     135             :     0x11b2,                                            \
     136             :     { 0x83, 0xe3, 0xd2, 0x5a, 0xb0, 0x19, 0x3c, 0x26 } \
     137             :   }
     138             : #define NS_PREFLOCALIZEDSTRING_CONTRACTID "@mozilla.org/pref-localizedstring;1"
     139             : 
     140             : #endif /* __gen_nsIPrefLocalizedString_h__ */

Generated by: LCOV version 1.13