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

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

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/netwerk/base/public/nsIAuthModule.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIAuthModule_h__
           6                 : #define __gen_nsIAuthModule_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:    nsIAuthModule */
          19                 : #define NS_IAUTHMODULE_IID_STR "6e35dbc0-49ef-4e2c-b1ea-b72ec64450a2"
          20                 :
          21                 : #define NS_IAUTHMODULE_IID \
          22                 :   {0x6e35dbc0, 0x49ef, 0x4e2c, \
          23                 :     { 0xb1, 0xea, 0xb7, 0x2e, 0xc6, 0x44, 0x50, 0xa2 }}
          24                 :
          25               1 : class NS_NO_VTABLE nsIAuthModule : public nsISupports {
          26                 :  public:
          27                 :
          28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTHMODULE_IID)
          29                 :
          30                 :   enum {
          31                 :     REQ_DEFAULT = 0U,
          32                 :     REQ_MUTUAL_AUTH = 1U,
          33                 :     REQ_DELEGATE = 2U
          34                 :   };
          35                 :
          36                 :   /* void init (in string aServiceName, in unsigned long aServiceFlags, in wstring aDomain, in wstring aUsername, in wstring aPassword); */
          37                 :   NS_IMETHOD Init(const char * aServiceName, PRUint32 aServiceFlags, const PRUnichar * aDomain, const PRUnichar * aUsername, const PRUnichar * aPassword) = 0;
          38                 :
          39                 :   /* void getNextToken ([const] in voidPtr aInToken, in unsigned long aInTokenLength, out voidPtr aOutToken, out unsigned long aOutTokenLength); */
          40                 :   NS_IMETHOD GetNextToken(const void *aInToken, PRUint32 aInTokenLength, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM) = 0;
          41                 :
          42                 :   /* void wrap ([const] in voidPtr aInToken, in unsigned long aInTokenLength, in boolean confidential, out voidPtr aOutToken, out unsigned long aOutTokenLength); */
          43                 :   NS_IMETHOD Wrap(const void *aInToken, PRUint32 aInTokenLength, bool confidential, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM) = 0;
          44                 :
          45                 :   /* void unwrap ([const] in voidPtr aInToken, in unsigned long aInTokenLength, out voidPtr aOutToken, out unsigned long aOutTokenLength); */
          46                 :   NS_IMETHOD Unwrap(const void *aInToken, PRUint32 aInTokenLength, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM) = 0;
          47                 :
          48                 : };
          49                 :
          50                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAuthModule, NS_IAUTHMODULE_IID)
          51                 :
          52                 : /* Use this macro when declaring classes that implement this interface. */
          53                 : #define NS_DECL_NSIAUTHMODULE \
          54                 :   NS_IMETHOD Init(const char * aServiceName, PRUint32 aServiceFlags, const PRUnichar * aDomain, const PRUnichar * aUsername, const PRUnichar * aPassword); \
          55                 :   NS_IMETHOD GetNextToken(const void *aInToken, PRUint32 aInTokenLength, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM); \
          56                 :   NS_IMETHOD Wrap(const void *aInToken, PRUint32 aInTokenLength, bool confidential, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM); \
          57                 :   NS_IMETHOD Unwrap(const void *aInToken, PRUint32 aInTokenLength, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM);
          58                 :
          59                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          60                 : #define NS_FORWARD_NSIAUTHMODULE(_to) \
          61                 :   NS_IMETHOD Init(const char * aServiceName, PRUint32 aServiceFlags, const PRUnichar * aDomain, const PRUnichar * aUsername, const PRUnichar * aPassword) { return _to Init(aServiceName, aServiceFlags, aDomain, aUsername, aPassword); } \
          62                 :   NS_IMETHOD GetNextToken(const void *aInToken, PRUint32 aInTokenLength, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM) { return _to GetNextToken(aInToken, aInTokenLength, aOutToken, aOutTokenLength); } \
          63                 :   NS_IMETHOD Wrap(const void *aInToken, PRUint32 aInTokenLength, bool confidential, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM) { return _to Wrap(aInToken, aInTokenLength, confidential, aOutToken, aOutTokenLength); } \
          64                 :   NS_IMETHOD Unwrap(const void *aInToken, PRUint32 aInTokenLength, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM) { return _to Unwrap(aInToken, aInTokenLength, aOutToken, aOutTokenLength); }
          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_NSIAUTHMODULE(_to) \
          68                 :   NS_IMETHOD Init(const char * aServiceName, PRUint32 aServiceFlags, const PRUnichar * aDomain, const PRUnichar * aUsername, const PRUnichar * aPassword) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aServiceName, aServiceFlags, aDomain, aUsername, aPassword); } \
          69                 :   NS_IMETHOD GetNextToken(const void *aInToken, PRUint32 aInTokenLength, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextToken(aInToken, aInTokenLength, aOutToken, aOutTokenLength); } \
          70                 :   NS_IMETHOD Wrap(const void *aInToken, PRUint32 aInTokenLength, bool confidential, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Wrap(aInToken, aInTokenLength, confidential, aOutToken, aOutTokenLength); } \
          71                 :   NS_IMETHOD Unwrap(const void *aInToken, PRUint32 aInTokenLength, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Unwrap(aInToken, aInTokenLength, aOutToken, aOutTokenLength); }
          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 nsAuthModule : public nsIAuthModule
          78                 : {
          79                 : public:
          80                 :   NS_DECL_ISUPPORTS
          81                 :   NS_DECL_NSIAUTHMODULE
          82                 :
          83                 :   nsAuthModule();
          84                 :
          85                 : private:
          86                 :   ~nsAuthModule();
          87                 :
          88                 : protected:
          89                 :   /* additional members */
          90                 : };
          91                 :
          92                 : /* Implementation file */
          93                 : NS_IMPL_ISUPPORTS1(nsAuthModule, nsIAuthModule)
          94                 :
          95                 : nsAuthModule::nsAuthModule()
          96                 : {
          97                 :   /* member initializers and constructor code */
          98                 : }
          99                 :
         100                 : nsAuthModule::~nsAuthModule()
         101                 : {
         102                 :   /* destructor code */
         103                 : }
         104                 :
         105                 : /* void init (in string aServiceName, in unsigned long aServiceFlags, in wstring aDomain, in wstring aUsername, in wstring aPassword); */
         106                 : NS_IMETHODIMP nsAuthModule::Init(const char * aServiceName, PRUint32 aServiceFlags, const PRUnichar * aDomain, const PRUnichar * aUsername, const PRUnichar * aPassword)
         107                 : {
         108                 :     return NS_ERROR_NOT_IMPLEMENTED;
         109                 : }
         110                 :
         111                 : /* void getNextToken ([const] in voidPtr aInToken, in unsigned long aInTokenLength, out voidPtr aOutToken, out unsigned long aOutTokenLength); */
         112                 : NS_IMETHODIMP nsAuthModule::GetNextToken(const void *aInToken, PRUint32 aInTokenLength, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM)
         113                 : {
         114                 :     return NS_ERROR_NOT_IMPLEMENTED;
         115                 : }
         116                 :
         117                 : /* void wrap ([const] in voidPtr aInToken, in unsigned long aInTokenLength, in boolean confidential, out voidPtr aOutToken, out unsigned long aOutTokenLength); */
         118                 : NS_IMETHODIMP nsAuthModule::Wrap(const void *aInToken, PRUint32 aInTokenLength, bool confidential, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM)
         119                 : {
         120                 :     return NS_ERROR_NOT_IMPLEMENTED;
         121                 : }
         122                 :
         123                 : /* void unwrap ([const] in voidPtr aInToken, in unsigned long aInTokenLength, out voidPtr aOutToken, out unsigned long aOutTokenLength); */
         124                 : NS_IMETHODIMP nsAuthModule::Unwrap(const void *aInToken, PRUint32 aInTokenLength, void **aOutToken NS_OUTPARAM, PRUint32 *aOutTokenLength NS_OUTPARAM)
         125                 : {
         126                 :     return NS_ERROR_NOT_IMPLEMENTED;
         127                 : }
         128                 :
         129                 : /* End of implementation class template. */
         130                 : #endif
         131                 :
         132                 : /**
         133                 :  * nsIAuthModule implementations are registered under the following contract
         134                 :  * ID prefix:
         135                 :  */
         136                 : #define NS_AUTH_MODULE_CONTRACTID_PREFIX \
         137                 :     "@mozilla.org/network/auth-module;1?name="
         138                 : /**
         139                 :  * This success code may be returned by nsIAuthModule::getNextToken to
         140                 :  * indicate that the authentication is finished and thus there's no need
         141                 :  * to call getNextToken again.
         142                 :  */
         143                 : #define NS_SUCCESS_AUTH_FINISHED \
         144                 :     NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_NETWORK, 40)
         145                 :
         146                 : #endif /* __gen_nsIAuthModule_h__ */

Generated by: LCOV version 1.7