ferencd@0: // ferencd@0: // VMime library (http://www.vmime.org) ferencd@0: // Copyright (C) 2002-2013 Vincent Richard ferencd@0: // ferencd@0: // This program is free software; you can redistribute it and/or ferencd@0: // modify it under the terms of the GNU General Public License as ferencd@0: // published by the Free Software Foundation; either version 3 of ferencd@0: // the License, or (at your option) any later version. ferencd@0: // ferencd@0: // This program is distributed in the hope that it will be useful, ferencd@0: // but WITHOUT ANY WARRANTY; without even the implied warranty of ferencd@0: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ferencd@0: // General Public License for more details. ferencd@0: // ferencd@0: // You should have received a copy of the GNU General Public License along ferencd@0: // with this program; if not, write to the Free Software Foundation, Inc., ferencd@0: // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ferencd@0: // ferencd@0: // Linking this library statically or dynamically with other modules is making ferencd@0: // a combined work based on this library. Thus, the terms and conditions of ferencd@0: // the GNU General Public License cover the whole combination. ferencd@0: // ferencd@0: ferencd@0: #include "vmime/net/pop3/POP3Connection.hpp" ferencd@0: #include "vmime/net/pop3/POP3Store.hpp" ferencd@0: ferencd@0: ferencd@0: class POP3TestStore : public vmime::net::pop3::POP3Store ferencd@0: { ferencd@0: public: ferencd@0: ferencd@0: POP3TestStore() ferencd@0: : POP3Store(vmime::make_shared (), ferencd@0: vmime::shared_ptr ()) ferencd@0: { ferencd@0: } ferencd@0: }; ferencd@0: ferencd@0: ferencd@0: class POP3ConnectionTest : public vmime::net::pop3::POP3Connection ferencd@0: { ferencd@0: public: ferencd@0: ferencd@0: POP3ConnectionTest(vmime::shared_ptr socket, ferencd@0: vmime::shared_ptr timeoutHandler) ferencd@0: : POP3Connection(vmime::make_shared (), ferencd@0: vmime::shared_ptr ()), ferencd@0: m_socket(socket), m_timeoutHandler(timeoutHandler) ferencd@0: { ferencd@0: } ferencd@0: ferencd@0: vmime::shared_ptr getSocket() ferencd@0: { ferencd@0: return m_socket; ferencd@0: } ferencd@0: ferencd@0: vmime::shared_ptr getTimeoutHandler() ferencd@0: { ferencd@0: return m_timeoutHandler; ferencd@0: } ferencd@0: ferencd@0: private: ferencd@0: ferencd@0: vmime::shared_ptr m_socket; ferencd@0: vmime::shared_ptr m_timeoutHandler; ferencd@0: };