removeAccents refactorized out to the AccentsNormalizer class
[mdictionary] / trunk / src / base / backbone / Bookmarks.h
index ddee782..6f8257c 100644 (file)
@@ -42,6 +42,7 @@
 #include <QDebug>
 #include "../../includes/settings.h"
 #include "../../includes/translation.h"
+#include "../../includes/AccentsNormalizer.h"
 class BookmarkTranslation;
 
 
@@ -52,8 +53,7 @@ class BookmarkTranslation;
   special list with cached translations from all available dictionaries so
   You can search for them quickly even when You delete coresponding dict.
   */
-class Bookmarks
-{
+class Bookmarks : public AccentsNormalizer {
 public:
     Bookmarks();
 
@@ -97,11 +97,9 @@ public:
 
 private:
     bool checkAndCreateDb();
-    void initAccents();
 
     
     QString dbName;
-    QString removeAccents(QString);
     QSqlDatabase getDbCnx(QString dbName);
     QMap<QChar, QRegExp> letters;
     QRegExp noLetter;