prepare for packaging
[retroconv] / notification_service.py~
diff --git a/notification_service.py~ b/notification_service.py~
deleted file mode 100644 (file)
index 96f0dab..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-import sys
-import dbus
-from dbus.mainloop.glib import DBusGMainLoop
-
-class Notifier:
-
-       def __init__(self):
-               self.dbus_loop = DBusGMainLoop(set_as_default=True)
-               self.bus = dbus.SessionBus(mainloop=self.dbus_loop)
-               self.provider = self.bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')
-               self.proxy = dbus.Interface(self.provider, 'org.freedesktop.Notifications') 
-               
-       def showAlert(self,alertText):
-               self.proxy.SystemNoteDialog(alertText, 0 ,"ok")
-       
-       def requestPatience(self):
-               text = "Please Wait"
-               self.proxy.SystemNoteInfoprint(text)
-               
-       
-       def showSuccess(self, num):
-               text = "Successfuly Imported "+num+" messages"
-               self.proxy.SystemNoteDialog(text, 0 ,"ok")
-               
-       def showFailure(self):
-               text = "Failed to import messages"
-               self.proxy.SystemNoteDialog(text, 0 ,"ok")
-