Overhaul notifications to fix various bugs.

Fixes #539, #564 and #568.
This commit is contained in:
akwizgran
2016-08-02 16:48:16 +01:00
parent 98337a16ec
commit dbdf567d4e
9 changed files with 344 additions and 101 deletions

View File

@@ -2,26 +2,37 @@ package org.briarproject.android.api;
import org.briarproject.api.sync.GroupId;
/** Manages notifications for private messages and forum posts. */
/**
* Manages notifications for private messages, forum posts, blog posts and
* introductions.
*/
public interface AndroidNotificationManager {
void showPrivateMessageNotification(GroupId g);
void clearPrivateMessageNotification(GroupId g);
void showForumPostNotification(GroupId g);
void clearAllContactNotifications();
void clearForumPostNotification(GroupId g);
void showBlogPostNotification(GroupId g);
void clearAllForumPostNotifications();
void clearBlogPostNotification();
void clearBlogPostNotification(GroupId g);
void clearAllBlogPostNotifications();
void blockNotification(GroupId g);
void unblockNotification(GroupId g);
void blockBlogNotification();
void blockAllContactNotifications();
void unblockBlogNotification();
void unblockAllContactNotifications();
void blockAllForumPostNotifications();
void unblockAllForumPostNotifications();
void blockAllBlogPostNotifications();
void unblockAllBlogPostNotifications();
}