• 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 
35 class TDEIO_EXPORT KBookmarkImporterBase : public TQObject
36 {
37  Q_OBJECT
38 public:
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 
51 signals:
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 
75 protected:
76  TQString m_fileName;
77 
78 private:
79  class KBookmarkImporterBasePrivate *d;
80 };
81 
85 class TDEIO_EXPORT KXBELBookmarkImporterImpl : public KBookmarkImporterBase, protected KBookmarkGroupTraverser
86 {
87  Q_OBJECT
88 public:
89  KXBELBookmarkImporterImpl() {}
90  virtual void parse();
91  virtual TQString findDefaultLocation(bool = false) const { return TQString::null; }
92 protected:
93  virtual void visit(const KBookmark &);
94  virtual void visitEnter(const KBookmarkGroup &);
95  virtual void visitLeave(const KBookmarkGroup &);
96 private:
97  class KXBELBookmarkImporterImplPrivate *d;
98 };
99 
100 // for SC
101 #include "kbookmarkimporter_ns.h"
102 #include "kbookmarkimporter_kde1.h"
103 
104 #endif
KBookmarkGroup
A group of bookmarks.
Definition: kbookmark.h:197
KBookmarkImporterBase
A class for importing NS bookmarks KEditBookmarks uses it to insert bookmarks into its DOM tree...
Definition: kbookmarkimporter.h:35
KXBELBookmarkImporterImpl
A class for importing XBEL files.
Definition: kbookmarkimporter.h:85
KBookmarkGroupTraverser
Definition: kbookmark.h:316

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
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/bookmarks by doxygen 1.8.8
This website is maintained by Timothy Pearson.