[licq-im/licq] 5e6341: api: new "pure" interface for plugins
GitHub <[email protected]> Sun, 03 Feb 2013 04:22:53 -0800
| Newsgroups | gmane.network.licq.cvs |
|---|---|
| Message-ID | <[email protected]> |
Branch: refs/heads/master
Home: https://github.com/licq-im/licq
Commit: 5e6341565825e85c21adb51ece86be5269b1bb45
https://github.com/licq-im/licq/commit/5e6341565825e85c21adb51ece86be5269b1bb45
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M licq/include/licq/plugin/CMakeLists.txt
A licq/include/licq/plugin/generalplugininterface.h
A licq/include/licq/plugin/plugininterface.h
A licq/include/licq/plugin/protocolplugininterface.h
Log Message:
-----------
api: new "pure" interface for plugins
Decouples the plugins from the core by not providing any implementation in the
interface. The plugins are expected to either implement the interface
themselves or use a help class for some of the work.
Commit: fa9224eeb8d50f58a5dd8042759a78e53911f094
https://github.com/licq-im/licq/commit/fa9224eeb8d50f58a5dd8042759a78e53911f094
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M licq/include/licq/plugin/CMakeLists.txt
A licq/include/licq/plugin/generalpluginhelper.h
A licq/include/licq/plugin/protocolpluginhelper.h
M licq/src/CMakeLists.txt
A licq/src/plugin/generalpluginhelper.cpp
A licq/src/plugin/protocolpluginhelper.cpp
A licq/src/plugin/tests/generalpluginhelpertest.cpp
A licq/src/plugin/tests/protocolpluginhelpertest.cpp
Log Message:
-----------
api: add new help classes for plugins
Implements part of the interface to make it easier to implement plugins.
Commit: e6f7c221aef49f860b9e78b70a5b6acfddaf832f
https://github.com/licq-im/licq/commit/e6f7c221aef49f860b9e78b70a5b6acfddaf832f
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M icq/src/icqprotocolplugin.cpp
M icq/src/icqprotocolplugin.h
Log Message:
-----------
icq: port to new api
Commit: f895ae82e33a3f1f506117f8ce7d8aa49bed4b60
https://github.com/licq-im/licq/commit/f895ae82e33a3f1f506117f8ce7d8aa49bed4b60
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M jabber/src/jabberplugin.cpp
M jabber/src/plugin.cpp
M jabber/src/plugin.h
Log Message:
-----------
jabber: port to new api
Commit: 5cdf317aef810fcc429dc30ecff931b9d38ef250
https://github.com/licq-im/licq/commit/5cdf317aef810fcc429dc30ecff931b9d38ef250
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M msn/src/msn.cpp
M msn/src/msn.h
M msn/src/plugin.cpp
Log Message:
-----------
msn: port to new api
Commit: 10e33b47f5def014d5df07cbaf441e6383294856
https://github.com/licq-im/licq/commit/10e33b47f5def014d5df07cbaf441e6383294856
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M aosd/src/plugin.cpp
M aosd/src/plugin.h
Log Message:
-----------
aosd: port to new api
Commit: ff9719a43b2396bc4744d0dede985cd3625df71d
https://github.com/licq-im/licq/commit/ff9719a43b2396bc4744d0dede985cd3625df71d
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M auto-reply/src/autoreply.cpp
M auto-reply/src/autoreply.h
M auto-reply/src/main.cpp
Log Message:
-----------
auto-reply: port to new api
Commit: 074d0e2771b5472e1dd737c2f64ac2578ab652e3
https://github.com/licq-im/licq/commit/074d0e2771b5472e1dd737c2f64ac2578ab652e3
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M forwarder/src/forwarder.cpp
M forwarder/src/forwarder.h
M forwarder/src/main.cpp
Log Message:
-----------
forwarder: port to new api
Commit: 5dc827734c03ff2cbeaf3ffdcea969ae76baa3d8
https://github.com/licq-im/licq/commit/5dc827734c03ff2cbeaf3ffdcea969ae76baa3d8
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M osd/src/licq-osd.cpp
M osd/src/licq-osd.h
M osd/src/plugin.cpp
Log Message:
-----------
osd: port to new api
Commit: 21fe2b286994337efe579a16234734827406fcf4
https://github.com/licq-im/licq/commit/21fe2b286994337efe579a16234734827406fcf4
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M qt4-gui/src/core/plugin.cpp
M qt4-gui/src/core/plugin.h
M qt4-gui/src/core/signalmanager.cpp
Log Message:
-----------
qt4-gui: port to new api
Commit: 8dfa7b6e564fe314b7afdc611b34ea882bd39647
https://github.com/licq-im/licq/commit/8dfa7b6e564fe314b7afdc611b34ea882bd39647
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M rms/src/main.cpp
M rms/src/rms.cpp
M rms/src/rms.h
Log Message:
-----------
rms: port to new api
Commit: 931be089cf166843a57ba06b79448fd5decc7cce
https://github.com/licq-im/licq/commit/931be089cf166843a57ba06b79448fd5decc7cce
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M licq/doc/CHANGELOG
M licq/include/licq/plugin/generalplugin.h
M licq/include/licq/plugin/plugin.h
M licq/include/licq/plugin/pluginmanager.h
M licq/include/licq/plugin/protocolplugin.h
M licq/src/plugin/generalplugin.cpp
M licq/src/plugin/generalplugin.h
M licq/src/plugin/plugin.cpp
M licq/src/plugin/plugin.h
M licq/src/plugin/pluginmanager.cpp
M licq/src/plugin/pluginmanager.h
M licq/src/plugin/protocolplugin.cpp
M licq/src/plugin/protocolplugin.h
M licq/src/plugin/tests/generalplugintest.cpp
M licq/src/plugin/tests/plugintest.cpp
M licq/src/plugin/tests/protocolplugintest.cpp
Log Message:
-----------
core: implement new api for handling plugins
Plugins implement one of the interfaces GeneralPluginInterface or
ProtocolPluginInterface depending on type. The instance implementing this is
separate from the instance of Licq::GeneralPlugin or Licq::ProtocolPlugin that
provides the interface to the plugin for other plugins.
Both Licq::GeneralPlugin and Licq::ProtocolPlugin are extended by
LicqDaemon::GeneralPlugin and LicqDaemon::ProtocolPlugin respectively to
provide an extended interface for internal use in plugin manager.
This provides a cleaner separation between plugins and the core.
Commit: 55e6d91be35cd96bb2b782c076f051058dfd4d73
https://github.com/licq-im/licq/commit/55e6d91be35cd96bb2b782c076f051058dfd4d73
Author: Erik Johansson <[email protected]>
Date: 2013-01-26 (Sat, 26 Jan 2013)
Changed paths:
M licq/include/licq/plugin/CMakeLists.txt
R licq/include/licq/plugin/generalbase.h
R licq/include/licq/plugin/protocolbase.h
Log Message:
-----------
api: remove old plugin api headers
Commit: 676a8d3f03932a8b5f8d6ec304192430fbc358e9
https://github.com/licq-im/licq/commit/676a8d3f03932a8b5f8d6ec304192430fbc358e9
Author: Erik Johansson <[email protected]>
Date: 2013-01-29 (Tue, 29 Jan 2013)
Changed paths:
M licq/include/licq/icq/icq.h
M licq/include/licq/plugin/generalplugin.h
M licq/include/licq/plugin/plugin.h
M licq/include/licq/plugin/protocolplugin.h
M licq/src/fifo.cpp
M licq/src/plugin/plugin.cpp
M licq/src/plugin/plugin.h
M licq/src/plugin/tests/plugintest.cpp
M qt4-gui/src/core/systemmenu.cpp
M qt4-gui/src/core/usermenu.cpp
M qt4-gui/src/dialogs/adduserdlg.cpp
M qt4-gui/src/dialogs/chatdlg.cpp
M qt4-gui/src/dialogs/editcategorydlg.cpp
M qt4-gui/src/dialogs/filedlg.cpp
M qt4-gui/src/dialogs/mmsenddlg.cpp
M qt4-gui/src/dialogs/phonedlg.cpp
M qt4-gui/src/dialogs/randomchatdlg.cpp
M qt4-gui/src/dialogs/searchuserdlg.cpp
M qt4-gui/src/dialogs/showawaymsgdlg.cpp
M qt4-gui/src/userdlg/info.cpp
M qt4-gui/src/userdlg/owner.cpp
M qt4-gui/src/userevents/usersendevent.cpp
M qt4-gui/src/userevents/userviewevent.cpp
M rms/src/rms.cpp
Log Message:
-----------
Support casting plugin to internal interface
To get access to the internal ICQ interface, one can now write:
Licq::IcqProtocol::Ptr icq = plugin_internal_cast<Licq::IcqProtocol>(
Licq::gPluginManager.getProtocolPlugin(LICQ_PPID));
Instead of the old way:
Licq::ProtocolPlugin::Ptr icqProtocol(Licq::gPluginManager.getProtocolPlugin(LICQ_PPID));
Licq::IcqProtocol* icq = dynamic_cast<Licq::IcqProtocol*>(icqProtocol.get());
It was neccessary to keep hold of icqProtocol until one was done with icq to be
guaranteed that the protocol hadn't been unloaded. This is now handled
automatically.
Commit: 339a7b9164593e9aa36257c5ac5333514ad8b4da
https://github.com/licq-im/licq/commit/339a7b9164593e9aa36257c5ac5333514ad8b4da
Author: Erik Johansson <[email protected]>
Date: 2013-01-29 (Tue, 29 Jan 2013)
Changed paths:
M qt4-gui/src/core/CMakeLists.txt
M qt4-gui/src/core/plugin.cpp
M qt4-gui/src/core/plugin.h
M qt4-gui/src/core/signalmanager.cpp
M qt4-gui/src/core/signalmanager.h
Log Message:
-----------
qt4-gui: use Qt signals instead of plugin helper to handle signals/events
If a Qt signal is sent to a object that lives in another thread, the signal is
queued in that object's event loop and delivered in that thread.
Since this was what the helper class did, but using a std::queue and a pipe, it
could be removed in favour of the native solution.
Commit: 97bb7fe1d77fad3d415c1dbff51177d89295f1c7
https://github.com/licq-im/licq/commit/97bb7fe1d77fad3d415c1dbff51177d89295f1c7
Author: Erik Johansson <[email protected]>
Date: 2013-02-02 (Sat, 02 Feb 2013)
Changed paths:
M licq/src/contactlist/user.cpp
M licq/src/fifo.cpp
M qt4-gui/src/userdlg/info.cpp
Log Message:
-----------
Merge branch 'master' into refactor-plugin-api
Commit: 7e149a5b2963e3a0c9a8dd6d80452157b3fbfc28
https://github.com/licq-im/licq/commit/7e149a5b2963e3a0c9a8dd6d80452157b3fbfc28
Author: Erik Johansson <[email protected]>
Date: 2013-02-02 (Sat, 02 Feb 2013)
Changed paths:
M licq/src/fifo.cpp
M qt4-gui/src/userdlg/info.cpp
Log Message:
-----------
Remove TODOs that have been fixed on master
Commit: 5cd4fb7b1b55445a7805a4f2326eb06d139230f3
https://github.com/licq-im/licq/commit/5cd4fb7b1b55445a7805a4f2326eb06d139230f3
Author: Erik Johansson <[email protected]>
Date: 2013-02-02 (Sat, 02 Feb 2013)
Changed paths:
M licq/src/plugin/pluginmanager.cpp
Log Message:
-----------
core: use boost::make_shared when creating plugin instances
Commit: 3325b3558fd74ab12ba04414e69f354fac29f715
https://github.com/licq-im/licq/commit/3325b3558fd74ab12ba04414e69f354fac29f715
Author: Erik Johansson <[email protected]>
Date: 2013-02-03 (Sun, 03 Feb 2013)
Changed paths:
M aosd/src/plugin.cpp
M aosd/src/plugin.h
M auto-reply/src/autoreply.cpp
M auto-reply/src/autoreply.h
M auto-reply/src/main.cpp
M forwarder/src/forwarder.cpp
M forwarder/src/forwarder.h
M forwarder/src/main.cpp
M icq/src/icqprotocolplugin.cpp
M icq/src/icqprotocolplugin.h
M jabber/src/jabberplugin.cpp
M jabber/src/plugin.cpp
M jabber/src/plugin.h
M licq/doc/CHANGELOG
M licq/include/licq/icq/icq.h
M licq/include/licq/plugin/CMakeLists.txt
R licq/include/licq/plugin/generalbase.h
M licq/include/licq/plugin/generalplugin.h
A licq/include/licq/plugin/generalpluginhelper.h
A licq/include/licq/plugin/generalplugininterface.h
M licq/include/licq/plugin/plugin.h
A licq/include/licq/plugin/plugininterface.h
M licq/include/licq/plugin/pluginmanager.h
R licq/include/licq/plugin/protocolbase.h
M licq/include/licq/plugin/protocolplugin.h
A licq/include/licq/plugin/protocolpluginhelper.h
A licq/include/licq/plugin/protocolplugininterface.h
M licq/src/CMakeLists.txt
M licq/src/fifo.cpp
M licq/src/plugin/generalplugin.cpp
M licq/src/plugin/generalplugin.h
A licq/src/plugin/generalpluginhelper.cpp
M licq/src/plugin/plugin.cpp
M licq/src/plugin/plugin.h
M licq/src/plugin/pluginmanager.cpp
M licq/src/plugin/pluginmanager.h
M licq/src/plugin/protocolplugin.cpp
M licq/src/plugin/protocolplugin.h
A licq/src/plugin/protocolpluginhelper.cpp
A licq/src/plugin/tests/generalpluginhelpertest.cpp
M licq/src/plugin/tests/generalplugintest.cpp
M licq/src/plugin/tests/plugintest.cpp
A licq/src/plugin/tests/protocolpluginhelpertest.cpp
M licq/src/plugin/tests/protocolplugintest.cpp
M msn/src/msn.cpp
M msn/src/msn.h
M msn/src/plugin.cpp
M osd/src/licq-osd.cpp
M osd/src/licq-osd.h
M osd/src/plugin.cpp
M qt4-gui/src/core/CMakeLists.txt
M qt4-gui/src/core/plugin.cpp
M qt4-gui/src/core/plugin.h
M qt4-gui/src/core/signalmanager.cpp
M qt4-gui/src/core/signalmanager.h
M qt4-gui/src/core/systemmenu.cpp
M qt4-gui/src/core/usermenu.cpp
M qt4-gui/src/dialogs/adduserdlg.cpp
M qt4-gui/src/dialogs/chatdlg.cpp
M qt4-gui/src/dialogs/editcategorydlg.cpp
M qt4-gui/src/dialogs/filedlg.cpp
M qt4-gui/src/dialogs/mmsenddlg.cpp
M qt4-gui/src/dialogs/phonedlg.cpp
M qt4-gui/src/dialogs/randomchatdlg.cpp
M qt4-gui/src/dialogs/searchuserdlg.cpp
M qt4-gui/src/dialogs/showawaymsgdlg.cpp
M qt4-gui/src/userdlg/info.cpp
M qt4-gui/src/userdlg/owner.cpp
M qt4-gui/src/userevents/usersendevent.cpp
M qt4-gui/src/userevents/userviewevent.cpp
M rms/src/main.cpp
M rms/src/rms.cpp
M rms/src/rms.h
Log Message:
-----------
Merge pull request #25 from licq-im/refactor-plugin-api
Refactor plugin API
Compare: https://github.com/licq-im/licq/compare/ee94a25da082...3325b3558fd7
--
---
You received this message because you are subscribed to the Google Groups "Licq Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.