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

tdeio/bookmarks

  • tdeio
  • bookmarks
kbookmarkimporter_ie.h
1 // -*- c-basic-offset:4; indent-tabs-mode:nil -*-
2 // vim: set ts=4 sts=4 sw=4 et:
3 /* This file is part of the KDE libraries
4  Copyright (C) 2002 Alexander Kellett <lypanov@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef __kbookmarkimporter_ie_h
22 #define __kbookmarkimporter_ie_h
23 
24 #include <tqdom.h>
25 #include <tqcstring.h>
26 #include <tqstringlist.h>
27 #include <ksimpleconfig.h>
28 #include <kdemacros.h>
29 
30 #include <kbookmarkimporter.h>
31 
36 class TDEIO_EXPORT_DEPRECATED KIEBookmarkImporter : public TQObject
37 {
38  Q_OBJECT
39 public:
40  KIEBookmarkImporter( const TQString & fileName ) : m_fileName(fileName) {}
41  ~KIEBookmarkImporter() {}
42 
43  void parseIEBookmarks();
44 
45  // Usual place for IE bookmarks
46  static TQString IEBookmarksDir();
47 
48 signals:
49  void newBookmark( const TQString & text, const TQCString & url, const TQString & additionalInfo );
50  void newFolder( const TQString & text, bool open, const TQString & additionalInfo );
51  void newSeparator();
52  void endFolder();
53 
54 protected:
55  void parseIEBookmarks_dir( TQString dirname, TQString name = TQString::null );
56  void parseIEBookmarks_url_file( TQString filename, TQString name );
57 
58  TQString m_fileName;
59 };
60 
65 class TDEIO_EXPORT KIEBookmarkImporterImpl : public KBookmarkImporterBase
66 {
67 public:
68  KIEBookmarkImporterImpl() { }
69  virtual void parse();
70  virtual TQString findDefaultLocation(bool forSaving = false) const;
71 private:
72  class KIEBookmarkImporterImplPrivate *d;
73 };
74 
75 /*
76  * @since 3.2
77  */
78 class TDEIO_EXPORT KIEBookmarkExporterImpl : public KBookmarkExporterBase
79 {
80 public:
81  KIEBookmarkExporterImpl(KBookmarkManager* mgr, const TQString & path)
82  : KBookmarkExporterBase(mgr, path)
83  { ; }
84  virtual ~KIEBookmarkExporterImpl() {}
85  virtual void write(KBookmarkGroup);
86 private:
87  class KIEBookmarkExporterImplPrivate *d;
88 };
89 
90 #endif
KBookmarkManager
This class implements the reading/writing of bookmarks in XML.
Definition: kbookmarkmanager.h:53
KIEBookmarkImporterImpl
A class for importing IE bookmarks.
Definition: kbookmarkimporter_ie.h:65
KBookmarkExporterBase
Definition: kbookmarkexporter.h:32
KBookmarkGroup
A group of bookmarks.
Definition: kbookmark.h:199
KBookmarkImporterBase
A class for importing NS bookmarks KEditBookmarks uses it to insert bookmarks into its DOM tree...
Definition: kbookmarkimporter.h:37
KIEBookmarkImporter
A class for importing IE bookmarks.
Definition: kbookmarkimporter_ie.h:36

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.8.11
This website is maintained by Timothy Pearson.