• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/bookmarks
 

tdeio/bookmarks

  • tdeio
  • bookmarks
kbookmarkimporter.h
1/* This file is part of the KDE libraries
2 Copyright (C) 2000 David Faure <faure@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17*/
18
19#ifndef __kbookmarkimporter_h
20#define __kbookmarkimporter_h
21
22#include <tqdom.h>
23#include <tqcstring.h>
24#include <tqstringlist.h>
25#include <ksimpleconfig.h>
26
27#include "kbookmark.h"
28
35class TDEIO_EXPORT KBookmarkImporterBase : public TQObject
36{
37 TQ_OBJECT
38public:
39 KBookmarkImporterBase() {}
40 virtual ~KBookmarkImporterBase() {}
41
42 void setFilename(const TQString &filename) { m_fileName = filename; }
43
44 virtual void parse() = 0;
45 virtual TQString findDefaultLocation(bool forSaving = false) const = 0;
46
47 // TODO - make this static?
48 void setupSignalForwards(TQObject *src, TQObject *dst);
49 static KBookmarkImporterBase *factory(const TQString &type);
50
51signals:
56 void newBookmark(const TQString & text, const TQCString & url, const TQString & additionalInfo);
57
62 void newFolder(const TQString & text, bool open, const TQString & additionalInfo);
63
67 void newSeparator();
68
73 void endFolder();
74
75protected:
76 TQString m_fileName;
77
78private:
79 class KBookmarkImporterBasePrivate *d;
80};
81
85class TDEIO_EXPORT KXBELBookmarkImporterImpl : public KBookmarkImporterBase, protected KBookmarkGroupTraverser
86{
87 TQ_OBJECT
88public:
89 KXBELBookmarkImporterImpl() {}
90 virtual void parse();
91 virtual TQString findDefaultLocation(bool = false) const { return TQString::null; }
92protected:
93 virtual void visit(const KBookmark &);
94 virtual void visitEnter(const KBookmarkGroup &);
95 virtual void visitLeave(const KBookmarkGroup &);
96private:
97 class KXBELBookmarkImporterImplPrivate *d;
98};
99
100// for SC
101#include "kbookmarkimporter_ns.h"
102#include "kbookmarkimporter_kde1.h"
103
104#endif
KBookmarkGroupTraverser
Definition: kbookmark.h:316
KBookmarkGroup
A group of bookmarks.
Definition: kbookmark.h:198
KBookmarkImporterBase
A class for importing NS bookmarks KEditBookmarks uses it to insert bookmarks into its DOM tree,...
Definition: kbookmarkimporter.h:36
KBookmarkImporterBase::newFolder
void newFolder(const TQString &text, bool open, const TQString &additionalInfo)
Notify about a new folder Use "bookmark_folder" for the icon.
KBookmarkImporterBase::newSeparator
void newSeparator()
Notify about a new separator.
KBookmarkImporterBase::endFolder
void endFolder()
Tell the outside world that we're going down one menu.
KBookmarkImporterBase::newBookmark
void newBookmark(const TQString &text, const TQCString &url, const TQString &additionalInfo)
Notify about a new bookmark Use "html" for the icon.
KXBELBookmarkImporterImpl
A class for importing XBEL files.
Definition: kbookmarkimporter.h:86

tdeio/bookmarks

Skip menu "tdeio/bookmarks"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeio/bookmarks

Skip menu "tdeio/bookmarks"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/bookmarks by doxygen 1.9.4
This website is maintained by Timothy Pearson.