8#ifndef __kbookmarkmanager_h
9#define __kbookmarkmanager_h
11#include <QDomDocument>
17class KBookmarkManagerPrivate;
20#if KBOOKMARKS_ENABLE_DEPRECATED_SINCE(5, 79)
21#include "kbookmarkowner.h"
72 KBOOKMARKS_NO_EXPORT
KBookmarkManager(
const QString &bookmarksFile,
const QString &dbusObjectName);
79 KBOOKMARKS_NO_EXPORT
explicit KBookmarkManager(
const QString &bookmarksFile);
129 bool saveAs(
const QString &filename,
bool toolbarCache =
true)
const;
145 void updateFavicon(
const QString &url,
const QString &faviconurl);
200 bool save(
bool toolbarCache =
true)
const;
202 void emitConfigChanged();
258 QDomDocument internalDocument()
const;
261 void slotEditBookmarks();
262 void slotEditBookmarksAtAddress(
const QString &address);
272#ifndef KBOOKMARKS_NO_DBUS
284 void notifyConfigChanged();
308 void changed(
const QString &groupAddress,
const QString &caller);
320 void error(
const QString &errorMessage);
323 KBOOKMARKS_NO_EXPORT
void slotFileChanged(
const QString &path);
327 KBOOKMARKS_NO_EXPORT
void parse()
const;
328 KBOOKMARKS_NO_EXPORT
void init(
const QString &dbusPath);
330 KBOOKMARKS_NO_EXPORT
void startKEditBookmarks(
const QStringList &args);
333 std::unique_ptr<KBookmarkManagerPrivate>
const d;
A group of bookmarks.
Definition kbookmark.h:323
This class implements the reading/writing of bookmarks in XML.
Definition kbookmarkmanager.h:52
void configChanged()
Signals that the config changed.
bool autoErrorHandlingEnabled() const
Check whether auto error handling is enabled.
void setAutoErrorHandlingEnabled(bool enable, QWidget *parent)
Enable or disable auto error handling is enabled.
KBookmark findByAddress(const QString &address)
void notifyChanged(const QString &groupAddress, const QDBusMessage &msg)
Emit the changed signal for the group whose address is given.
static KBookmarkManager * createTempManager()
only used for KBookmarkBar
void emitChanged(const KBookmarkGroup &group)
Saves the bookmark file and notifies everyone.
static KBookmarkManager * managerForFile(const QString &bookmarksFile, const QString &dbusObjectName)
This static function will return an instance of the KBookmarkManager, responsible for the given bookm...
bool updateAccessMetadata(const QString &url)
Update access time stamps for a given url.
KBookmarkGroup toolbar()
This returns the root of the toolbar menu.
void setUpdate(bool update)
Set the update flag.
void bookmarkConfigChanged()
Signal send over D-Bus.
bool save(bool toolbarCache=true) const
Save the bookmarks to an XML file on disk.
QString path() const
This will return the path that this manager is using to read the bookmarks.
void notifyCompleteChange(const QString &caller)
Reparse the whole bookmarks file and notify about the change Doesn't send signal over D-Bus to the ot...
KBookmarkGroup root() const
This will return the root bookmark.
static KBookmarkManager * managerForExternalFile(const QString &bookmarksFile)
Returns a KBookmarkManager, which will use QFileSystemWatcher for change detection This is important ...
static KBookmarkManager * userBookmarksManager()
Returns a pointer to the user's main (konqueror) bookmark collection.
void error(const QString &errorMessage)
Emitted when an error occurs.
bool saveAs(const QString &filename, bool toolbarCache=true) const
Save the bookmarks to the given XML file on disk.
void bookmarksChanged(QString groupAddress)
Signal send over D-Bus.
void bookmarkCompleteChange(QString caller)
Signal send over D-Bus.
~KBookmarkManager() override
Destructor.
void setEditorOptions(const QString &caption, bool browser)
Set options with which slotEditBookmarks called keditbookmarks this can be used to change the appeara...
void emitChanged()
Saves the bookmark file and notifies everyone.
void changed(const QString &groupAddress, const QString &caller)
Signals that the group (or any of its children) with the address groupAddress (e.g.
A class representing a bookmark.
Definition kbookmark.h:28