equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #include "cpplugincommon.h" |
18 #include "cpplugincommon.h" |
19 #include "cppluginlogging.h" |
19 #include "cppluginlogging.h" |
20 #include <hbglobal.h> |
20 #include <hbglobal.h> |
21 #include <cppluginplatinterface.h> |
|
22 #include <QPluginLoader> |
|
23 |
21 |
24 |
|
25 CpPluginPlatInterface* Tools::loadCpPlugin(const QString& name) |
|
26 { |
|
27 QPluginLoader loader("C:/ControlPanel/debug/bin/"+name+".dll"); |
|
28 return qobject_cast<CpPluginPlatInterface*> (loader.instance()); |
|
29 } |
|
30 |
|
31 bool Tools::unloadCpPlugin(const QString& name) |
|
32 { |
|
33 QPluginLoader loader("C:/ControlPanel/debug/bin/"+name+".dll"); |
|
34 return loader.unload(); |
|
35 } |
|
36 |
22 |
37 bool Tools::voipSupported() |
23 bool Tools::voipSupported() |
38 { |
24 { |
39 DPRINT << "DUMMY WRAPPER"; |
25 DPRINT << "DUMMY WRAPPER"; |
40 return true; |
26 return true; |