Dataengine for browser bookmarks

Ivan Čukić ivan.cukic at kde.org
Sat Feb 5 15:38:58 CET 2011


p.s. There is no point really in doing this until the user (applet)
requests a data source:

    /* Konqueror */
    m_konquerorBookmarkManager = KBookmarkManager::userBookmarksManager();

    /* Firefox 3 */
    m_firefoxDbDir = QDir(KStandardDirs::locateLocal("cache", "") +
"bookmarkrunner/firefox3/");
    if (!m_firefoxDbDir.exists())
    {
        m_firefoxDbDir.mkpath(m_firefoxDbDir.path());
    }

    /* Opera */
    m_operaBookmarksAdr.setFileName(QDir::homePath() + "/.opera/bookmarks.adr");


And (IMO) the mkpath shouldn't really be there - if you're providing
just a data retrieval engine, it shouldn't change the local
filesystem.


Cheerio,
Ivan

--
While you were hanging yourself on someone else's words
Dying to believe in what you heard
I was staring straight into the shining sun


More information about the Plasma-devel mailing list