Struct xpcom::interfaces::nsILoginMetaInfo
[−]
[src]
#[repr(C)]pub struct nsILoginMetaInfo { /* fields omitted */ }
interface nsILoginMetaInfo : nsISupports
/**
* An object containing metainfo for a login stored by the login manager.
*
* Code using login manager can generally ignore this interface. When adding
* logins, default value will be created. When modifying logins, these
* properties will be unchanged unless a change is explicitly requested [by
* using modifyLogin() with a nsIPropertyBag]. When deleting a login or
* comparing logins, these properties are ignored.
*/
Methods
impl nsILoginMetaInfo
[src]
pub fn coerce<T: nsILoginMetaInfoCoerce>(&self) -> &T
[src]
Cast this nsILoginMetaInfo
to one of its base interfaces.
impl nsILoginMetaInfo
[src]
pub unsafe fn GetGuid(&self, aGuid: &mut nsAString) -> nsresult
[src]
/**
* The GUID to uniquely identify the login. This can be any arbitrary
* string, but a format as created by nsIUUIDGenerator is recommended.
* For example, "{d4e1a1f6-5ea0-40ee-bff5-da57982f21cf}"
*
* addLogin will generate a random value unless a value is provided.
*
* addLogin and modifyLogin will throw if the GUID already exists.
*/
attribute AString guid;
pub unsafe fn SetGuid(&self, aGuid: &nsAString) -> nsresult
[src]
/**
* The GUID to uniquely identify the login. This can be any arbitrary
* string, but a format as created by nsIUUIDGenerator is recommended.
* For example, "{d4e1a1f6-5ea0-40ee-bff5-da57982f21cf}"
*
* addLogin will generate a random value unless a value is provided.
*
* addLogin and modifyLogin will throw if the GUID already exists.
*/
attribute AString guid;
pub unsafe fn GetTimeCreated(&self, aTimeCreated: *mut uint64_t) -> nsresult
[src]
/**
* The time, in Unix Epoch milliseconds, when the login was first created.
*/
attribute unsigned long long timeCreated;
pub unsafe fn SetTimeCreated(&self, aTimeCreated: uint64_t) -> nsresult
[src]
/**
* The time, in Unix Epoch milliseconds, when the login was first created.
*/
attribute unsigned long long timeCreated;
pub unsafe fn GetTimeLastUsed(&self, aTimeLastUsed: *mut uint64_t) -> nsresult
[src]
/**
* The time, in Unix Epoch milliseconds, when the login was last submitted
* in a form or used to begin an HTTP auth session.
*/
attribute unsigned long long timeLastUsed;
pub unsafe fn SetTimeLastUsed(&self, aTimeLastUsed: uint64_t) -> nsresult
[src]
/**
* The time, in Unix Epoch milliseconds, when the login was last submitted
* in a form or used to begin an HTTP auth session.
*/
attribute unsigned long long timeLastUsed;
pub unsafe fn GetTimePasswordChanged(
&self,
aTimePasswordChanged: *mut uint64_t
) -> nsresult
[src]
&self,
aTimePasswordChanged: *mut uint64_t
) -> nsresult
/**
* The time, in Unix Epoch milliseconds, when the login was last modified.
*
* Contrary to what the name may suggest, this attribute takes into account
* not only the password but also the username attribute.
*/
attribute unsigned long long timePasswordChanged;
pub unsafe fn SetTimePasswordChanged(
&self,
aTimePasswordChanged: uint64_t
) -> nsresult
[src]
&self,
aTimePasswordChanged: uint64_t
) -> nsresult
/**
* The time, in Unix Epoch milliseconds, when the login was last modified.
*
* Contrary to what the name may suggest, this attribute takes into account
* not only the password but also the username attribute.
*/
attribute unsigned long long timePasswordChanged;
pub unsafe fn GetTimesUsed(&self, aTimesUsed: *mut uint32_t) -> nsresult
[src]
/**
* The number of times the login was submitted in a form or used to begin
* an HTTP auth session.
*/
attribute unsigned long timesUsed;
pub unsafe fn SetTimesUsed(&self, aTimesUsed: uint32_t) -> nsresult
[src]
/**
* The number of times the login was submitted in a form or used to begin
* an HTTP auth session.
*/
attribute unsigned long timesUsed;
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 nsILoginMetaInfo
[src]
const IID: nsIID
IID: nsIID = nsID(551086912, 50324, 18815, [178, 166, 170, 163, 47, 128, 126, 189])
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 nsILoginMetaInfo
[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 nsILoginMetaInfo
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.