KIO
kbookmarkmanager.cc
Go to the documentation of this file.
141 for ( KBookmarkManagerList::ConstIterator bmit = s_pSelf->constBegin(), bmend = s_pSelf->constEnd();
150 KBookmarkManager* KBookmarkManager::managerForFile( const QString& bookmarksFile, const QString& dbusObjectName )
209 topLevel.setAttribute("xmlns:bookmark", "http://www.freedesktop.org/standards/desktop-bookmarks");
216 KBookmarkManager::KBookmarkManager( const QString & bookmarksFile, const QString & dbusObjectName)
359 kWarning() << "KBookmarkManager::parse : main tag is missing, creating default " << d->m_bookmarksFile;
453 if (d->m_dialogAllowed && qApp->type() != QApplication::Tty && QThread::currentThread() == qApp->thread())
456 kError() << QString("Unable to save bookmarks in %1. File reported the following error-code: %2.").arg(filename).arg(file.error());
557 (void) save(); // KDE5 TODO: emitChanged should return a bool? Maybe rename it to saveAndEmitChanged?
595 void KBookmarkManager::notifyChanged( const QString &groupAddress, const QDBusMessage &msg ) // DBUS call
675 const QString bookmarksFile = KStandardDirs::locateLocal("data", QString::fromLatin1("konqueror/bookmarks.xml"));
676 KBookmarkManager* bookmarkManager = KBookmarkManager::managerForFile( bookmarksFile, "konqueror" );
Definition: kbookmarkmenu_p.h:84
KBookmark findByAddress(const QString &address)
Definition: kbookmarkmanager.cc:519
bool autoErrorHandlingEnabled() const
Check whether auto error handling is enabled.
Definition: kbookmarkmanager.cc:317
static KBookmarkManager * managerForExternalFile(const QString &bookmarksFile)
Returns a KBookmarkManager, which will use KDirWatch for change detection This is important when shar...
Definition: kbookmarkmanager.cc:172
NoGlobals
static void error(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
Definition: kbookmark.h:34
static QString locateLocal(const char *type, const QString &filename, bool createDir, const KComponentData &cData=KGlobal::mainComponent())
QDomDocument internalDocument() const
Definition: kbookmarkmanager.cc:333
void changed(const QString &groupAddress, const QString &caller)
Signals that the group (or any of its children) with the address groupAddress (e.g.
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
KBookmarkGroup toolbar()
This returns the root of the toolbar menu.
Definition: kbookmarkmanager.cc:473
void addFile(const QString &file)
static KBookmarkManager * userBookmarksManager()
Returns a pointer to the user's main (konqueror) bookmark collection.
Definition: kbookmarkmanager.cc:673
QFile::FileError error() const
QStringList list(const QString &fileClass)
Returns a list of directories associated with this file-class.
Definition: krecentdirs.cpp:60
QString caption()
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
static int find(const QByteArray &buf, int begin, const char c1)
returns the position of the first occurrence of any of the given characters c1 or comma (',...
Definition: dataprotocol.cpp:85
QString path() const
This will return the path that this manager is using to read the bookmarks.
Definition: kbookmarkmanager.cc:463
bool saveAs(const QString &filename, bool toolbarCache=true) const
Save the bookmarks to the given XML file on disk.
Definition: kbookmarkmanager.cc:401
Definition: netaccess.h:36
void notifyCompleteChange(const QString &caller)
Reparse the whole bookmarks file and notify about the change Doesn't send signal over DBUS to the oth...
Definition: kbookmarkmanager.cc:573
static KBookmarkManager * lookupExisting(const QString &bookmarksFile)
Definition: kbookmarkmanager.cc:139
QString number(KIO::filesize_t size)
Converts a size to a string representation Not unlike QString::number(...)
Definition: global.cpp:63
virtual void visitEnter(const KBookmarkGroup &)
Definition: kbookmark.cc:651
Definition: kbookmark.h:459
KBookmarkGroup toGroup() const
Convert this to a group - do this only if isGroup() returns true.
Definition: kbookmark.cc:465
void updateFavicon(const QString &url, const QString &faviconurl)
Definition: kbookmarkmanager.cc:660
void setAutoErrorHandlingEnabled(bool enable, QWidget *parent)
Enable or disable auto error handling is enabled.
Definition: kbookmarkmanager.cc:322
static QDomElement createXbelTopLevelElement(QDomDocument &doc)
Definition: kbookmarkmanager.cc:205
virtual void openFolderinTabs(const KBookmarkGroup &bm)
Called if the user wants to open every bookmark in this folder in a new tab.
Definition: kbookmarkmanager.cc:721
virtual KBookmarkDialog * bookmarkDialog(KBookmarkManager *mgr, QWidget *parent)
Definition: kbookmarkmanager.cc:716
KSharedConfigPtr config()
bool save(bool toolbarCache=true) const
Save the bookmarks to an XML file on disk.
Definition: kbookmarkmanager.cc:396
QString i18n(const char *text)
static bool simpleBackupFile(const QString &filename, const QString &backupDir=QString(), const QString &backupExtension=QLatin1String("~"))
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString fileName() const
QList< Action > parse(QSettings &ini)
const KShortcut & end()
group
bool finalize()
static KBookmarkManager * managerForFile(const QString &bookmarksFile, const QString &dbusObjectName)
This static function will return an instance of the KBookmarkManager, responsible for the given bookm...
Definition: kbookmarkmanager.cc:150
void slotEditBookmarksAtAddress(const QString &address)
Definition: kbookmarkmanager.cc:631
void abort()
This class implements the reading/writing of bookmarks in XML.
Definition: kbookmarkmanager.h:65
#define K_GLOBAL_STATIC(TYPE, NAME)
const KShortcut & begin()
virtual void visitLeave(const KBookmarkGroup &)
Definition: kbookmark.cc:655
bool isGroup() const
Whether the bookmark is a group or a normal bookmark.
Definition: kbookmark.cc:283
QString errorString() const
void setEditorOptions(const QString &caption, bool browser)
Set options with which slotEditBookmarks called keditbookmarks this can be used to change the appeara...
Definition: kbookmarkmanager.cc:612
This class provides a Dialog for editing properties, adding Bookmarks and creating new folders.
Definition: kbookmarkdialog.h:44
#define BOOKMARK_CHANGE_NOTIFY_INTERFACE
Definition: kbookmarkmanager.cc:47
virtual bool open(OpenMode flags=QIODevice::ReadWrite)
bool updateAccessMetadata(const QString &url)
Update access time stamps for a given url.
Definition: kbookmarkmanager.cc:646
void notifyChanged(const QString &groupAddress, const QDBusMessage &msg)
Emit the changed signal for the group whose address is given.
Definition: kbookmarkmanager.cc:595
QString readEntry(const char *key, const char *aDefault=0) const
static KBookmarkManager * createTempManager()
only used for KBookmarkBar
Definition: kbookmarkmanager.cc:196
virtual bool enableOption(BookmarkOption option) const
Returns true if action should be shown in the menu The default is to show both a add and editBookmark...
Definition: kbookmarkmanager.cc:707
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.