Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/mime/nsIMIMEService.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIMIMEService",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* nsIMIMEInfo getFromTypeAndExtension (in ACString aMIMEType, in AUTF8String aFileExt); */
Method {
name: "GetFromTypeAndExtension",
params: &[Param { name: "aMIMEType", ty: "*const ::nsstring::nsACString" }, Param { name: "aFileExt", ty: "*const ::nsstring::nsACString" }, Param { name: "_retval", ty: "*mut*const nsIMIMEInfo" }],
ret: "::nserror::nsresult",
},
/* ACString getTypeFromExtension (in AUTF8String aFileExt); */
Method {
name: "GetTypeFromExtension",
params: &[Param { name: "aFileExt", ty: "*const ::nsstring::nsACString" }, Param { name: "_retval", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* ACString getTypeFromURI (in nsIURI aURI); */
Method {
name: "GetTypeFromURI",
params: &[Param { name: "aURI", ty: "*const nsIURI" }, Param { name: "_retval", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* ACString getDefaultTypeFromURI (in nsIURI aURI); */
Method {
name: "GetDefaultTypeFromURI",
params: &[Param { name: "aURI", ty: "*const nsIURI" }, Param { name: "_retval", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* ACString getTypeFromFile (in nsIFile aFile); */
Method {
name: "GetTypeFromFile",
params: &[Param { name: "aFile", ty: "*const nsIFile" }, Param { name: "_retval", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* AUTF8String getPrimaryExtension (in ACString aMIMEType, in AUTF8String aFileExt); */
Method {
name: "GetPrimaryExtension",
params: &[Param { name: "aMIMEType", ty: "*const ::nsstring::nsACString" }, Param { name: "aFileExt", ty: "*const ::nsstring::nsACString" }, Param { name: "_retval", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* nsIMIMEInfo getMIMEInfoFromOS (in ACString aType, in ACString aFileExtension, out boolean aFound); */
Method {
name: "GetMIMEInfoFromOS",
params: &[Param { name: "aType", ty: "*const ::nsstring::nsACString" }, Param { name: "aFileExtension", ty: "*const ::nsstring::nsACString" }, Param { name: "aFound", ty: "*mut bool" }, Param { name: "_retval", ty: "*mut*const nsIMIMEInfo" }],
ret: "::nserror::nsresult",
},
/* void updateDefaultAppInfo (in nsIMIMEInfo aMIMEInfo); */
Method {
name: "UpdateDefaultAppInfo",
params: &[Param { name: "aMIMEInfo", ty: "*const nsIMIMEInfo" }],
ret: "::nserror::nsresult",
},
/* AString getValidFileName (in nsIChannel aChannel, in ACString aType, in nsIURI aOriginalURI, in unsigned long aFlags); */
Method {
name: "GetValidFileName",
params: &[Param { name: "aChannel", ty: "*const nsIChannel" }, Param { name: "aType", ty: "*const ::nsstring::nsACString" }, Param { name: "aOriginalURI", ty: "*const nsIURI" }, Param { name: "aFlags", ty: "u32" }, Param { name: "_retval", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* AString validateFileNameForSaving (in AString aFileName, in ACString aType, in unsigned long aFlags); */
Method {
name: "ValidateFileNameForSaving",
params: &[Param { name: "aFileName", ty: "*const ::nsstring::nsAString" }, Param { name: "aType", ty: "*const ::nsstring::nsACString" }, Param { name: "aFlags", ty: "u32" }, Param { name: "_retval", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}