kbookmarkimporter_crash.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 #ifndef __kbookmarkimporter_crash_h
00022 #define __kbookmarkimporter_crash_h
00023 
00024 #include <qdom.h>
00025 #include <qcstring.h>
00026 #include <qstringlist.h>
00027 #include <qmap.h>
00028 #include <ksimpleconfig.h>
00029 #include <kdemacros.h>
00030 
00031 #include "kbookmarkimporter.h"
00032 
00037 class KDE_DEPRECATED KCrashBookmarkImporter : public QObject
00038 {
00039     Q_OBJECT
00040 public:
00041     KCrashBookmarkImporter( const QString & fileName ) : m_fileName(fileName) {}
00042     ~KCrashBookmarkImporter() {}
00043     void parseCrashBookmarks( bool del = true );
00044     static QString crashBookmarksDir( );
00045     static QStringList getCrashLogs(); 
00046 signals:
00047     void newBookmark( const QString & text, const QCString & url, const QString & additionalInfo );
00048     void newFolder( const QString & text, bool open, const QString & additionalInfo );
00049     void newSeparator();
00050     void endFolder();
00051 protected:
00052     QString m_fileName;
00053     void parseCrashLog( QString filename, bool del ); 
00054 };
00055 
00060 class KCrashBookmarkImporterImpl : public KBookmarkImporterBase
00061 {
00062 public:
00063     KCrashBookmarkImporterImpl() : m_shouldDelete(false) { }
00064     void setShouldDelete(bool);
00065     virtual void parse();
00066     virtual QString findDefaultLocation(bool forSaving = false) const;
00067     static QStringList getCrashLogs();
00068 private:
00069     bool m_shouldDelete;
00070     QMap<QString, QString> parseCrashLog_noemit( const QString & filename, bool del );
00071     class KCrashBookmarkImporterImplPrivate *d;
00072 };
00073 
00074 #endif
 
This file is part of the documentation for kio Library Version 3.2.0.