2 * Copyright 2011-2012, Haiku, Inc. All rights reserved.
3 * Copyright 2011, Clemens Zeidler <haiku@clemens-zeidler.de>
4 * Distributed under the terms of the MIT License.
6 #ifndef DEFAULT_NOTIFIER_H
7 #define DEFAULT_NOTIFIER_H
10 #include <Notification.h>
13 #include "MailProtocol.h"
15 #include "ErrorLogWindow.h"
16 #include "StatusWindow.h"
19 class DefaultNotifier
: public BMailNotifier
{
21 DefaultNotifier(const char* accountName
,
22 bool inbound
, ErrorLogWindow
* errorWindow
,
26 BMailNotifier
* Clone();
28 void ShowError(const char* error
);
29 void ShowMessage(const char* message
);
31 void SetTotalItems(uint32 items
);
32 void SetTotalItemsSize(uint64 size
);
33 void ReportProgress(uint32 messages
, uint64 bytes
,
34 const char* message
= NULL
);
35 void ResetProgress(const char* message
= NULL
);
38 void _NotifyIfAllowed(int timeout
= 0);
43 ErrorLogWindow
* fErrorWindow
;
44 BNotification fNotification
;
54 #endif // DEFAULT_NOTIFIER_H