00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef __kbookmarkimporter_opera_h
00022
#define __kbookmarkimporter_opera_h
00023
00024
#include <qdom.h>
00025
#include <qcstring.h>
00026
#include <qstringlist.h>
00027
#include <ksimpleconfig.h>
00028
00029
#include <kbookmarkimporter.h>
00030
00035 class KIO_EXPORT_DEPRECATED KOperaBookmarkImporter :
public QObject
00036 {
00037 Q_OBJECT
00038
public:
00039 KOperaBookmarkImporter(
const QString & fileName ) : m_fileName(fileName) {}
00040 ~KOperaBookmarkImporter() {}
00041
00042
void parseOperaBookmarks();
00043
00044
00045
static QString operaBookmarksFile();
00046
00047 signals:
00048
void newBookmark(
const QString & text,
const QCString & url,
const QString & additionalInfo );
00049
void newFolder(
const QString & text,
bool open,
const QString & additionalInfo );
00050
void newSeparator();
00051
void endFolder();
00052
00053
protected:
00054
QString m_fileName;
00055 };
00056
00061 class KIO_EXPORT KOperaBookmarkImporterImpl :
public KBookmarkImporterBase
00062 {
00063
public:
00064 KOperaBookmarkImporterImpl() { }
00065
virtual void parse();
00066
virtual QString 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 QString & filename)
00078 :
KBookmarkExporterBase(mgr, filename)
00079 { ; }
00080
virtual ~KOperaBookmarkExporterImpl() {}
00081
virtual void write(
KBookmarkGroup);
00082
private:
00083
class KOperaBookmarkExporterImplPrivate *d;
00084 };
00085
00086
#endif