Added tests for history
[mdictionary] / trunk / src / includes / History.h
index ac0b1bf..df56199 100644 (file)
@@ -32,7 +32,7 @@ class History : public QObject
 {
     Q_OBJECT
 public:
-    explicit History(QObject *parent = 0);
+    explicit History(int maxSize = 5, QObject *parent = 0);
 
 Q_SIGNALS:
     void historyChanged(bool prevAvailable,
@@ -51,6 +51,10 @@ public:
 
     void setCurrentElement(int element);
 
+    int maxSize();
+
+    void setMaxSize(int size);
+
 private:
     QVector<QString> _history;
     int _maxSize;