1: <?php
2:
3: /*
4: * This file is part of SwiftMailer.
5: * (c) 2004-2009 Chris Corbyn
6: *
7: * For the full copyright and license information, please view the LICENSE
8: * file that was distributed with this source code.
9: */
10:
11: /**
12: * Pop3Connection interface for connecting and disconnecting to a POP3 host.
13: *
14: * @package Swift
15: * @subpackage Plugins
16: *
17: * @author Chris Corbyn
18: */
19: interface Swift_Plugins_Pop_Pop3Connection
20: {
21: /**
22: * Connect to the POP3 host and throw an Exception if it fails.
23: *
24: * @throws Swift_Plugins_Pop_Pop3Exception
25: */
26: public function connect();
27:
28: /**
29: * Disconnect from the POP3 host and throw an Exception if it fails.
30: *
31: * @throws Swift_Plugins_Pop_Pop3Exception
32: */
33: public function disconnect();
34: }
35: