~ralsina/ubuntuone-client/fix_712674

« back to all changes in this revision

Viewing changes to ubuntuone/status/messaging.py

  • Committer: Tarmac
  • Author(s): eric.casteleijn at canonical
  • Date: 2011-02-10 18:23:32 UTC
  • mfrom: (843.2.8 lp-702055)
  • Revision ID: tarmac-20110210182332-u1tx2s9jiwpob5z5
This adds notifications and messaging on new incoming shares and UDFs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
    __metaclass__ = ABCMeta
29
29
 
 
30
    # pylint: disable=R0913
30
31
    @abstractmethod
31
 
    def show_message(self, sender, callback, message_time=None,
 
32
    def show_message(self, sender, callback=None, message_time=None,
32
33
                     message_count=None, icon=None):
33
34
        """Show a message in the messaging menu."""
 
35
    # pylint: enable=R0913
34
36
 
35
37
    @abstractmethod
36
 
    def update_count(self, sender, new_count):
 
38
    def update_count(self, sender, add_count):
37
39
        """Update the count for an existing indicator."""