Bookamarks adding, removing, searching (basic), listing -> ready
[mdictionary] / trunk / src / base / backbone / backbone.cpp
index 6270791..f15e1cd 100644 (file)
@@ -72,6 +72,8 @@ void Backbone::init() {
    connect(&_resultWatcher, SIGNAL(finished()), this, SLOT(translationReady()));
    connect(&_htmlResultWatcher, SIGNAL(finished()), this,
            SLOT(htmlTranslationReady()));
+   connect(&_bookmarkWatcher, SIGNAL(finished()), this,
+           SLOT(bookmarksListReady()));
 
    QThreadPool::globalInstance()->setMaxThreadCount(
            QThreadPool::globalInstance()->maxThreadCount()+1);
@@ -452,3 +454,10 @@ QList<CommonDictInterface*> Backbone::activeDicts() {
     return res;
 
 }
+
+
+
+void Backbone::bookmarksListReady() {
+   _bookmarksResult = _innerBookmarks.result();
+   Q_EMIT bookmarksReady();
+}