-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from Sweets/tiramisu-vala
Tiramisu vala
- Loading branch information
Showing
12 changed files
with
214 additions
and
829 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[DBus (name = "org.freedesktop.Notifications")] | ||
public class NotificationDaemon : Object { | ||
[DBus (name = "GetServerInformation")] | ||
public void get_server_information(out string name, | ||
out string vendor, out string version, out string spec_version) | ||
throws DBusError, IOError { | ||
name = "tiramisu"; | ||
vendor = "Sweets"; | ||
version = "1.2"; | ||
spec_version = "1.2"; | ||
} | ||
|
||
[DBus (name = "GetCapabilities")] | ||
public string[] get_capabilities() throws DBusError, IOError { | ||
return {"body"}; | ||
} | ||
|
||
[DBus (name = "Notify")] | ||
public uint Notify(string app_name, uint replaces_id, string app_icon, | ||
string summary, string body, string[] actions, | ||
GLib.HashTable<string, GLib.Variant> hints, | ||
int expire_timeout) throws DBusError, IOError { | ||
|
||
Notification.output(app_name, replaces_id, app_icon, summary, | ||
body, actions, hints, expire_timeout); | ||
|
||
return 0; | ||
} | ||
|
||
[DBus (name = "CloseNotification")] | ||
public void close_notification(uint id) throws DBusError, IOError { | ||
// close notification | ||
} | ||
|
||
[DBus (name = "NotificationClosed")] | ||
public void notification_closed(uint id, | ||
uint reason) throws DBusError, IOError { | ||
// notification was closed | ||
} | ||
|
||
|
||
// action_invoked | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.