Struct xpcom::interfaces::nsILoginManagerPrompter
[−]
[src]
#[repr(C)]pub struct nsILoginManagerPrompter { /* fields omitted */ }
interface nsILoginManagerPrompter : nsISupports
Methods
impl nsILoginManagerPrompter
[src]
pub fn coerce<T: nsILoginManagerPrompterCoerce>(&self) -> &T
[src]
Cast this nsILoginManagerPrompter
to one of its base interfaces.
impl nsILoginManagerPrompter
[src]
pub unsafe fn Init(&self, aWindow: *const nsIDOMWindow) -> nsresult
[src]
/**
* Initialize the prompter. Must be called before using other interfaces.
*
* @param aWindow
* The window in which the user is doing some login-related action that's
* resulting in a need to prompt them for something. The prompt
* will be associated with this window (or, if a notification bar
* is being used, topmost opener in some cases).
*
* aWindow can be null if there is no associated window, e.g. in a JSM
* or Sandbox. In this case there will be no checkbox to save the login
* since the window is needed to know if this is a private context.
*
* If this window is a content window, the corresponding window and browser
* elements will be calculated. If this window is a chrome window, the
* corresponding browser element needs to be set using setBrowser.
*/
void init (in nsIDOMWindow aWindow);
pub unsafe fn GetBrowser(&self, aBrowser: *mut *const nsIDOMElement) -> nsresult
[src]
/**
* The browser this prompter is being created for.
* This is required if the init function received a chrome window as argument.
*/
attribute nsIDOMElement browser;
pub unsafe fn SetBrowser(&self, aBrowser: *const nsIDOMElement) -> nsresult
[src]
/**
* The browser this prompter is being created for.
* This is required if the init function received a chrome window as argument.
*/
attribute nsIDOMElement browser;
pub unsafe fn GetOpener(&self, aOpener: *mut *const nsIDOMWindow) -> nsresult
[src]
/**
* The opener that was used to open the window passed to init.
* The opener can be used to determine in which window the prompt
* should be shown. Must be a content window that is not a frame window,
* make sure to pass the top window using e.g. window.top.
*/
attribute nsIDOMWindow opener;
pub unsafe fn SetOpener(&self, aOpener: *const nsIDOMWindow) -> nsresult
[src]
/**
* The opener that was used to open the window passed to init.
* The opener can be used to determine in which window the prompt
* should be shown. Must be a content window that is not a frame window,
* make sure to pass the top window using e.g. window.top.
*/
attribute nsIDOMWindow opener;
pub unsafe fn PromptToSavePassword(
&self,
aLogin: *const nsILoginInfo
) -> nsresult
[src]
&self,
aLogin: *const nsILoginInfo
) -> nsresult
/**
* Ask the user if they want to save a login (Yes, Never, Not Now)
*
* @param aLogin
* The login to be saved.
*/
void promptToSavePassword (in nsILoginInfo aLogin);
pub unsafe fn PromptToChangePassword(
&self,
aOldLogin: *const nsILoginInfo,
aNewLogin: *const nsILoginInfo
) -> nsresult
[src]
&self,
aOldLogin: *const nsILoginInfo,
aNewLogin: *const nsILoginInfo
) -> nsresult
/**
* Ask the user if they want to change a login's password or username.
* If the user consents, modifyLogin() will be called.
*
* @param aOldLogin
* The existing login (with the old password).
* @param aNewLogin
* The new login.
*/
void promptToChangePassword (in nsILoginInfo aOldLogin, in nsILoginInfo aNewLogin);
pub unsafe fn PromptToChangePasswordWithUsernames(
&self,
logins: *mut *const nsILoginInfo,
count: uint32_t,
aNewLogin: *const nsILoginInfo
) -> nsresult
[src]
&self,
logins: *mut *const nsILoginInfo,
count: uint32_t,
aNewLogin: *const nsILoginInfo
) -> nsresult
/**
* Ask the user if they want to change the password for one of
* multiple logins, when the caller can't determine exactly which
* login should be changed. If the user consents, modifyLogin() will
* be called.
*
* @param logins
* An array of existing logins.
* @param count
* (length of the array)
* @param aNewLogin
* The new login.
*
* Note: Because the caller does not know the username of the login
* to be changed, aNewLogin.username and aNewLogin.usernameField
* will be set (using the user's selection) before modifyLogin()
* is called.
*/
void promptToChangePasswordWithUsernames ([array, size_is (count)] in nsILoginInfo logins, in uint32_t count, in nsILoginInfo aNewLogin);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsILoginManagerPrompter
[src]
const IID: nsIID
IID: nsIID = nsID(1113551801, 45787, 20106, [136, 197, 154, 194, 81, 41, 52, 206])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsILoginManagerPrompter
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsILoginManagerPrompter
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.