Make Notification
factory function a member of NotificationPresenter
so that we can create different types of notifications based on runtime conditions.
This commit is contained in:
parent
0981807261
commit
e6a30388da
12 changed files with 22 additions and 26 deletions
|
@ -47,16 +47,10 @@ class Notification {
|
|||
protected:
|
||||
Notification(NotificationDelegate* delegate,
|
||||
NotificationPresenter* presenter);
|
||||
public:
|
||||
virtual ~Notification();
|
||||
|
||||
private:
|
||||
friend class NotificationPresenter;
|
||||
|
||||
// Can only be called by NotificationPresenter, the caller is responsible of
|
||||
// freeing the returned instance.
|
||||
static Notification* Create(NotificationDelegate* delegate,
|
||||
NotificationPresenter* presenter);
|
||||
|
||||
NotificationDelegate* delegate_;
|
||||
NotificationPresenter* presenter_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue