Make UEFI boot-platform build again
[haiku.git] / headers / os / mail / MailDaemon.h
blobe2434d88c259d631d321c8c5a9544dbc150ccc07
1 /*
2 * Copyright 2012, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _MAIL_DAEMON_H
6 #define _MAIL_DAEMON_H
9 #include <E-mail.h>
10 #include <Messenger.h>
13 enum {
14 B_MAIL_BODY_FETCHED = '_Mbf'
18 class BMailDaemon {
19 public:
20 BMailDaemon();
21 virtual ~BMailDaemon();
23 bool IsRunning();
25 status_t CheckMail(int32 accountID = -1);
26 status_t CheckAndSendQueuedMail(int32 accountID = -1);
28 status_t SendQueuedMail();
30 int32 CountNewMessages(
31 bool waitForFetchCompletion = false);
32 status_t MarkAsRead(int32 account, const entry_ref& ref,
33 read_flags flag = B_READ);
34 status_t FetchBody(const entry_ref& ref,
35 BMessenger* listener = NULL);
37 status_t Quit();
38 status_t Launch();
40 private:
41 BMessenger fDaemon;
45 #endif // _MAIL_DAEMON_H