X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=trunk%2Fsrc%2Fplugins%2Fgoogle%2Fsrc%2FTranslationGoogle.cpp;h=2ee8a639597e883209081dc4a3abb156eaaf0e93;hb=1ca94b3e0480aa432eac4189e46318344e0f604b;hp=4ccd0c6af4b735678e7c11c99120c470460b8124;hpb=18fbda542b8e1e910255915e2c57dd3ee76752ac;p=mdictionary
diff --git a/trunk/src/plugins/google/src/TranslationGoogle.cpp b/trunk/src/plugins/google/src/TranslationGoogle.cpp
index 4ccd0c6..2ee8a63 100644
--- a/trunk/src/plugins/google/src/TranslationGoogle.cpp
+++ b/trunk/src/plugins/google/src/TranslationGoogle.cpp
@@ -1,7 +1,32 @@
+/*******************************************************************************
+
+ This file is part of mDictionary.
+
+ mDictionary is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ mDictionary is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with mDictionary. If not, see .
+
+ Copyright 2010 Comarch S.A.
+
+*******************************************************************************/
+
+/*! \file TranslationGoogle.cpp
+ \author Jakub Jaszczynski
+*/
+
#include "TranslationGoogle.h"
-TranslationGoogle::TranslationGoogle()
-{
+TranslationGoogle::TranslationGoogle():_key(""),_trans(""),_dictionaryInfo("") {
+ googlePlugin=0;
}
TranslationGoogle::TranslationGoogle(QString _key,QString _trans,
@@ -10,24 +35,27 @@ TranslationGoogle::TranslationGoogle(QString _key,QString _trans,
this->googlePlugin=googlePlugin;
if(googlePlugin)
_dictHash = googlePlugin->hash();
-
+ _bookmark=0;
}
QString TranslationGoogle::key() const{
return _key;
}
-
QString TranslationGoogle::dictionaryInfo() const {
return _dictionaryInfo;
}
-
QString TranslationGoogle::toHtml() const {
QString result("");
- result+=" GOOGLE TRANSLATOR ";
- result+=_trans +"";
- return result;
+ if(!googlePlugin)
+ return result;
+ result=" ";
+ else
+ result+="bookmark=\"false\" >";
+ result+=_dictionaryInfo+ ""+_trans +"";
}
void TranslationGoogle::setKey(QString) {