LCOV - app.info - objdir/dist/include/nsIAuthInformation.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIAuthInformation.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 1 | 1 | 100.0 %
| Date: | 2012-06-02 | Functions: | 1 | 1 | 100.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/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              30 : class NS_NO_VTABLE NS_SCRIPTABLE 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                 :   };
          37                 :
          38                 :   /* readonly attribute unsigned long flags; */
          39                 :   NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) = 0;
          40                 :
          41                 :   /* readonly attribute AString realm; */
          42                 :   NS_SCRIPTABLE NS_IMETHOD GetRealm(nsAString & aRealm) = 0;
          43                 :
          44                 :   /* readonly attribute AUTF8String authenticationScheme; */
          45                 :   NS_SCRIPTABLE NS_IMETHOD GetAuthenticationScheme(nsACString & aAuthenticationScheme) = 0;
          46                 :
          47                 :   /* attribute AString username; */
          48                 :   NS_SCRIPTABLE NS_IMETHOD GetUsername(nsAString & aUsername) = 0;
          49                 :   NS_SCRIPTABLE NS_IMETHOD SetUsername(const nsAString & aUsername) = 0;
          50                 :
          51                 :   /* attribute AString password; */
          52                 :   NS_SCRIPTABLE NS_IMETHOD GetPassword(nsAString & aPassword) = 0;
          53                 :   NS_SCRIPTABLE NS_IMETHOD SetPassword(const nsAString & aPassword) = 0;
          54                 :
          55                 :   /* attribute AString domain; */
          56                 :   NS_SCRIPTABLE NS_IMETHOD GetDomain(nsAString & aDomain) = 0;
          57                 :   NS_SCRIPTABLE NS_IMETHOD SetDomain(const nsAString & aDomain) = 0;
          58                 :
          59                 : };
          60                 :
          61                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAuthInformation, NS_IAUTHINFORMATION_IID)
          62                 :
          63                 : /* Use this macro when declaring classes that implement this interface. */
          64                 : #define NS_DECL_NSIAUTHINFORMATION \
          65                 :   NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags); \
          66                 :   NS_SCRIPTABLE NS_IMETHOD GetRealm(nsAString & aRealm); \
          67                 :   NS_SCRIPTABLE NS_IMETHOD GetAuthenticationScheme(nsACString & aAuthenticationScheme); \
          68                 :   NS_SCRIPTABLE NS_IMETHOD GetUsername(nsAString & aUsername); \
          69                 :   NS_SCRIPTABLE NS_IMETHOD SetUsername(const nsAString & aUsername); \
          70                 :   NS_SCRIPTABLE NS_IMETHOD GetPassword(nsAString & aPassword); \
          71                 :   NS_SCRIPTABLE NS_IMETHOD SetPassword(const nsAString & aPassword); \
          72                 :   NS_SCRIPTABLE NS_IMETHOD GetDomain(nsAString & aDomain); \
          73                 :   NS_SCRIPTABLE NS_IMETHOD SetDomain(const nsAString & aDomain);
          74                 :
          75                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          76                 : #define NS_FORWARD_NSIAUTHINFORMATION(_to) \
          77                 :   NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return _to GetFlags(aFlags); } \
          78                 :   NS_SCRIPTABLE NS_IMETHOD GetRealm(nsAString & aRealm) { return _to GetRealm(aRealm); } \
          79                 :   NS_SCRIPTABLE NS_IMETHOD GetAuthenticationScheme(nsACString & aAuthenticationScheme) { return _to GetAuthenticationScheme(aAuthenticationScheme); } \
          80                 :   NS_SCRIPTABLE NS_IMETHOD GetUsername(nsAString & aUsername) { return _to GetUsername(aUsername); } \
          81                 :   NS_SCRIPTABLE NS_IMETHOD SetUsername(const nsAString & aUsername) { return _to SetUsername(aUsername); } \
          82                 :   NS_SCRIPTABLE NS_IMETHOD GetPassword(nsAString & aPassword) { return _to GetPassword(aPassword); } \
          83                 :   NS_SCRIPTABLE NS_IMETHOD SetPassword(const nsAString & aPassword) { return _to SetPassword(aPassword); } \
          84                 :   NS_SCRIPTABLE NS_IMETHOD GetDomain(nsAString & aDomain) { return _to GetDomain(aDomain); } \
          85                 :   NS_SCRIPTABLE NS_IMETHOD SetDomain(const nsAString & aDomain) { return _to SetDomain(aDomain); }
          86                 :
          87                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          88                 : #define NS_FORWARD_SAFE_NSIAUTHINFORMATION(_to) \
          89                 :   NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
          90                 :   NS_SCRIPTABLE NS_IMETHOD GetRealm(nsAString & aRealm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRealm(aRealm); } \
          91                 :   NS_SCRIPTABLE NS_IMETHOD GetAuthenticationScheme(nsACString & aAuthenticationScheme) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthenticationScheme(aAuthenticationScheme); } \
          92                 :   NS_SCRIPTABLE NS_IMETHOD GetUsername(nsAString & aUsername) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsername(aUsername); } \
          93                 :   NS_SCRIPTABLE NS_IMETHOD SetUsername(const nsAString & aUsername) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUsername(aUsername); } \
          94                 :   NS_SCRIPTABLE NS_IMETHOD GetPassword(nsAString & aPassword) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPassword(aPassword); } \
          95                 :   NS_SCRIPTABLE NS_IMETHOD SetPassword(const nsAString & aPassword) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPassword(aPassword); } \
          96                 :   NS_SCRIPTABLE NS_IMETHOD GetDomain(nsAString & aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \
          97                 :   NS_SCRIPTABLE NS_IMETHOD SetDomain(const nsAString & aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDomain(aDomain); }
          98                 :
          99                 : #if 0
         100                 : /* Use the code below as a template for the implementation class for this interface. */
         101                 :
         102                 : /* Header file */
         103                 : class nsAuthInformation : public nsIAuthInformation
         104                 : {
         105                 : public:
         106                 :   NS_DECL_ISUPPORTS
         107                 :   NS_DECL_NSIAUTHINFORMATION
         108                 :
         109                 :   nsAuthInformation();
         110                 :
         111                 : private:
         112                 :   ~nsAuthInformation();
         113                 :
         114                 : protected:
         115                 :   /* additional members */
         116                 : };
         117                 :
         118                 : /* Implementation file */
         119                 : NS_IMPL_ISUPPORTS1(nsAuthInformation, nsIAuthInformation)
         120                 :
         121                 : nsAuthInformation::nsAuthInformation()
         122                 : {
         123                 :   /* member initializers and constructor code */
         124                 : }
         125                 :
         126                 : nsAuthInformation::~nsAuthInformation()
         127                 : {
         128                 :   /* destructor code */
         129                 : }
         130                 :
         131                 : /* readonly attribute unsigned long flags; */
         132                 : NS_IMETHODIMP nsAuthInformation::GetFlags(PRUint32 *aFlags)
         133                 : {
         134                 :     return NS_ERROR_NOT_IMPLEMENTED;
         135                 : }
         136                 :
         137                 : /* readonly attribute AString realm; */
         138                 : NS_IMETHODIMP nsAuthInformation::GetRealm(nsAString & aRealm)
         139                 : {
         140                 :     return NS_ERROR_NOT_IMPLEMENTED;
         141                 : }
         142                 :
         143                 : /* readonly attribute AUTF8String authenticationScheme; */
         144                 : NS_IMETHODIMP nsAuthInformation::GetAuthenticationScheme(nsACString & aAuthenticationScheme)
         145                 : {
         146                 :     return NS_ERROR_NOT_IMPLEMENTED;
         147                 : }
         148                 :
         149                 : /* attribute AString username; */
         150                 : NS_IMETHODIMP nsAuthInformation::GetUsername(nsAString & aUsername)
         151                 : {
         152                 :     return NS_ERROR_NOT_IMPLEMENTED;
         153                 : }
         154                 : NS_IMETHODIMP nsAuthInformation::SetUsername(const nsAString & aUsername)
         155                 : {
         156                 :     return NS_ERROR_NOT_IMPLEMENTED;
         157                 : }
         158                 :
         159                 : /* attribute AString password; */
         160                 : NS_IMETHODIMP nsAuthInformation::GetPassword(nsAString & aPassword)
         161                 : {
         162                 :     return NS_ERROR_NOT_IMPLEMENTED;
         163                 : }
         164                 : NS_IMETHODIMP nsAuthInformation::SetPassword(const nsAString & aPassword)
         165                 : {
         166                 :     return NS_ERROR_NOT_IMPLEMENTED;
         167                 : }
         168                 :
         169                 : /* attribute AString domain; */
         170                 : NS_IMETHODIMP nsAuthInformation::GetDomain(nsAString & aDomain)
         171                 : {
         172                 :     return NS_ERROR_NOT_IMPLEMENTED;
         173                 : }
         174                 : NS_IMETHODIMP nsAuthInformation::SetDomain(const nsAString & aDomain)
         175                 : {
         176                 :     return NS_ERROR_NOT_IMPLEMENTED;
         177                 : }
         178                 :
         179                 : /* End of implementation class template. */
         180                 : #endif
         181                 :
         182                 :
         183                 : #endif /* __gen_nsIAuthInformation_h__ */

Generated by: LCOV version 1.7