Struct xpcom::interfaces::nsIAuthPrompt
[−]
[src]
#[repr(C)]pub struct nsIAuthPrompt { /* fields omitted */ }
interface nsIAuthPrompt : nsISupports
Methods
impl nsIAuthPrompt
[src]
pub fn coerce<T: nsIAuthPromptCoerce>(&self) -> &T
[src]
Cast this nsIAuthPrompt
to one of its base interfaces.
impl nsIAuthPrompt
[src]
pub const SAVE_PASSWORD_NEVER: i64
SAVE_PASSWORD_NEVER: i64 = 0
pub const SAVE_PASSWORD_FOR_SESSION: i64
SAVE_PASSWORD_FOR_SESSION: i64 = 1
pub const SAVE_PASSWORD_PERMANENTLY: i64
SAVE_PASSWORD_PERMANENTLY: i64 = 2
pub unsafe fn Prompt(
&self,
dialogTitle: *const int16_t,
text: *const int16_t,
passwordRealm: *const int16_t,
savePassword: uint32_t,
defaultText: *const int16_t,
result: *mut *const int16_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
dialogTitle: *const int16_t,
text: *const int16_t,
passwordRealm: *const int16_t,
savePassword: uint32_t,
defaultText: *const int16_t,
result: *mut *const int16_t,
_retval: *mut bool
) -> nsresult
/**
* Puts up a text input dialog with OK and Cancel buttons.
* Note: prompt uses separate args for the "in" and "out" values of the
* input field, whereas the other functions use a single inout arg.
* @param dialogText The title for the dialog.
* @param text The text to display in the dialog.
* @param passwordRealm The "realm" the password belongs to: e.g.
* ldap://localhost/dc=test
* @param savePassword One of the SAVE_PASSWORD_* options above.
* @param defaultText The default text to display in the text input box.
* @param result The value entered by the user if OK was
* selected.
* @return true for OK, false for Cancel
*/
boolean prompt (in wstring dialogTitle, in wstring text, in wstring passwordRealm, in uint32_t savePassword, in wstring defaultText, out wstring result);
pub unsafe fn PromptUsernameAndPassword(
&self,
dialogTitle: *const int16_t,
text: *const int16_t,
passwordRealm: *const int16_t,
savePassword: uint32_t,
user: *mut *const int16_t,
pwd: *mut *const int16_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
dialogTitle: *const int16_t,
text: *const int16_t,
passwordRealm: *const int16_t,
savePassword: uint32_t,
user: *mut *const int16_t,
pwd: *mut *const int16_t,
_retval: *mut bool
) -> nsresult
/**
* Puts up a username/password dialog with OK and Cancel buttons.
* Puts up a password dialog with OK and Cancel buttons.
* @param dialogText The title for the dialog.
* @param text The text to display in the dialog.
* @param passwordRealm The "realm" the password belongs to: e.g.
* ldap://localhost/dc=test
* @param savePassword One of the SAVE_PASSWORD_* options above.
* @param user The username entered in the dialog.
* @param pwd The password entered by the user if OK was
* selected.
* @return true for OK, false for Cancel
*/
boolean promptUsernameAndPassword (in wstring dialogTitle, in wstring text, in wstring passwordRealm, in uint32_t savePassword, inout wstring user, inout wstring pwd);
pub unsafe fn PromptPassword(
&self,
dialogTitle: *const int16_t,
text: *const int16_t,
passwordRealm: *const int16_t,
savePassword: uint32_t,
pwd: *mut *const int16_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
dialogTitle: *const int16_t,
text: *const int16_t,
passwordRealm: *const int16_t,
savePassword: uint32_t,
pwd: *mut *const int16_t,
_retval: *mut bool
) -> nsresult
/**
* Puts up a password dialog with OK and Cancel buttons.
* @param dialogText The title for the dialog.
* @param text The text to display in the dialog.
* @param passwordRealm The "realm" the password belongs to: e.g.
* ldap://localhost/dc=test. If a username is
* specified (http://user@site.com) it will be used
* when matching existing logins or saving new ones.
* If no username is specified, only password-only
* logins will be matched or saved.
* Note: if a username is specified, the username
* should be escaped.
* @param savePassword One of the SAVE_PASSWORD_* options above.
* @param pwd The password entered by the user if OK was
* selected.
* @return true for OK, false for Cancel
*/
boolean promptPassword (in wstring dialogTitle, in wstring text, in wstring passwordRealm, in uint32_t savePassword, inout wstring pwd);
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 nsIAuthPrompt
[src]
const IID: nsIID
IID: nsIID = nsID(897616377, 61003, 18193, [130, 253, 188, 208, 127, 198, 32, 97])
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 nsIAuthPrompt
[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 nsIAuthPrompt
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.