18 #ifndef __kbookmarkmanager_h
19 #define __kbookmarkmanager_h
22 #include <tqstringlist.h>
25 #include <dcopobject.h>
26 #include "kbookmark.h"
27 #include "kbookmarknotifier.h"
70 KBookmarkManager(
const TQString & bookmarksFile,
bool bImportDesktopFiles =
true );
87 void setUpdate(
bool update );
96 bool save(
bool toolbarCache =
true )
const;
104 bool saveAs(
const TQString & filename,
bool toolbarCache =
true )
const;
113 bool updateAccessMetadata(
const TQString &url,
bool emitSignal =
true );
124 void updateFavicon(
const TQString &url,
const TQString &faviconurl,
bool emitSignal =
true );
132 TQString
path() {
return m_bookmarksFile; }
156 KBookmark findByAddress(
const TQString & address,
bool tolerate =
false );
164 void emitConfigChanged();
171 bool showNSBookmarks()
const;
177 void setShowNSBookmarks(
bool show );
189 void setEditorOptions(
const TQString& caption,
bool browser );
208 bool bImportDesktopFiles =
true );
223 static TQString userBookmarksFile();
228 const TQDomDocument & internalDocument()
const;
240 KBookmarkGroup addBookmarkDialog(
const TQString & _url,
const TQString & _title,
241 const TQString & _parentBookmarkAddress = TQString::null );
244 void slotEditBookmarks();
245 void slotEditBookmarksAtAddress(
const TQString& address );
253 ASYNC notifyCompleteChange( TQString caller );
261 ASYNC notifyChanged( TQString groupAddress );
263 ASYNC notifyConfigChanged();
271 void changed(
const TQString & groupAddress,
const TQString & caller );
276 void importDesktopFiles();
277 static void convertToXBEL( TQDomElement & group );
278 static void convertAttribute( TQDomElement elem,
const TQString & oldName,
const TQString & newName );
282 TQString m_bookmarksFile;
283 mutable TQDomDocument m_doc;
284 mutable TQDomDocument m_toolbarDoc;
285 mutable bool m_docIsLoaded;
287 static TQPtrList<KBookmarkManager>* s_pSelf;
288 bool m_showNSBookmarks;
291 class KBookmarkManagerPrivate* dptr()
const;
322 virtual void openBookmarkURL(
const TQString& _url);
342 virtual TQString
currentURL()
const {
return TQString::null; }
345 virtual void virtual_hook(
int id,
void* data );
355 typedef TQValueList<QPair<TQString,TQString> > QStringPairList;
357 void fillBookmarksList( KExtendedBookmarkOwner::QStringPairList & list ) { emit signalFillBookmarksList( list ); };
359 void signalFillBookmarksList( KExtendedBookmarkOwner::QStringPairList & list );
361 class KExtendedBookmarkOwnerPrivate;
362 KExtendedBookmarkOwnerPrivate *d;