• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kio/bookmarks

kbookmarkimporter_ie.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_ie_h
00022 #define __kbookmarkimporter_ie_h
00023 
00024 #include <qdom.h>
00025 #include <qcstring.h>
00026 #include <qstringlist.h>
00027 #include <ksimpleconfig.h>
00028 #include <kdemacros.h>
00029 
00030 #include <kbookmarkimporter.h>
00031 
00036 class KIO_EXPORT_DEPRECATED KIEBookmarkImporter : public QObject
00037 {
00038     Q_OBJECT
00039 public:
00040     KIEBookmarkImporter( const QString & fileName ) : m_fileName(fileName) {}
00041     ~KIEBookmarkImporter() {}
00042 
00043     void parseIEBookmarks();
00044 
00045     // Usual place for IE bookmarks
00046     static QString IEBookmarksDir();
00047 
00048 signals:
00049     void newBookmark( const QString & text, const QCString & url, const QString & additionalInfo );
00050     void newFolder( const QString & text, bool open, const QString & additionalInfo );
00051     void newSeparator();
00052     void endFolder();
00053 
00054 protected:
00055     void parseIEBookmarks_dir( QString dirname, QString name = QString::null );
00056     void parseIEBookmarks_url_file( QString filename, QString name );
00057 
00058     QString m_fileName;
00059 };
00060 
00065 class KIO_EXPORT KIEBookmarkImporterImpl : public KBookmarkImporterBase
00066 {
00067 public:
00068     KIEBookmarkImporterImpl() { }
00069     virtual void parse();
00070     virtual QString findDefaultLocation(bool forSaving = false) const;
00071 private:
00072     class KIEBookmarkImporterImplPrivate *d;
00073 };
00074 
00075 /*
00076  * @since 3.2
00077  */
00078 class KIO_EXPORT KIEBookmarkExporterImpl : public KBookmarkExporterBase
00079 {
00080 public:
00081     KIEBookmarkExporterImpl(KBookmarkManager* mgr, const QString & path)
00082       : KBookmarkExporterBase(mgr, path) 
00083     { ; }
00084     virtual ~KIEBookmarkExporterImpl() {}
00085     virtual void write(KBookmarkGroup);
00086 private:
00087     class KIEBookmarkExporterImplPrivate *d;
00088 };
00089 
00090 #endif

kio/bookmarks

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

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • 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
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal