'Return a list of notifications in chronological order.
Note that this function is consuming, so consecutive calls
will yield different results.'

def getAllNotifications(self):

    notifs = []
    notif = self.getNotification()
    while notif:
        notifs.append(notif)
        notif = self.getNotification()
    return notifs
