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: * Listens for changes within the Transport system.
13: *
14: * @package Swift
15: * @subpackage Events
16: *
17: * @author Chris Corbyn
18: */
19: interface Swift_Events_TransportChangeListener extends Swift_Events_EventListener
20: {
21: /**
22: * Invoked just before a Transport is started.
23: *
24: * @param Swift_Events_TransportChangeEvent $evt
25: */
26: public function beforeTransportStarted(Swift_Events_TransportChangeEvent $evt);
27:
28: /**
29: * Invoked immediately after the Transport is started.
30: *
31: * @param Swift_Events_TransportChangeEvent $evt
32: */
33: public function transportStarted(Swift_Events_TransportChangeEvent $evt);
34:
35: /**
36: * Invoked just before a Transport is stopped.
37: *
38: * @param Swift_Events_TransportChangeEvent $evt
39: */
40: public function beforeTransportStopped(Swift_Events_TransportChangeEvent $evt);
41:
42: /**
43: * Invoked immediately after the Transport is stopped.
44: *
45: * @param Swift_Events_TransportChangeEvent $evt
46: */
47: public function transportStopped(Swift_Events_TransportChangeEvent $evt);
48: }
49: