Merge branch 'master' of ssh://drop.maemo.org/git/mdictionary
[mdictionary] / trunk / src / base / backbone / backbone.cpp
index 4d297f4..ce169e9 100644 (file)
@@ -51,6 +51,8 @@ void Backbone::init() {
    connect(&_timerSearch, SIGNAL(timeout()), this, SLOT(translationReady()));
    connect(&_timerHtmlSearch, SIGNAL(timeout()), this,
            SLOT(htmlTranslationReady()));
+
+   _history = new History(5, this);
 }
 
 Backbone::Backbone(QString pluginPath, QString configPath, QObject *parent)
@@ -117,8 +119,8 @@ QList<CommonDictInterface* > Backbone::getPlugins() {
 
 
 
-QList<QString> Backbone::getHistory() {
-    //TODO code needed
+History* Backbone::history() {
+    return _history;
 }