21 #include <kfiledialog.h> 22 #include <kstringhandler.h> 25 #include <kcharsets.h> 26 #include <tqtextcodec.h> 28 #include <sys/types.h> 34 #include "kbookmarkmanager.h" 36 #include "kbookmarkimporter_ns.h" 37 #include "kbookmarkimporter_opera.h" 38 #include "kbookmarkimporter_ie.h" 40 #include "kbookmarkimporter.h" 42 void KXBELBookmarkImporterImpl::parse()
52 void KXBELBookmarkImporterImpl::visit(
const KBookmark &bk)
58 emit
newBookmark(bk.fullText(), bk.url().url().utf8(),
"");
61 void KXBELBookmarkImporterImpl::visitEnter(
const KBookmarkGroup &grp)
64 emit
newFolder(grp.fullText(),
false,
"");
73 void KBookmarkImporterBase::setupSignalForwards(TQObject *src, TQObject *dst)
75 connect(src, TQT_SIGNAL(
newBookmark(
const TQString &,
const TQCString &,
const TQString & ) ),
76 dst, TQT_SIGNAL(
newBookmark(
const TQString &,
const TQCString &,
const TQString & ) ));
77 connect(src, TQT_SIGNAL(
newFolder(
const TQString &,
bool,
const TQString & ) ),
78 dst, TQT_SIGNAL(
newFolder(
const TQString &,
bool,
const TQString & ) ));
87 if (type ==
"netscape")
89 else if (type ==
"mozilla")
91 else if (type ==
"xbel")
93 else if (type ==
"ie")
95 else if (type ==
"opera")
101 #include <kbookmarkimporter.moc> A class for importing NS bookmarks utf8 defaults to off.
A class for importing Mozilla bookmarks utf8 defaults to on.
void endFolder()
Tell the outside world that we're going down one menu.
This class implements the reading/writing of bookmarks in XML.
A class for importing IE bookmarks.
static KBookmarkManager * managerForFile(const TQString &bookmarksFile, bool bImportDesktopFiles=true)
This static function will return an instance of the KBookmarkManager, responsible for the given bookm...
void newFolder(const TQString &text, bool open, const TQString &additionalInfo)
Notify about a new folder Use "bookmark_folder" for the icon.
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.
void newSeparator()
Notify about a new separator.
A class for importing NS bookmarks KEditBookmarks uses it to insert bookmarks into its DOM tree...
A class for importing Opera bookmarks.
A class for importing XBEL files.