19 #include <tdefiledialog.h>
20 #include <kstringhandler.h>
21 #include <tdelocale.h>
23 #include <kcharsets.h>
24 #include <tqtextcodec.h>
26 #include <sys/types.h>
32 #include "kbookmarkmanager.h"
34 #include "kbookmarkimporter_ns.h"
35 #include "kbookmarkimporter_opera.h"
36 #include "kbookmarkimporter_ie.h"
38 #include "kbookmarkimporter.h"
40 void KXBELBookmarkImporterImpl::parse()
50 void KXBELBookmarkImporterImpl::visit(
const KBookmark &bk)
56 emit
newBookmark(bk.fullText(), bk.url().url().utf8(),
"");
59 void KXBELBookmarkImporterImpl::visitEnter(
const KBookmarkGroup &grp)
62 emit
newFolder(grp.fullText(),
false,
"");
71 void 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")
87 else if (type ==
"mozilla")
89 else if (type ==
"xbel")
91 else if (type ==
"ie")
93 else if (type ==
"opera")
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.
This class implements the reading/writing of bookmarks in XML.
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...
A class for importing IE bookmarks.
A class for importing Mozilla bookmarks utf8 defaults to on.
A class for importing NS bookmarks utf8 defaults to off.
A class for importing Opera bookmarks.
A class for importing XBEL files.