anotherim-desktop/plugins/windows-notification/src/plugin.vala

34 lines
824 B
Vala
Raw Normal View History

2020-10-24 22:05:35 +00:00
using Gee;
using Dino.Entities;
2021-03-26 11:22:55 +00:00
using Win32Api;
using ShortcutCreator;
2020-10-24 22:05:35 +00:00
namespace Dino.Plugins.WindowsNotification {
public class Plugin : RootInterface, Object {
public void registered(Dino.Application app) {
2021-03-26 11:22:55 +00:00
var created = ShortcutCreator.TryCreateShortcut("org.dino.Dino");
if (!created)
{
// log somewhere, return
2020-10-24 22:30:57 +00:00
}
2021-03-26 11:22:55 +00:00
var initialized =
if (!Win32Api.SupportsModernNotifications())
{
// limit types of notifications on template builder
}
// var provider = WindowsNotificationProvider.try_create(app);
// if (provider != null) {
// app.stream_interactor.get_module(NotificationEvents.IDENTITY).register_notification_provider(provider);
// }
2020-10-24 22:05:35 +00:00
}
public void shutdown() {
2020-10-25 11:07:31 +00:00
}
2020-10-24 22:05:35 +00:00
}
}