19#include <tdefiledialog.h>
20#include <kstringhandler.h>
24#include <tqtextcodec.h>
32#include "kbookmarkmanager.h"
34#include "kbookmarkimporter_ns.h"
35#include "kbookmarkimporter_opera.h"
36#include "kbookmarkimporter_ie.h"
38#include "kbookmarkimporter.h"
40void KXBELBookmarkImporterImpl::parse()
44 KBookmarkGroup root = manager->
root();
50void KXBELBookmarkImporterImpl::visit(
const KBookmark &bk)
56 emit
newBookmark(bk.fullText(), bk.url().url().utf8(),
"");
59void KXBELBookmarkImporterImpl::visitEnter(
const KBookmarkGroup &grp)
62 emit
newFolder(grp.fullText(),
false,
"");
71void KBookmarkImporterBase::setupSignalForwards(TQObject *src, TQObject *dst)
73 connect(src, TQ_SIGNAL(
newBookmark(
const TQString &,
const TQCString &,
const TQString & ) ),
74 dst, TQ_SIGNAL(
newBookmark(
const TQString &,
const TQCString &,
const TQString & ) ));
75 connect(src, TQ_SIGNAL(
newFolder(
const TQString &,
bool,
const TQString & ) ),
76 dst, TQ_SIGNAL(
newFolder(
const TQString &,
bool,
const TQString & ) ));
85 if (type ==
"netscape")
86 return new KNSBookmarkImporterImpl;
87 else if (type ==
"mozilla")
88 return new KMozillaBookmarkImporterImpl;
89 else if (type ==
"xbel")
90 return new KXBELBookmarkImporterImpl;
91 else if (type ==
"ie")
92 return new KIEBookmarkImporterImpl;
93 else if (type ==
"opera")
94 return new KOperaBookmarkImporterImpl;
99#include <kbookmarkimporter.moc>
A class for importing NS bookmarks KEditBookmarks uses it to insert bookmarks into its DOM tree,...
void newFolder(const TQString &text, bool open, const TQString &additionalInfo)
Notify about a new folder Use "bookmark_folder" for the icon.
void newSeparator()
Notify about a new separator.
void endFolder()
Tell the outside world that we're going down one menu.
void newBookmark(const TQString &text, const TQCString &url, const TQString &additionalInfo)
Notify about a new bookmark Use "html" for the icon.
KBookmarkGroup root() const
This will return the root bookmark.
static KBookmarkManager * managerForFile(const TQString &bookmarksFile, bool bImportDesktopFiles=true)
This static function will return an instance of the KBookmarkManager, responsible for the given bookm...