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

kio/bookmarks

  • kio
  • bookmarks
kbookmarkimporter_opera.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_opera_h
22 #define __kbookmarkimporter_opera_h
23 
24 #include <tqdom.h>
25 #include <tqcstring.h>
26 #include <tqstringlist.h>
27 #include <ksimpleconfig.h>
28 
29 #include <kbookmarkimporter.h>
30 
35 class KIO_EXPORT_DEPRECATED KOperaBookmarkImporter : public TQObject
36 {
37  Q_OBJECT
38 public:
39  KOperaBookmarkImporter( const TQString & fileName ) : m_fileName(fileName) {}
40  ~KOperaBookmarkImporter() {}
41 
42  void parseOperaBookmarks();
43 
44  // Usual place for Opera bookmarks
45  static TQString operaBookmarksFile();
46 
47 signals:
48  void newBookmark( const TQString & text, const TQCString & url, const TQString & additionalInfo );
49  void newFolder( const TQString & text, bool open, const TQString & additionalInfo );
50  void newSeparator();
51  void endFolder();
52 
53 protected:
54  TQString m_fileName;
55 };
56 
61 class KIO_EXPORT KOperaBookmarkImporterImpl : public KBookmarkImporterBase
62 {
63 public:
64  KOperaBookmarkImporterImpl() { }
65  virtual void parse();
66  virtual TQString findDefaultLocation(bool forSaving = false) const;
67 private:
68  class KOperaBookmarkImporterImplPrivate *d;
69 };
70 
74 class KIO_EXPORT KOperaBookmarkExporterImpl : public KBookmarkExporterBase
75 {
76 public:
77  KOperaBookmarkExporterImpl(KBookmarkManager* mgr, const TQString & filename)
78  : KBookmarkExporterBase(mgr, filename)
79  { ; }
80  virtual ~KOperaBookmarkExporterImpl() {}
81  virtual void write(KBookmarkGroup);
82 private:
83  class KOperaBookmarkExporterImplPrivate *d;
84 };
85 
86 #endif
KBookmarkExporterBase
Definition: kbookmarkexporter.h:33
KBookmarkGroup
A group of bookmarks.
Definition: kbookmark.h:200
KBookmarkImporterBase
A class for importing NS bookmarks KEditBookmarks uses it to insert bookmarks into its DOM tree,...
Definition: kbookmarkimporter.h:38
KBookmarkManager
This class implements the reading/writing of bookmarks in XML.
Definition: kbookmarkmanager.h:54
KOperaBookmarkExporterImpl
Definition: kbookmarkimporter_opera.h:75
KOperaBookmarkImporterImpl
A class for importing Opera bookmarks.
Definition: kbookmarkimporter_opera.h:62
KOperaBookmarkImporter
A class for importing Opera bookmarks.
Definition: kbookmarkimporter_opera.h:36

kio/bookmarks

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

kio/bookmarks

Skip menu "kio/bookmarks"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/bookmarks by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |