Module notify
[hide private]
[frames] | no frames]

Module notify

source code

Classes [hide private]
  NotificationResponseManager
Collect references to pending DesktopNotifications and manages there signalling.
  DesktopNotification
A DesktopNotification that interfaces with D-Bus via the Desktop Notification Specification
Functions [hide private]
 
get_show_in_roster(event, account, contact, session=None)
Return True if this event must be shown in roster, else False
source code
 
get_show_in_systray(event, account, contact, type_=None)
Return True if this event must be shown in systray, else False
source code
 
get_advanced_notification(event, account, contact)
Returns the number of the first (top most) advanced notification else None
source code
 
notify(event, jid, account, parameters, advanced_notif_num=None)
Check what type of notifications we want, depending on basic and the advanced configuration of notifications and do these notifications; advanced_notif_num holds the number of the first (top most) advanced notification
source code
 
popup(event_type, jid, account, msg_type='', path_to_image=None, title=None, text=None)
Notify a user of an event.
source code
 
on_pynotify_notification_clicked(notification, action) source code
Variables [hide private]
  USER_HAS_PYNOTIFY = False
  notification_response_manager = NotificationResponseManager()

Imports: os, time, dialogs, gobject, gtkgui_helpers, gtk, gajim, helpers, dbus_support, dbus, pynotify


Function Details [hide private]

get_show_in_roster(event, account, contact, session=None)

source code 
Return True if this event must be shown in roster, else False

get_show_in_systray(event, account, contact, type_=None)

source code 
Return True if this event must be shown in systray, else False

get_advanced_notification(event, account, contact)

source code 
Returns the number of the first (top most) advanced notification else None

notify(event, jid, account, parameters, advanced_notif_num=None)

source code 
Check what type of notifications we want, depending on basic and the advanced configuration of notifications and do these notifications; advanced_notif_num holds the number of the first (top most) advanced notification

popup(event_type, jid, account, msg_type='', path_to_image=None, title=None, text=None)

source code 
Notify a user of an event. It first tries to a valid implementation of the Desktop Notification Specification. If that fails, then we fall back to the older style PopupNotificationWindow method

on_pynotify_notification_clicked(notification, action)

source code 

Variables Details [hide private]

USER_HAS_PYNOTIFY

Value:
False

notification_response_manager

Value:
NotificationResponseManager()