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

kio/bookmarks

kbookmarkimporter_opera.h
00001 //  -*- c-basic-offset:4; indent-tabs-mode:nil -*-
00002 // vim: set ts=4 sts=4 sw=4 et:
00003 /* This file is part of the KDE libraries
00004    Copyright (C) 2002 Alexander Kellett <lypanov@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License version 2 as published by the Free Software Foundation.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __kbookmarkimporter_opera_h
00022 #define __kbookmarkimporter_opera_h
00023 
00024 #include <tqdom.h>
00025 #include <tqcstring.h>
00026 #include <tqstringlist.h>
00027 #include <ksimpleconfig.h>
00028 
00029 #include <kbookmarkimporter.h>
00030 
00035 class KIO_EXPORT_DEPRECATED KOperaBookmarkImporter : public TQObject
00036 {
00037     Q_OBJECT
00038 public:
00039     KOperaBookmarkImporter( const TQString & fileName ) : m_fileName(fileName) {}
00040     ~KOperaBookmarkImporter() {}
00041 
00042     void parseOperaBookmarks();
00043 
00044     // Usual place for Opera bookmarks
00045     static TQString operaBookmarksFile();
00046 
00047 signals:
00048     void newBookmark( const TQString & text, const TQCString & url, const TQString & additionalInfo );
00049     void newFolder( const TQString & text, bool open, const TQString & additionalInfo );
00050     void newSeparator();
00051     void endFolder();
00052 
00053 protected:
00054     TQString m_fileName;
00055 };
00056 
00061 class KIO_EXPORT KOperaBookmarkImporterImpl : public KBookmarkImporterBase
00062 {
00063 public:
00064     KOperaBookmarkImporterImpl() { }
00065     virtual void parse();
00066     virtual TQString findDefaultLocation(bool forSaving = false) const;
00067 private:
00068     class KOperaBookmarkImporterImplPrivate *d;
00069 };
00070 
00074 class KIO_EXPORT KOperaBookmarkExporterImpl : public KBookmarkExporterBase
00075 {
00076 public:
00077     KOperaBookmarkExporterImpl(KBookmarkManager* mgr, const TQString & filename)
00078       : KBookmarkExporterBase(mgr, filename) 
00079     { ; }
00080     virtual ~KOperaBookmarkExporterImpl() {}
00081     virtual void write(KBookmarkGroup);
00082 private:
00083     class KOperaBookmarkExporterImplPrivate *d;
00084 };
00085 
00086 #endif

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.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |