dcop konqueror-11489 KonqHistoryManager allURLsreplacing 11489 with your Konqueror number of course. Reaching a dead end with dcop I whipped up a tool that uses libkonq to extract the history.
#include <kapplication.h>
#include <kcmdlineargs.h>
#include <konq_historymgr.h>
int main(int argc, char **argv)
{
KCmdLineArgs::init(argc, argv, "konqueror", "konqueror", "I do stuff", "0.1");
KApplication application(argc, argv);
KonqHistoryManager manager(0, "manager");
KonqHistoryList list = manager.entries();
for (uint i = 0; i < list.count(); ++i) {
printf("%s\n%s\n%s\n",
list.at(i)->url.url().latin1(),
list.at(i)->title.latin1(),
list.at(i)->lastVisited.toString().latin1());
}
return 0;
}
Already this data has proved useful and helped me reduce my memory footprint by half and catch my performance bottlenecks so it can handle 20 entries or 20,000 just as fast. If you are interested in playing with the dataset send me an e-mail.

0 comments:
Post a Comment