10 DownloadDict(QString html) {
11 QRegExp reg("<td.*>(.*)</td>");
15 while ((pos = reg.indexIn(html, pos)) != -1) {
17 pos += reg.matchedLength();
23 QRegExp lreg("href=\"(.*)\"");
24 lreg.setMinimal(true);
25 lreg.indexIn(tmp.at(2));
26 _link = lreg.capturedTexts().at(1);
29 QString fromLang() const {return _from;}
30 QString toLang() const {return _to;}
31 QString title() const {return _title;}
32 QString size() const {return _size;}
33 QString link() const {return _link;}
35 bool operator <(DownloadDict other) const {
36 if(_from < other.fromLang()) return true;
37 if(_from > other.fromLang()) return false;
38 if(_to < other.toLang()) return true;
43 QString _from, _to, _title, _link, _size;
47 #endif // DOWNLOADDICT_H