
Originally Posted by
wysota
Extract from assistant? Assistant saves its index in a file that's probably in your $HOME/.assistant/. I don't know the format, but it should be easy to retrieve it by looking at assistant source code.
I tidy to xml the file http://doc.trolltech.com/4.3/functions.html
int errorLine, errorColumn;
if (!doc.setContent(&f,false, &errorStr, &errorLine, &errorColumn)) {
return 0;
}
int sumfunction = 0;
while (!listing.isNull()) {
obname = pagelink.firstChildElement("span").text();
if (obname !="") {
sumfunction++;
std::cout << sumfunction << ") qtfu: ->" << qPrintable(obname) << std::endl;
}
listing = listing.nextSiblingElement("li");
}
/* summfunction qt4 rc1 6028.. */
QString errorStr, obname;
int errorLine, errorColumn;
QDomDocument doc;
QFile f("function.xml");
if (!doc.setContent(&f,false, &errorStr, &errorLine, &errorColumn)) {
return 0;
}
int sumfunction = 0;
QDomElement root = doc.documentElement();
QDomElement group = root.firstChildElement("ul");
QDomElement listing = group.firstChildElement("li");
while (!listing.isNull()) {
QDomElement pagelink = listing.firstChildElement("a");
obname = pagelink.firstChildElement("span").text();
if (obname !="") {
sumfunction++;
std::cout << sumfunction << ") qtfu: ->" << qPrintable(obname) << std::endl;
}
listing = listing.nextSiblingElement("li");
}
/* summfunction qt4 rc1 6028.. */
To copy to clipboard, switch view to plain text mode
Bookmarks