9 DownloadDict(QString html);
10 QString fromLang() {return _from;};
11 QString toLang() {return _to;};
12 QString title() {return _title;}
13 QString size() {return _size;}
14 QString link() {return _link;}
17 QString _from, _to, _title, _link, _size;
21 DownloadDict::DownloadDict(QString html) {
22 QRegExp reg("<td.*>(.*)</td>");
26 while ((pos = reg.indexIn(html, pos)) != -1) {
28 pos += reg.matchedLength();
34 QRegExp lreg("href=\"(.*)\"");
35 lreg.setMinimal(true);
36 lreg.indexIn(tmp.at(2));
37 _link = lreg.capturedTexts().at(1);
42 #endif // DOWNLOADDICT_H