You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
535 B
24 lines
535 B
#ifndef KBBBOOKMARKMANAGER_H
|
|
#define KBBBOOKMARKMANAGER_H
|
|
|
|
#include <kbookmarkmanager.h>
|
|
#include <kstandarddirs.h>
|
|
|
|
class KBBBookmarkManager
|
|
{
|
|
public:
|
|
static KBookmarkManager * self() {
|
|
if ( !s_bookmarkManager )
|
|
{
|
|
QString bookmarksFile = locateLocal("data", QString::fromLatin1("kbugbuster/bookmarks.xml"));
|
|
s_bookmarkManager = KBookmarkManager::managerForFile( bookmarksFile );
|
|
}
|
|
return s_bookmarkManager;
|
|
}
|
|
|
|
|
|
static KBookmarkManager *s_bookmarkManager;
|
|
};
|
|
|
|
#endif
|