DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/toolkit/components/passwordmgr/nsILoginManagerStorage.idl
 */

#ifndef __gen_nsILoginManagerStorage_h__
#define __gen_nsILoginManagerStorage_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/Value.h"

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIFile; /* forward declaration */

class nsILoginInfo; /* forward declaration */

class nsIPropertyBag; /* forward declaration */


/* starting interface:    nsILoginManagerStorage */
#define NS_ILOGINMANAGERSTORAGE_IID_STR "5df81a93-25e6-4b45-a696-089479e15c7d"

#define NS_ILOGINMANAGERSTORAGE_IID \
  {0x5df81a93, 0x25e6, 0x4b45, \
    { 0xa6, 0x96, 0x08, 0x94, 0x79, 0xe1, 0x5c, 0x7d }}

class NS_NO_VTABLE nsILoginManagerStorage : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOGINMANAGERSTORAGE_IID)

  /* jsval initialize (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Initialize(JS::MutableHandleValue _retval) = 0;

  /* jsval terminate (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Terminate(JS::MutableHandleValue _retval) = 0;

  /* nsILoginInfo addLogin (in nsILoginInfo aLogin, [optional] in boolean aPreEncrypted); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddLogin(nsILoginInfo *aLogin, bool aPreEncrypted, nsILoginInfo **_retval) = 0;

  /* void removeLogin (in nsILoginInfo aLogin); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveLogin(nsILoginInfo *aLogin) = 0;

  /* void modifyLogin (in nsILoginInfo oldLogin, in nsISupports newLoginData); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ModifyLogin(nsILoginInfo *oldLogin, nsISupports *newLoginData) = 0;

  /* void removeAllLogins (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveAllLogins(void) = 0;

  /* void getAllLogins ([optional] out unsigned long count, [array, size_is (count), retval] out nsILoginInfo logins); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAllLogins(uint32_t *count, nsILoginInfo ***logins) = 0;

  /* void searchLogins (out unsigned long count, in nsIPropertyBag matchData, [array, size_is (count), retval] out nsILoginInfo logins); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SearchLogins(uint32_t *count, nsIPropertyBag *matchData, nsILoginInfo ***logins) = 0;

  /* void findLogins (out unsigned long count, in AString aHostname, in AString aActionURL, in AString aHttpRealm, [array, size_is (count), retval] out nsILoginInfo logins); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FindLogins(uint32_t *count, const nsAString& aHostname, const nsAString& aActionURL, const nsAString& aHttpRealm, nsILoginInfo ***logins) = 0;

  /* unsigned long countLogins (in AString aHostname, in AString aActionURL, in AString aHttpRealm); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CountLogins(const nsAString& aHostname, const nsAString& aActionURL, const nsAString& aHttpRealm, uint32_t *_retval) = 0;

  /* readonly attribute boolean uiBusy; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUiBusy(bool *aUiBusy) = 0;

  /* readonly attribute boolean isLoggedIn; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsLoggedIn(bool *aIsLoggedIn) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsILoginManagerStorage, NS_ILOGINMANAGERSTORAGE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILOGINMANAGERSTORAGE \
  NS_IMETHOD Initialize(JS::MutableHandleValue _retval) override; \
  NS_IMETHOD Terminate(JS::MutableHandleValue _retval) override; \
  NS_IMETHOD AddLogin(nsILoginInfo *aLogin, bool aPreEncrypted, nsILoginInfo **_retval) override; \
  NS_IMETHOD RemoveLogin(nsILoginInfo *aLogin) override; \
  NS_IMETHOD ModifyLogin(nsILoginInfo *oldLogin, nsISupports *newLoginData) override; \
  NS_IMETHOD RemoveAllLogins(void) override; \
  NS_IMETHOD GetAllLogins(uint32_t *count, nsILoginInfo ***logins) override; \
  NS_IMETHOD SearchLogins(uint32_t *count, nsIPropertyBag *matchData, nsILoginInfo ***logins) override; \
  NS_IMETHOD FindLogins(uint32_t *count, const nsAString& aHostname, const nsAString& aActionURL, const nsAString& aHttpRealm, nsILoginInfo ***logins) override; \
  NS_IMETHOD CountLogins(const nsAString& aHostname, const nsAString& aActionURL, const nsAString& aHttpRealm, uint32_t *_retval) override; \
  NS_IMETHOD GetUiBusy(bool *aUiBusy) override; \
  NS_IMETHOD GetIsLoggedIn(bool *aIsLoggedIn) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSILOGINMANAGERSTORAGE \
  nsresult Initialize(JS::MutableHandleValue _retval); \
  nsresult Terminate(JS::MutableHandleValue _retval); \
  nsresult AddLogin(nsILoginInfo *aLogin, bool aPreEncrypted, nsILoginInfo **_retval); \
  nsresult RemoveLogin(nsILoginInfo *aLogin); \
  nsresult ModifyLogin(nsILoginInfo *oldLogin, nsISupports *newLoginData); \
  nsresult RemoveAllLogins(void); \
  nsresult GetAllLogins(uint32_t *count, nsILoginInfo ***logins); \
  nsresult SearchLogins(uint32_t *count, nsIPropertyBag *matchData, nsILoginInfo ***logins); \
  nsresult FindLogins(uint32_t *count, const nsAString& aHostname, const nsAString& aActionURL, const nsAString& aHttpRealm, nsILoginInfo ***logins); \
  nsresult CountLogins(const nsAString& aHostname, const nsAString& aActionURL, const nsAString& aHttpRealm, uint32_t *_retval); \
  nsresult GetUiBusy(bool *aUiBusy); \
  nsresult GetIsLoggedIn(bool *aIsLoggedIn); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILOGINMANAGERSTORAGE(_to) \
  NS_IMETHOD Initialize(JS::MutableHandleValue _retval) override { return _to Initialize(_retval); } \
  NS_IMETHOD Terminate(JS::MutableHandleValue _retval) override { return _to Terminate(_retval); } \
  NS_IMETHOD AddLogin(nsILoginInfo *aLogin, bool aPreEncrypted, nsILoginInfo **_retval) override { return _to AddLogin(aLogin, aPreEncrypted, _retval); } \
  NS_IMETHOD RemoveLogin(nsILoginInfo *aLogin) override { return _to RemoveLogin(aLogin); } \
  NS_IMETHOD ModifyLogin(nsILoginInfo *oldLogin, nsISupports *newLoginData) override { return _to ModifyLogin(oldLogin, newLoginData); } \
  NS_IMETHOD RemoveAllLogins(void) override { return _to RemoveAllLogins(); } \
  NS_IMETHOD GetAllLogins(uint32_t *count, nsILoginInfo ***logins) override { return _to GetAllLogins(count, logins); } \
  NS_IMETHOD SearchLogins(uint32_t *count, nsIPropertyBag *matchData, nsILoginInfo ***logins) override { return _to SearchLogins(count, matchData, logins); } \
  NS_IMETHOD FindLogins(uint32_t *count, const nsAString& aHostname, const nsAString& aActionURL, const nsAString& aHttpRealm, nsILoginInfo ***logins) override { return _to FindLogins(count, aHostname, aActionURL, aHttpRealm, logins); } \
  NS_IMETHOD CountLogins(const nsAString& aHostname, const nsAString& aActionURL, const nsAString& aHttpRealm, uint32_t *_retval) override { return _to CountLogins(aHostname, aActionURL, aHttpRealm, _retval); } \
  NS_IMETHOD GetUiBusy(bool *aUiBusy) override { return _to GetUiBusy(aUiBusy); } \
  NS_IMETHOD GetIsLoggedIn(bool *aIsLoggedIn) override { return _to GetIsLoggedIn(aIsLoggedIn); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILOGINMANAGERSTORAGE(_to) \
  NS_IMETHOD Initialize(JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Initialize(_retval); } \
  NS_IMETHOD Terminate(JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Terminate(_retval); } \
  NS_IMETHOD AddLogin(nsILoginInfo *aLogin, bool aPreEncrypted, nsILoginInfo **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddLogin(aLogin, aPreEncrypted, _retval); } \
  NS_IMETHOD RemoveLogin(nsILoginInfo *aLogin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveLogin(aLogin); } \
  NS_IMETHOD ModifyLogin(nsILoginInfo *oldLogin, nsISupports *newLoginData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ModifyLogin(oldLogin, newLoginData); } \
  NS_IMETHOD RemoveAllLogins(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAllLogins(); } \
  NS_IMETHOD GetAllLogins(uint32_t *count, nsILoginInfo ***logins) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllLogins(count, logins); } \
  NS_IMETHOD SearchLogins(uint32_t *count, nsIPropertyBag *matchData, nsILoginInfo ***logins) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SearchLogins(count, matchData, logins); } \
  NS_IMETHOD FindLogins(uint32_t *count, const nsAString& aHostname, const nsAString& aActionURL, const nsAString& aHttpRealm, nsILoginInfo ***logins) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindLogins(count, aHostname, aActionURL, aHttpRealm, logins); } \
  NS_IMETHOD CountLogins(const nsAString& aHostname, const nsAString& aActionURL, const nsAString& aHttpRealm, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CountLogins(aHostname, aActionURL, aHttpRealm, _retval); } \
  NS_IMETHOD GetUiBusy(bool *aUiBusy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUiBusy(aUiBusy); } \
  NS_IMETHOD GetIsLoggedIn(bool *aIsLoggedIn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsLoggedIn(aIsLoggedIn); } 


#endif /* __gen_nsILoginManagerStorage_h__ */