From c60f83369f0e5388b0003d3e604326587ebcee12 Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Sat, 16 Oct 2004 17:21:26 +0000 Subject: [PATCH] Renamed BMailRemoteStorageProtocol to BRemoteMailStorageProtocol. Because I like it better. This should complete the API modifications from the Haiku import. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9379 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../mail_daemon/RemoteStorageProtocol.h | 6 +++--- .../inbound_protocols/imap/imap_client.cpp | 4 ++-- src/kits/mail/RemoteStorageProtocol.cpp | 18 +++++++++--------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/headers/os/add-ons/mail_daemon/RemoteStorageProtocol.h b/headers/os/add-ons/mail_daemon/RemoteStorageProtocol.h index 35cac91895..9064cbbe5b 100644 --- a/headers/os/add-ons/mail_daemon/RemoteStorageProtocol.h +++ b/headers/os/add-ons/mail_daemon/RemoteStorageProtocol.h @@ -8,10 +8,10 @@ #include #include -class BMailRemoteStorageProtocol : public BMailProtocol { +class BRemoteMailStorageProtocol : public BMailProtocol { public: - BMailRemoteStorageProtocol(BMessage *settings, BMailChainRunner *runner); - virtual ~BMailRemoteStorageProtocol(); + BRemoteMailStorageProtocol(BMessage *settings, BMailChainRunner *runner); + virtual ~BRemoteMailStorageProtocol(); virtual status_t GetMessage(const char *mailbox, const char *message, BPositionIO **, BMessage *headers) = 0; virtual status_t AddMessage(const char *mailbox, BPositionIO *data, BString *id) = 0; diff --git a/src/add-ons/mail_daemon/inbound_protocols/imap/imap_client.cpp b/src/add-ons/mail_daemon/inbound_protocols/imap/imap_client.cpp index c0d36cdd6c..c0b20b863f 100644 --- a/src/add-ons/mail_daemon/inbound_protocols/imap/imap_client.cpp +++ b/src/add-ons/mail_daemon/inbound_protocols/imap/imap_client.cpp @@ -47,7 +47,7 @@ struct mailbox_info { BString server_mb_name; }; -class IMAP4Client : public BMailRemoteStorageProtocol { +class IMAP4Client : public BRemoteMailStorageProtocol { public: IMAP4Client(BMessage *settings, BMailChainRunner *run); virtual ~IMAP4Client(); @@ -118,7 +118,7 @@ class NoopWorker : public BHandler { time_t last_run; }; -IMAP4Client::IMAP4Client(BMessage *settings, BMailChainRunner *run) : BMailRemoteStorageProtocol(settings,run), noop(NULL), commandCount(0), net(-1), selected_mb(""), force_reselect(false) { +IMAP4Client::IMAP4Client(BMessage *settings, BMailChainRunner *run) : BRemoteMailStorageProtocol(settings,run), noop(NULL), commandCount(0), net(-1), selected_mb(""), force_reselect(false) { err = B_OK; mb_root = settings->FindString("root"); diff --git a/src/kits/mail/RemoteStorageProtocol.cpp b/src/kits/mail/RemoteStorageProtocol.cpp index e49907224f..fd014fccba 100644 --- a/src/kits/mail/RemoteStorageProtocol.cpp +++ b/src/kits/mail/RemoteStorageProtocol.cpp @@ -8,7 +8,7 @@ #include -class _EXPORT BMailRemoteStorageProtocol; +class _EXPORT BRemoteMailStorageProtocol; #include #include @@ -19,7 +19,7 @@ void GetSubFolders(BDirectory *of, BStringList *folders, const char *prepend = " class UpdateHandler : public BHandler { public: - UpdateHandler(BMailRemoteStorageProtocol *prot, const char *dest) : _prot(prot), _dest(dest) { + UpdateHandler(BRemoteMailStorageProtocol *prot, const char *dest) : _prot(prot), _dest(dest) { node_ref ref; _dest.GetNodeRef(&ref); dest_node = ref.node; @@ -231,7 +231,7 @@ class UpdateHandler : public BHandler { private: - BMailRemoteStorageProtocol *_prot; + BRemoteMailStorageProtocol *_prot; BDirectory _dest; map nodes; @@ -258,19 +258,19 @@ void GetSubFolders(BDirectory *of, BStringList *folders, const char *prepend) { } } -BMailRemoteStorageProtocol::BMailRemoteStorageProtocol(BMessage *settings, BMailChainRunner *runner) : BMailProtocol(settings,runner) { +BRemoteMailStorageProtocol::BRemoteMailStorageProtocol(BMessage *settings, BMailChainRunner *runner) : BMailProtocol(settings,runner) { handler = new UpdateHandler(this,runner->Chain()->MetaData()->FindString("path")); runner->AddHandler(handler); runner->PostMessage('INIT',handler); } -BMailRemoteStorageProtocol::~BMailRemoteStorageProtocol() { +BRemoteMailStorageProtocol::~BRemoteMailStorageProtocol() { delete handler; } } //----BMailProtocol stuff -status_t BMailRemoteStorageProtocol::GetMessage( +status_t BRemoteMailStorageProtocol::GetMessage( const char* uid, BPositionIO** out_file, BMessage* out_headers, BPath* out_folder_location) { @@ -285,7 +285,7 @@ status_t BMailRemoteStorageProtocol::GetMessage( return GetMessage(folder.String(),id.String(),out_file,out_headers); } -status_t BMailRemoteStorageProtocol::DeleteMessage(const char* uid) { +status_t BRemoteMailStorageProtocol::DeleteMessage(const char* uid) { BString folder(uid), id; { BString raw(uid); @@ -302,7 +302,7 @@ status_t BMailRemoteStorageProtocol::DeleteMessage(const char* uid) { return B_OK; } -void BMailRemoteStorageProtocol::SyncMailbox(const char *mailbox) { +void BRemoteMailStorageProtocol::SyncMailbox(const char *mailbox) { BPath path(runner->Chain()->MetaData()->FindString("path")); path.Append(mailbox); @@ -360,7 +360,7 @@ void BMailRemoteStorageProtocol::SyncMailbox(const char *mailbox) { } } -/*status_t BMailRemoteStorageProtocol::MoveMessage(const char *mailbox, const char *to_mailbox, BString *message) { +/*status_t BRemoteMailStorageProtocol::MoveMessage(const char *mailbox, const char *to_mailbox, BString *message) { BString new_id(*message); status_t err; if ((err = CopyMessage(mailbox,to_mailbox,&new_id)) < B_OK)