Imported Upstream version 0.0.1
authorPali Rohár <pali.rohar@gmail.com>
Fri, 22 Jun 2012 12:11:03 +0000 (14:11 +0200)
committerPali Rohár <pali.rohar@gmail.com>
Fri, 22 Jun 2012 12:11:03 +0000 (14:11 +0200)
16 files changed:
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/optify [new file with mode: 0644]
debian/rules [new file with mode: 0755]
src/usr/lib/hildon-desktop/CallNotify.py [new file with mode: 0644]
src/usr/share/CallNotify/1.png [new file with mode: 0644]
src/usr/share/CallNotify/2.png [new file with mode: 0644]
src/usr/share/CallNotify/3.png [new file with mode: 0644]
src/usr/share/CallNotify/4.png [new file with mode: 0644]
src/usr/share/CallNotify/5.png [new file with mode: 0644]
src/usr/share/CallNotify/more.png [new file with mode: 0644]
src/usr/share/CallNotify/sms.png [new file with mode: 0644]
src/usr/share/application/hildon-status-menu/CallNotify.desktop [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..12ca277
--- /dev/null
@@ -0,0 +1,5 @@
+callnotify (0.0.1-1) stable; urgency=low
+
+  * no changelog
+
+ -- Omer Agmon <omeriko9@gmail.com>  Sat, 27 Mar 2010 14:45:34 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..7797e42
--- /dev/null
@@ -0,0 +1,106 @@
+Source: callnotify
+Section: user/desktop
+Priority: extra
+Maintainer: Omer Agmon <omeriko9@gmail.com>
+Build-Depends: debhelper (>= 5)
+Standards-Version: 3.7.2
+
+Package: callnotify
+Architecture: all
+Depends: python2.5, python-osso, python-dbus, python2.5-gtk2, python-hildondesktop
+Description: Call and SMS notifier.
+ Will display a small status bar icon for missed Calls and SMS.
+ The icon will disappear after closwing the yellow notification or viewing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Ky6j
+ tklzVOaSYW0A/d0tvb4h0NBqnRyZ00SSABNVYSOmysG9AiN3MltJrrGTWmcnRSE0JHwkWaYntcIk
+ wFtJLzETlaIh8L6CqwEZRIrG5kDgF7hffRO/OGHvqe8IImPwKXpFhMdX2Vv0Dr7pE3APGc/as+P5
+ Omoz6fJg5MocauoKvX4m+H/cfj9bSVSJgyiZg9s5Ni4n64mRCfuvgOgyO3HlVqKKtMQWqghOrsT/
+ ViJ7j99h//FAzlyJIyuvkdrmRkRnxaU4D/bcminK37FsuuLCulsjWH1jNK433sE7eDb+CdsJyj1N
+ cXOquUZTElRSkbOkvqaqbY36j7GMzmkmvszBzWQb/hE67uULbZQ6SBDgwzKNnLtXwh7/cNz9znP0
+ 4l3Ck3OoVrVicDgwC7EixG7dkFsVM1BaFz89Sx6qjC+9yH3pcVEGH+N27n4ftysfDjmVsPnJyPKL
+ T2bWRQ+u1hYNqlXLe7doVc4tSnVbbP7HlZRRpkoLiFNwJ1HPvTQ750LK8fW/z1bfKxw8GcbdSCnS
+ yhZURgt6mz3c4LCN0FkM/f4ttf+7N4uj+x/W1c2adqduRLPrWCj7Tt7nUmCCiD4F1DU3oxegLXYr
+ JpsRm9008d997//Z/Xazqcd3H1al0lJSrzXWaczDtFZbR6OjyclsqWuzah3wvZ7XjlWMVtuwnMWE
+ op3kZ0Wh/wJ7tyw3JQRIsgAAAABJRU5ErkJggg==
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..ee23c48
--- /dev/null
@@ -0,0 +1,35 @@
+This package was py2debianized(0.5.3) by Omer Agmon <omeriko9@gmail.com> on
+Sat, 27 Mar 2010 14:45:34 +0000.
+
+It was downloaded from 
+
+Upstream Author: Omer Agmon <omeriko9@gmail.com>
+
+Copyright: 2010 by Omer Agmon
+
+License:
+
+
+    This package is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+
+The Debian packaging is (C) 2010, Omer Agmon <omeriko9@gmail.com> and
+is licensed under the GPL, see above.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..a492fa3
--- /dev/null
@@ -0,0 +1,3 @@
+usr/lib/hildon-desktop/
+usr/share/CallNotify/
+usr/share/application/hildon-status-menu/
\ No newline at end of file
diff --git a/debian/optify b/debian/optify
new file mode 100644 (file)
index 0000000..c86c3f3
--- /dev/null
@@ -0,0 +1 @@
+none
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..c8eae67
--- /dev/null
@@ -0,0 +1,106 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -O0
+else
+       CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       # Add here commands to configure the package.
+
+       touch configure-stamp
+
+build: build-stamp
+
+build-stamp: configure-stamp
+       dh_testdir
+       touch build-stamp
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+       dh_clean
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+
+       # ======================================================
+       #$(MAKE) DESTDIR="$(CURDIR)/debian/callnotify" install
+       mkdir -p "$(CURDIR)/debian/callnotify"
+
+#      mkdir -p "$(CURDIR)/debian/callnotify/usr/lib/hildon-desktop/"
+       cp -a "src/usr/lib/hildon-desktop/CallNotify.py" "$(CURDIR)/debian/callnotify/usr/lib/hildon-desktop/CallNotify.py"
+       mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
+       cp -a "src/usr/share/CallNotify/1.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/1.png"
+       mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
+       cp -a "src/usr/share/CallNotify/2.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/2.png"
+       mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
+       cp -a "src/usr/share/CallNotify/3.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/3.png"
+       mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
+       cp -a "src/usr/share/CallNotify/4.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/4.png"
+       mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
+       cp -a "src/usr/share/CallNotify/5.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/5.png"
+       mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
+       cp -a "src/usr/share/CallNotify/more.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/more.png"
+       mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
+       cp -a "src/usr/share/CallNotify/sms.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/sms.png"
+       mkdir -p "$(CURDIR)/debian/callnotify/usr/share/application/hildon-status-menu/"
+       cp -a "src/usr/share/application/hildon-status-menu/CallNotify.desktop" "$(CURDIR)/debian/callnotify/usr/share/application/hildon-status-menu/CallNotify.desktop"
+
+       # ======================================================
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs debian/changelog
+       dh_installdocs
+       dh_installexamples
+#      dh_install
+#      dh_installmenu
+#      dh_installdebconf
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_python
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+       dh_installman
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+#      dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/src/usr/lib/hildon-desktop/CallNotify.py b/src/usr/lib/hildon-desktop/CallNotify.py
new file mode 100644 (file)
index 0000000..d05e5d6
--- /dev/null
@@ -0,0 +1,145 @@
+import gtk
+import gobject
+import hildondesktop
+import sqlite3
+import time
+import dbus
+from dbus.mainloop.glib import DBusGMainLoop
+
+
+class CallNotify(hildondesktop.StatusMenuItem):
+    def __init__(self):
+               hildondesktop.StatusMenuItem.__init__(self)
+               
+               self.path = "/home/user/.rtcom-eventlogger/el.db"
+               
+               # Prevent multiple timers to refresh the status icon
+               self.stop = False
+               
+               # Load images
+               self.loadImages()
+               self.msgType = ""               
+               self.toShow = True
+               self.missed = self.getMissedCallsCount(False)
+               self.missedSMS = self.getMissedCallsCount(True)
+               self.missedLastCall = self.missed
+               self.missedLastSMS = self.missedSMS
+               gobject.timeout_add(5000, self.handleMissedCall) 
+               
+               # add d-bus listener for removing notification after viewing missed call
+               # Doing timeout_add with return False instead of explicitly raising a thread
+               gobject.timeout_add(500, self.startDbusListeners)
+
+    def loadImages(self):
+               # Load phone image
+               #self.pixbuf = gtk.gdk.pixbuf_new_from_file_at_size("/home/user/phone.png",18,18)
+               icon_theme = gtk.icon_theme_get_default()
+               self.callPicture = icon_theme.load_icon("general_call", 18, gtk.ICON_LOOKUP_NO_SVG)
+               self.smsPicture = gtk.gdk.pixbuf_new_from_file_at_size("/usr/share/CallNotify/sms.png",18,18)
+               
+               # Load 5 numbers and the "+5" 
+               self.imgList = []
+               #self.imgList.append(gtk.gdk.pixbuf_new_from_file_at_size("/home/user/1.png",18,18))
+               self.imgList.append(gtk.gdk.pixbuf_new_from_file_at_size("/usr/share/CallNotify/1.png",18,18))
+               self.imgList.append(gtk.gdk.pixbuf_new_from_file_at_size("/usr/share/CallNotify/2.png",18,18))
+               self.imgList.append(gtk.gdk.pixbuf_new_from_file_at_size("/usr/share/CallNotify/3.png",18,18))
+               self.imgList.append(gtk.gdk.pixbuf_new_from_file_at_size("/usr/share/CallNotify/4.png",18,18))
+               self.imgList.append(gtk.gdk.pixbuf_new_from_file_at_size("/usr/share/CallNotify/5.png",18,18))
+               self.imgList.append(gtk.gdk.pixbuf_new_from_file_at_size("/usr/share/CallNotify/more.png",18,18))
+               
+       # Method to define the way to add dbus signal receiver
+    def startDbusListeners(self):
+               DBusGMainLoop(set_as_default=True)                             
+                bus = dbus.SessionBus()                                        
+                #bus.add_signal_receiver(self.stop_notification, "NotificationClosed", "org.freedesktop.Notifications", "org.freedesktop.Notifications", "/org/freedesktop/Notifications") 
+               #bus.add_signal_receiver(self.handleMissedCall, "Notify", None, None, None)
+               #bus.add_signal_receiver(self.handleMissedCall, "MembersChanged", None, None, None)
+               bus.add_signal_receiver(self.smsReceived, "Received", "org.freedesktop.Telepathy.Channel.Type.Text", None, None)
+               bus.add_signal_receiver(self.smsRead, "NotificationClosed", "org.freedesktop.Notifications", None, "/org/freedesktop/Notifications")
+                gobject.MainLoop().run()                                       
+               return False
+    
+    def smsReceived(self, a, b, c, d, e, f):
+       if self.missedLastSMS == self.getMissedCallsCount(True):
+               if self.msgType == "Call":
+                       self.msgType = "Both"
+               else:
+                       self.msgType = "SMS"
+               self.show()
+       self.missedLastSMS = self.getMissedCallsCount(True)
+       
+    def smsRead(self, a):
+       self.stop_notification(a)
+       
+    def handleMissedCall(self):        
+               if self.missedLastCall != self.getMissedCallsCount(False):
+                       if self.msgType == "SMS":
+                               self.msgType = "Both"
+                       else:
+                               self.msgType = "Call"
+                       self.show()
+                       self.missedLastCall = self.getMissedCallsCount(False)
+               return True
+       
+    def stop_notification(self, a):
+               self.set_status_area_icon(None)
+               gobject.source_remove(self.tmr_ptr)
+               self.set_status_area_icon(None)
+               # Reset the notification (get recent missed call count)
+               self.missed = self.getMissedCallsCount(False)
+               self.missedSMS = self.getMissedCallsCount(True)
+               self.missedLastCall = self.missed
+               self.missedLastSMS = self.missedSMS
+               self.stop = False
+               self.msgType = ""
+
+    def theLoop(self):
+               missedCalls = self.getMissedCallsCount(False)
+               if self.missedLastCall != missedCalls:
+                       self.show()
+                       self.missedLastCall  = missedCalls
+               return True
+
+    def getMissedCallsCount(self, isSms):
+               eType = 3
+               if isSms:
+                       eType=7
+               conn = sqlite3.connect(self.path)
+               cur = conn.cursor()
+               cur.execute("select count(id) from Events where event_type_id = " + str(eType))
+               return cur.fetchone()[0]
+
+    def show(self):
+               # blink the icon every 1 second
+               if not(self.stop):
+                       self.tmr_ptr = gobject.timeout_add(1000, self.blinkIcon)
+                       self.stop = True
+                       
+    def blinkIcon(self):
+               if self.toShow:
+                       self.toShow = False
+                       img = self.callPicture
+                       if self.msgType == "SMS":
+                               img = self.smsPicture
+                       self.set_status_area_icon(img)
+                       return True
+               else:
+                       img = self.smsPicture
+                       isSMS = False
+                       counter = self.missed
+                       if self.msgType == "SMS":
+                               counter = self.missedSMS
+                               isSMS = True
+                       index = self.getMissedCallsCount(isSMS) - counter - 1
+                       if index >= 5:
+                               index = 5
+                               if index < 0
+                                       index = 0
+                       if self.msgType != "Both":
+                               img = self.imgList[index]
+                       self.toShow = True
+                       self.set_status_area_icon(img)
+                       return True
+               
+hd_plugin_type = CallNotify
+
diff --git a/src/usr/share/CallNotify/1.png b/src/usr/share/CallNotify/1.png
new file mode 100644 (file)
index 0000000..6728403
Binary files /dev/null and b/src/usr/share/CallNotify/1.png differ
diff --git a/src/usr/share/CallNotify/2.png b/src/usr/share/CallNotify/2.png
new file mode 100644 (file)
index 0000000..b7f2f0c
Binary files /dev/null and b/src/usr/share/CallNotify/2.png differ
diff --git a/src/usr/share/CallNotify/3.png b/src/usr/share/CallNotify/3.png
new file mode 100644 (file)
index 0000000..676efb4
Binary files /dev/null and b/src/usr/share/CallNotify/3.png differ
diff --git a/src/usr/share/CallNotify/4.png b/src/usr/share/CallNotify/4.png
new file mode 100644 (file)
index 0000000..52b8b0b
Binary files /dev/null and b/src/usr/share/CallNotify/4.png differ
diff --git a/src/usr/share/CallNotify/5.png b/src/usr/share/CallNotify/5.png
new file mode 100644 (file)
index 0000000..60357ba
Binary files /dev/null and b/src/usr/share/CallNotify/5.png differ
diff --git a/src/usr/share/CallNotify/more.png b/src/usr/share/CallNotify/more.png
new file mode 100644 (file)
index 0000000..198aa7c
Binary files /dev/null and b/src/usr/share/CallNotify/more.png differ
diff --git a/src/usr/share/CallNotify/sms.png b/src/usr/share/CallNotify/sms.png
new file mode 100644 (file)
index 0000000..d8b144f
Binary files /dev/null and b/src/usr/share/CallNotify/sms.png differ
diff --git a/src/usr/share/application/hildon-status-menu/CallNotify.desktop b/src/usr/share/application/hildon-status-menu/CallNotify.desktop
new file mode 100644 (file)
index 0000000..8e0f54a
--- /dev/null
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Name=CallNotify
+Type=python
+X-Path=CallNotify
+