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, TQT_SIGNAL(
newBookmark(
const TQString &,
const TQCString &,
const TQString & ) ),
74 dst, TQT_SIGNAL(
newBookmark(
const TQString &,
const TQCString &,
const TQString & ) ));
75 connect(src, TQT_SIGNAL(
newFolder(
const TQString &,
bool,
const TQString & ) ),
76 dst, TQT_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>