{
public:
Bookmarks();
+
+ /*! Adds new word and translation to bookmarks
+ \param translation new translation to be saved and cached as a bookmark
+ */
+ void add(Translation* translation);
+
+ /*! Removes word and coresponding translation cache from bookmark list
+ \param translation translation to be removed
+ */
+ void remove(Translation* translation);
+
+ /*! \return all bookmarks (word and translation as a translation object
+ as a list
+ */
+ QList<Translation*> list();
+
+ /*! search in bookmarks for given word (wildcards may apply '*' and '?')
+ \param word to search for
+ \return list of matching translation object (word and translation)
+ */
+ QList<Translation*> searchWordList(QString word);
+
+ /*! Search for final translation of given word
+ \return word translation list in text format xml or html to be formated
+ and displayed
+ \param word word to search for
+ */
+ QStringList search(QString word);
+
};
#endif // BOOKMARKS_H