void Backbone::init() {
_searchLimit = 10;
_interval = 250; //msec
- _pluginPath = "../lib/mdictionary/";
+ _pluginPath = "/usr/lib/mdictionary/";
loadPlugins();
if(!connect(&_timer, SIGNAL(timeout()), this, SLOT(translation())))
void Backbone::search(QString word) {
- //TODO add running searches in new threads
_timer.stop();
_result.clear();
_innerResult.clear();
_dicts[dict] = 1;
}
+ void Backbone::removeDictionary(CommonDictInterface *dict) {
+ _dicts.remove(dict);
+
+ }
+
void Backbone::quit() {
foreach(QString file, files) {
- QPluginLoader loader(file);
+ QPluginLoader loader(plug.absoluteFilePath(file));
if(!loader.load()) {
qDebug()<< file << " " << loader.errorString();
continue;