OLD | NEW |
(Empty) | |
| 1 // Copyright 2004 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEBRTC_LIBJINGLE_XMPP_MODULE_H_ |
| 6 #define WEBRTC_LIBJINGLE_XMPP_MODULE_H_ |
| 7 |
| 8 #include "third_party/xmpp/xmppengine.h" |
| 9 |
| 10 namespace buzz { |
| 11 |
| 12 class XmppEngine; |
| 13 |
| 14 //! This is the base class for extension modules. |
| 15 //! An engine is registered with the module and the module then hooks the |
| 16 //! appropriate parts of the engine to implement that set of features. It is |
| 17 //! important to unregister modules before destructing the engine. |
| 18 class XmppModule { |
| 19 public: |
| 20 virtual ~XmppModule() {} |
| 21 |
| 22 //! Register the engine with the module. Only one engine can be associated |
| 23 //! with a module at a time. This method will return an error if there is |
| 24 //! already an engine registered. |
| 25 virtual XmppReturnStatus RegisterEngine(XmppEngine* engine) = 0; |
| 26 }; |
| 27 |
| 28 } |
| 29 #endif // WEBRTC_LIBJINGLE_XMPP_MODULE_H_ |
OLD | NEW |