~didrocks/ubuntuone-client/use_result_var

« back to all changes in this revision

Viewing changes to ubuntuone/status/notification.py

  • Committer: Bazaar Package Importer
  • Author(s): Rodney Dawes
  • Date: 2011-02-11 16:18:11 UTC
  • mto: This revision was merged to the branch mainline in revision 67.
  • Revision ID: james.westby@ubuntu.com-20110211161811-n18dj9lde7dxqjzr
Tags: upstream-1.5.4
ImportĀ upstreamĀ versionĀ 1.5.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
    __metaclass__ = ABCMeta
29
29
 
30
 
    # pylint: disable=W0613,R0201
31
30
    @abstractmethod
32
 
    def send_notification(self, title, message, icon, append):
 
31
    def send_notification(self, title, message, icon=None, append=False):
33
32
        """Send a notification to the end user."""
34
 
        return NotImplemented
35
 
    # pylint: enable=W0613,R0201
 
33
 
 
34
    @abstractmethod
 
35
    def update_notification(self, notification, new_title, new_message,
 
36
                            new_icon=None):
 
37
        """Update the notification with a new message body."""