remove dictionaryInfo() from translation interface
authorJakub Jaszczynski <j.j.jaszczynski@gmail.com>
Tue, 7 Sep 2010 08:15:13 +0000 (10:15 +0200)
committerJakub Jaszczynski <j.j.jaszczynski@gmail.com>
Tue, 7 Sep 2010 08:15:13 +0000 (10:15 +0200)
src/include/translation.h
src/mdictionary/backbone/BookmarkTranslations.h
src/plugins/google/TranslationGoogle.cpp
src/plugins/google/TranslationGoogle.h
src/plugins/xdxf/TranslationXdxf.cpp
src/plugins/xdxf/TranslationXdxf.h
tests/mDictionaryTests/TranslationMock.h

index 20e1453..7e9ebf7 100644 (file)
@@ -51,10 +51,6 @@ class Translation {
         return this->key()==translation->key();
     }
 
-    /*! \returns dictionary information (plugin name, languages, <logo> etc)\
-         to be displayed in translation table header */
-    virtual QString dictionaryInfo() const = 0;
-
     //! \return parsed raw format into html
     virtual QString toHtml() const = 0;
 
index 6931ce9..61cb55e 100644 (file)
@@ -50,12 +50,6 @@ public:
         return _key;
     }
 
-    /*! \returns dictionary information (plugin name, languages, <logo> etc)\
-        to be displayed in translation table header*/
-    QString dictionaryInfo() const {
-        return _dictionaryInfo;
-    }
-
     //! \return parsed raw format into html
     QString toHtml() const {
         if(!_key.size() || !_bookmarks)
index 5d1d5c8..1167220 100644 (file)
@@ -43,15 +43,10 @@ TranslationGoogle::~TranslationGoogle(){
     ;
 }
 
-
 QString TranslationGoogle::key() const{
     return _key;
 }
 
-QString TranslationGoogle::dictionaryInfo() const {
-    return _dictionaryInfo;
-}
-
 QString TranslationGoogle::toHtml() const {
     QString result("");
     if(!googlePlugin)
index d1a0797..b92189e 100644 (file)
@@ -42,10 +42,6 @@ public:
     //! \return word to be translated
     QString key() const;
 
-    /*! \returns dictionary information (plugin name, languages, <logo> etc)\
-        to be displayed in translation table header*/
-    QString dictionaryInfo() const;
-
     //! \return parsed raw format into html
     QString toHtml() const;
 
index 7a622d4..c784d90 100644 (file)
@@ -46,10 +46,6 @@ QString TranslationXdxf::key() const {
     return _key;
 }
 
-QString TranslationXdxf::dictionaryInfo() const {
-    return _dictionaryInfo;
-}
-
 QString TranslationXdxf::toHtml() const { 
     QString result("");
     if(!xdxfPlugin)
index c28af27..d9ae77b 100644 (file)
@@ -37,10 +37,6 @@ public:
     //! \return word to be translated
     QString key() const;
 
-    /*! \returns dictionary information (plugin name, languages, <logo> etc)\
-        to be displayed in translation table header*/
-    QString dictionaryInfo() const;
-
     //! \return parsed raw format into html
     QString toHtml() const;
 
index fcc8771..d38a552 100644 (file)
@@ -38,7 +38,6 @@ class TranslationMock : public Translation
 public:
     QString _key, _translation;
     QString key() const {return _key;}
-    QString dictionaryInfo() const {return "";}
     QString toHtml() const {return _translation;}
 };