Struct xpcom::interfaces::nsIDBusHandlerApp
[−]
[src]
#[repr(C)]pub struct nsIDBusHandlerApp { /* fields omitted */ }
interface nsIDBusHandlerApp : nsIHandlerApp
/**
* nsIDBusHandlerApp represents local applications launched by DBus a message
* invoking a method taking a single string argument descibing a URI
*/
Methods
impl nsIDBusHandlerApp
[src]
pub fn coerce<T: nsIDBusHandlerAppCoerce>(&self) -> &T
[src]
Cast this nsIDBusHandlerApp
to one of its base interfaces.
impl nsIDBusHandlerApp
[src]
pub unsafe fn GetService(&self, aService: &mut nsACString) -> nsresult
[src]
/**
* Service defines the dbus service that should handle this protocol.
* If its not set, NS_ERROR_FAILURE will be returned by LaunchWithURI
*/
attribute AUTF8String service;
pub unsafe fn SetService(&self, aService: &nsACString) -> nsresult
[src]
/**
* Service defines the dbus service that should handle this protocol.
* If its not set, NS_ERROR_FAILURE will be returned by LaunchWithURI
*/
attribute AUTF8String service;
pub unsafe fn GetObjectPath(&self, aObjectPath: &mut nsACString) -> nsresult
[src]
/**
* Objpath defines the object path of the dbus service that should handle
* this protocol. If its not set, NS_ERROR_FAILURE will be returned
* by LaunchWithURI
*/
attribute AUTF8String objectPath;
pub unsafe fn SetObjectPath(&self, aObjectPath: &nsACString) -> nsresult
[src]
/**
* Objpath defines the object path of the dbus service that should handle
* this protocol. If its not set, NS_ERROR_FAILURE will be returned
* by LaunchWithURI
*/
attribute AUTF8String objectPath;
pub unsafe fn GetDBusInterface(
&self,
aDBusInterface: &mut nsACString
) -> nsresult
[src]
&self,
aDBusInterface: &mut nsACString
) -> nsresult
/**
* DBusInterface defines the interface of the dbus service that should
* handle this protocol. If its not set, NS_ERROR_FAILURE will be
* returned by LaunchWithURI
*/
attribute AUTF8String dBusInterface;
pub unsafe fn SetDBusInterface(&self, aDBusInterface: &nsACString) -> nsresult
[src]
/**
* DBusInterface defines the interface of the dbus service that should
* handle this protocol. If its not set, NS_ERROR_FAILURE will be
* returned by LaunchWithURI
*/
attribute AUTF8String dBusInterface;
pub unsafe fn GetMethod(&self, aMethod: &mut nsACString) -> nsresult
[src]
/**
* Method defines the dbus method that should be invoked to handle this
* protocol. If its not set, NS_ERROR_FAILURE will be returned by
* LaunchWithURI
*/
attribute AUTF8String method;
pub unsafe fn SetMethod(&self, aMethod: &nsACString) -> nsresult
[src]
/**
* Method defines the dbus method that should be invoked to handle this
* protocol. If its not set, NS_ERROR_FAILURE will be returned by
* LaunchWithURI
*/
attribute AUTF8String method;
Methods from Deref<Target = nsIHandlerApp>
pub fn coerce<T: nsIHandlerAppCoerce>(&self) -> &T
[src]
Cast this nsIHandlerApp
to one of its base interfaces.
pub unsafe fn GetName(&self, aName: &mut nsAString) -> nsresult
[src]
/**
* nsIHandlerApp represents an external application that can handle content
* of some sort (either a MIME type or a protocol).
*
* FIXME: now that we've made nsIWebHandlerApp inherit from nsIHandlerApp,
* we should also try to make nsIWebContentHandlerInfo inherit from or possibly
* be replaced by nsIWebHandlerApp (bug 394710).
*/
/**
* Human readable name for the handler
*/
attribute AString name;
pub unsafe fn SetName(&self, aName: &nsAString) -> nsresult
[src]
/**
* nsIHandlerApp represents an external application that can handle content
* of some sort (either a MIME type or a protocol).
*
* FIXME: now that we've made nsIWebHandlerApp inherit from nsIHandlerApp,
* we should also try to make nsIWebContentHandlerInfo inherit from or possibly
* be replaced by nsIWebHandlerApp (bug 394710).
*/
/**
* Human readable name for the handler
*/
attribute AString name;
pub unsafe fn GetDetailedDescription(
&self,
aDetailedDescription: &mut nsAString
) -> nsresult
[src]
&self,
aDetailedDescription: &mut nsAString
) -> nsresult
/**
* Detailed description for this handler. Suitable for
* a tooltip or short informative sentence.
*/
attribute AString detailedDescription;
pub unsafe fn SetDetailedDescription(
&self,
aDetailedDescription: &nsAString
) -> nsresult
[src]
&self,
aDetailedDescription: &nsAString
) -> nsresult
/**
* Detailed description for this handler. Suitable for
* a tooltip or short informative sentence.
*/
attribute AString detailedDescription;
pub unsafe fn Equals(
&self,
aHandlerApp: *const nsIHandlerApp,
_retval: *mut bool
) -> nsresult
[src]
&self,
aHandlerApp: *const nsIHandlerApp,
_retval: *mut bool
) -> nsresult
/**
* Whether or not the given handler app is logically equivalent to the
* invokant (i.e. they represent the same app).
*
* Two apps are the same if they are both either local or web handlers
* and their executables/URI templates and command line parameters are
* the same.
*
* @param aHandlerApp the handler app to compare to the invokant
*
* @returns true if the two are logically equivalent, false otherwise
*/
boolean equals (in nsIHandlerApp aHandlerApp);
pub unsafe fn LaunchWithURI(
&self,
aURI: *const nsIURI,
aWindowContext: *const nsIInterfaceRequestor
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
aWindowContext: *const nsIInterfaceRequestor
) -> nsresult
/**
* Launches the application with the specified URI.
*
* @param aURI
* The URI to launch this application with
*
* @param aWindowContext
*
* Currently only relevant to web-handler apps. If given, this
* represents the docshell to load the handler in and is passed
* through to nsIURILoader.openURI. If this parameter is null or
* not present, the web handler app implementation will attempt to
* find/create a place to load the handler and do so. As of this
* writing, it tries to load the web handler in a new window using
* nsIBrowserDOMWindow.openURI. In the future, it may attempt to
* have a more comprehensive strategy which could include handing
* off to the system default browser (bug 394479).
*/
void launchWithURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext);
Trait Implementations
impl XpCom for nsIDBusHandlerApp
[src]
const IID: nsIID
IID: nsIID = nsID(536618827, 19647, 19381, [166, 53, 5, 173, 44, 187, 101, 52])
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 nsIDBusHandlerApp
[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 nsIDBusHandlerApp
[src]
type Target = nsIHandlerApp
The resulting type after dereferencing.
fn deref(&self) -> &nsIHandlerApp
[src]
Dereferences the value.