1 /* 2 * Copyright 2011, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include "IMAPConnectionWorker.h" 8 9 10 IMAPConnectionWorker::IMAPConnectionWorker(IMAP::Protocol& protocol, 11 StringList& mailboxes) 12 : 13 fProtocol(protocol) 14 { 15 } 16 17 18 IMAPConnectionWorker::~IMAPConnectionWorker() 19 { 20 } 21 22 23 status_t 24 IMAPConnectionWorker::Start(bool usePush) 25 { 26 fThread = spawn_thread(&_Worker, "imap connection worker", 27 B_NORMAL_PRIORITY, this); 28 if (fThread < 0) 29 return fThread; 30 31 resume_thread(fThread); 32 return B_OK; 33 } 34 35 36 void 37 IMAPConnectionWorker::Stop() 38 { 39 } 40 41 42 status_t 43 IMAPConnectionWorker::_Worker() 44 { 45 return B_OK; 46 } 47 48 49 /*static*/ status_t 50 IMAPConnectionWorker::_Worker(void* self) 51 { 52 return ((IMAPConnectionWorker*)self)->_Worker(); 53 } 54