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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAuthInformation.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIAuthInformation_h__
       6             : #define __gen_nsIAuthInformation_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:    nsIAuthInformation */
      19             : #define NS_IAUTHINFORMATION_IID_STR "0d73639c-2a92-4518-9f92-28f71fea5f20"
      20             : 
      21             : #define NS_IAUTHINFORMATION_IID \
      22             :   {0x0d73639c, 0x2a92, 0x4518, \
      23             :     { 0x9f, 0x92, 0x28, 0xf7, 0x1f, 0xea, 0x5f, 0x20 }}
      24             : 
      25           0 : class NS_NO_VTABLE nsIAuthInformation : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTHINFORMATION_IID)
      29             : 
      30             :   enum {
      31             :     AUTH_HOST = 1U,
      32             :     AUTH_PROXY = 2U,
      33             :     NEED_DOMAIN = 4U,
      34             :     ONLY_PASSWORD = 8U,
      35             :     PREVIOUS_FAILED = 16U,
      36             :     CROSS_ORIGIN_SUB_RESOURCE = 32U
      37             :   };
      38             : 
      39             :   /* readonly attribute unsigned long flags; */
      40             :   NS_IMETHOD GetFlags(uint32_t *aFlags) = 0;
      41             : 
      42             :   /* readonly attribute AString realm; */
      43             :   NS_IMETHOD GetRealm(nsAString & aRealm) = 0;
      44             : 
      45             :   /* readonly attribute AUTF8String authenticationScheme; */
      46             :   NS_IMETHOD GetAuthenticationScheme(nsACString & aAuthenticationScheme) = 0;
      47             : 
      48             :   /* attribute AString username; */
      49             :   NS_IMETHOD GetUsername(nsAString & aUsername) = 0;
      50             :   NS_IMETHOD SetUsername(const nsAString & aUsername) = 0;
      51             : 
      52             :   /* attribute AString password; */
      53             :   NS_IMETHOD GetPassword(nsAString & aPassword) = 0;
      54             :   NS_IMETHOD SetPassword(const nsAString & aPassword) = 0;
      55             : 
      56             :   /* attribute AString domain; */
      57             :   NS_IMETHOD GetDomain(nsAString & aDomain) = 0;
      58             :   NS_IMETHOD SetDomain(const nsAString & aDomain) = 0;
      59             : 
      60             : };
      61             : 
      62             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAuthInformation, NS_IAUTHINFORMATION_IID)
      63             : 
      64             : /* Use this macro when declaring classes that implement this interface. */
      65             : #define NS_DECL_NSIAUTHINFORMATION \
      66             :   NS_IMETHOD GetFlags(uint32_t *aFlags) override; \
      67             :   NS_IMETHOD GetRealm(nsAString & aRealm) override; \
      68             :   NS_IMETHOD GetAuthenticationScheme(nsACString & aAuthenticationScheme) override; \
      69             :   NS_IMETHOD GetUsername(nsAString & aUsername) override; \
      70             :   NS_IMETHOD SetUsername(const nsAString & aUsername) override; \
      71             :   NS_IMETHOD GetPassword(nsAString & aPassword) override; \
      72             :   NS_IMETHOD SetPassword(const nsAString & aPassword) override; \
      73             :   NS_IMETHOD GetDomain(nsAString & aDomain) override; \
      74             :   NS_IMETHOD SetDomain(const nsAString & aDomain) override; 
      75             : 
      76             : /* Use this macro when declaring the members of this interface when the
      77             :    class doesn't implement the interface. This is useful for forwarding. */
      78             : #define NS_DECL_NON_VIRTUAL_NSIAUTHINFORMATION \
      79             :   nsresult GetFlags(uint32_t *aFlags); \
      80             :   nsresult GetRealm(nsAString & aRealm); \
      81             :   nsresult GetAuthenticationScheme(nsACString & aAuthenticationScheme); \
      82             :   nsresult GetUsername(nsAString & aUsername); \
      83             :   nsresult SetUsername(const nsAString & aUsername); \
      84             :   nsresult GetPassword(nsAString & aPassword); \
      85             :   nsresult SetPassword(const nsAString & aPassword); \
      86             :   nsresult GetDomain(nsAString & aDomain); \
      87             :   nsresult SetDomain(const nsAString & aDomain); 
      88             : 
      89             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      90             : #define NS_FORWARD_NSIAUTHINFORMATION(_to) \
      91             :   NS_IMETHOD GetFlags(uint32_t *aFlags) override { return _to GetFlags(aFlags); } \
      92             :   NS_IMETHOD GetRealm(nsAString & aRealm) override { return _to GetRealm(aRealm); } \
      93             :   NS_IMETHOD GetAuthenticationScheme(nsACString & aAuthenticationScheme) override { return _to GetAuthenticationScheme(aAuthenticationScheme); } \
      94             :   NS_IMETHOD GetUsername(nsAString & aUsername) override { return _to GetUsername(aUsername); } \
      95             :   NS_IMETHOD SetUsername(const nsAString & aUsername) override { return _to SetUsername(aUsername); } \
      96             :   NS_IMETHOD GetPassword(nsAString & aPassword) override { return _to GetPassword(aPassword); } \
      97             :   NS_IMETHOD SetPassword(const nsAString & aPassword) override { return _to SetPassword(aPassword); } \
      98             :   NS_IMETHOD GetDomain(nsAString & aDomain) override { return _to GetDomain(aDomain); } \
      99             :   NS_IMETHOD SetDomain(const nsAString & aDomain) override { return _to SetDomain(aDomain); } 
     100             : 
     101             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     102             : #define NS_FORWARD_SAFE_NSIAUTHINFORMATION(_to) \
     103             :   NS_IMETHOD GetFlags(uint32_t *aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
     104             :   NS_IMETHOD GetRealm(nsAString & aRealm) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRealm(aRealm); } \
     105             :   NS_IMETHOD GetAuthenticationScheme(nsACString & aAuthenticationScheme) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthenticationScheme(aAuthenticationScheme); } \
     106             :   NS_IMETHOD GetUsername(nsAString & aUsername) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsername(aUsername); } \
     107             :   NS_IMETHOD SetUsername(const nsAString & aUsername) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUsername(aUsername); } \
     108             :   NS_IMETHOD GetPassword(nsAString & aPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPassword(aPassword); } \
     109             :   NS_IMETHOD SetPassword(const nsAString & aPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPassword(aPassword); } \
     110             :   NS_IMETHOD GetDomain(nsAString & aDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \
     111             :   NS_IMETHOD SetDomain(const nsAString & aDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDomain(aDomain); } 
     112             : 
     113             : #if 0
     114             : /* Use the code below as a template for the implementation class for this interface. */
     115             : 
     116             : /* Header file */
     117             : class nsAuthInformation : public nsIAuthInformation
     118             : {
     119             : public:
     120             :   NS_DECL_ISUPPORTS
     121             :   NS_DECL_NSIAUTHINFORMATION
     122             : 
     123             :   nsAuthInformation();
     124             : 
     125             : private:
     126             :   ~nsAuthInformation();
     127             : 
     128             : protected:
     129             :   /* additional members */
     130             : };
     131             : 
     132             : /* Implementation file */
     133             : NS_IMPL_ISUPPORTS(nsAuthInformation, nsIAuthInformation)
     134             : 
     135             : nsAuthInformation::nsAuthInformation()
     136             : {
     137             :   /* member initializers and constructor code */
     138             : }
     139             : 
     140             : nsAuthInformation::~nsAuthInformation()
     141             : {
     142             :   /* destructor code */
     143             : }
     144             : 
     145             : /* readonly attribute unsigned long flags; */
     146             : NS_IMETHODIMP nsAuthInformation::GetFlags(uint32_t *aFlags)
     147             : {
     148             :     return NS_ERROR_NOT_IMPLEMENTED;
     149             : }
     150             : 
     151             : /* readonly attribute AString realm; */
     152             : NS_IMETHODIMP nsAuthInformation::GetRealm(nsAString & aRealm)
     153             : {
     154             :     return NS_ERROR_NOT_IMPLEMENTED;
     155             : }
     156             : 
     157             : /* readonly attribute AUTF8String authenticationScheme; */
     158             : NS_IMETHODIMP nsAuthInformation::GetAuthenticationScheme(nsACString & aAuthenticationScheme)
     159             : {
     160             :     return NS_ERROR_NOT_IMPLEMENTED;
     161             : }
     162             : 
     163             : /* attribute AString username; */
     164             : NS_IMETHODIMP nsAuthInformation::GetUsername(nsAString & aUsername)
     165             : {
     166             :     return NS_ERROR_NOT_IMPLEMENTED;
     167             : }
     168             : NS_IMETHODIMP nsAuthInformation::SetUsername(const nsAString & aUsername)
     169             : {
     170             :     return NS_ERROR_NOT_IMPLEMENTED;
     171             : }
     172             : 
     173             : /* attribute AString password; */
     174             : NS_IMETHODIMP nsAuthInformation::GetPassword(nsAString & aPassword)
     175             : {
     176             :     return NS_ERROR_NOT_IMPLEMENTED;
     177             : }
     178             : NS_IMETHODIMP nsAuthInformation::SetPassword(const nsAString & aPassword)
     179             : {
     180             :     return NS_ERROR_NOT_IMPLEMENTED;
     181             : }
     182             : 
     183             : /* attribute AString domain; */
     184             : NS_IMETHODIMP nsAuthInformation::GetDomain(nsAString & aDomain)
     185             : {
     186             :     return NS_ERROR_NOT_IMPLEMENTED;
     187             : }
     188             : NS_IMETHODIMP nsAuthInformation::SetDomain(const nsAString & aDomain)
     189             : {
     190             :     return NS_ERROR_NOT_IMPLEMENTED;
     191             : }
     192             : 
     193             : /* End of implementation class template. */
     194             : #endif
     195             : 
     196             : 
     197             : #endif /* __gen_nsIAuthInformation_h__ */

Generated by: LCOV version 1.13