Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/interfaces/notification/nsINotificationStorage.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsINotificationActionStorageEntry",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute AString name; */
Method {
name: "GetName",
params: &[Param { name: "aName", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString title; */
Method {
name: "GetTitle",
params: &[Param { name: "aTitle", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsINotificationStorageEntry",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute AString id; */
Method {
name: "GetId",
params: &[Param { name: "aId", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString title; */
Method {
name: "GetTitle",
params: &[Param { name: "aTitle", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString dir; */
Method {
name: "GetDir",
params: &[Param { name: "aDir", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString lang; */
Method {
name: "GetLang",
params: &[Param { name: "aLang", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString body; */
Method {
name: "GetBody",
params: &[Param { name: "aBody", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString tag; */
Method {
name: "GetTag",
params: &[Param { name: "aTag", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString icon; */
Method {
name: "GetIcon",
params: &[Param { name: "aIcon", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute boolean requireInteraction; */
Method {
name: "GetRequireInteraction",
params: &[Param { name: "aRequireInteraction", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* readonly attribute boolean silent; */
Method {
name: "GetSilent",
params: &[Param { name: "aSilent", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString dataSerialized; */
Method {
name: "GetDataSerialized",
params: &[Param { name: "aDataSerialized", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<nsINotificationActionStorageEntry> actions; */
Method {
name: "GetActions",
params: &[Param { name: "aActions", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsINotificationActionStorageEntry>>>" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsINotificationStorageCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void done (in Array<nsINotificationStorageEntry> aEntries); */
Method {
name: "Done",
params: &[Param { name: "aEntries", ty: "*const thin_vec::ThinVec<Option<RefPtr<nsINotificationStorageEntry>>>" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsINotificationStorage",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void put (in AString aOrigin, in nsINotificationStorageEntry aEntry, in AString aScope); */
Method {
name: "Put",
params: &[Param { name: "aOrigin", ty: "*const ::nsstring::nsAString" }, Param { name: "aEntry", ty: "*const nsINotificationStorageEntry" }, Param { name: "aScope", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* void get (in AString origin, in AString scope, in AString tag, in nsINotificationStorageCallback aCallback); */
Method {
name: "Get",
params: &[Param { name: "origin", ty: "*const ::nsstring::nsAString" }, Param { name: "scope", ty: "*const ::nsstring::nsAString" }, Param { name: "tag", ty: "*const ::nsstring::nsAString" }, Param { name: "aCallback", ty: "*const nsINotificationStorageCallback" }],
ret: "::nserror::nsresult",
},
/* void delete (in AString origin, in AString id); */
Method {
name: "Delete",
params: &[Param { name: "origin", ty: "*const ::nsstring::nsAString" }, Param { name: "id", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* void deleteAllExcept (in Array<AString> ids); */
Method {
name: "DeleteAllExcept",
params: &[Param { name: "ids", ty: "*const thin_vec::ThinVec<::nsstring::nsString>" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}