• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KIO

  • kio
  • bookmarks
kbookmarkimporter_crash.h
Go to the documentation of this file.
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_crash_h
22#define __kbookmarkimporter_crash_h
23
24#include <QtCore/QStringList>
25#include <QtCore/QMap>
26#include <kconfig.h>
27#include <kdemacros.h>
28
29#include "kbookmarkimporter.h"
30
35class KIO_EXPORT_DEPRECATED KCrashBookmarkImporter : public QObject
36{
37 Q_OBJECT
38public:
39 KCrashBookmarkImporter( const QString & fileName ) : m_fileName(fileName) {}
40 ~KCrashBookmarkImporter() {}
41 void parseCrashBookmarks( bool del = true );
42 static QString crashBookmarksDir( );
43Q_SIGNALS:
44 void newBookmark( const QString & text, const QString & url, const QString & additionalInfo );
45 void newFolder( const QString & text, bool open, const QString & additionalInfo );
46 void newSeparator();
47 void endFolder();
48protected:
49 QString m_fileName;
50};
51
55class KIO_EXPORT KCrashBookmarkImporterImpl : public KBookmarkImporterBase
56{
57public:
58 KCrashBookmarkImporterImpl() : m_shouldDelete(false) { }
59 void setShouldDelete(bool);
60 virtual void parse();
61 virtual QString findDefaultLocation(bool forSaving = false) const;
62 static QStringList getCrashLogs();
63private:
64 bool m_shouldDelete;
65 QMap<QString, QString> parseCrashLog_noemit( const QString & filename, bool del );
66 class KCrashBookmarkImporterImplPrivate *d;
67};
68
69#endif
KBookmarkImporterBase
A class for importing NS bookmarks KEditBookmarks uses it to insert bookmarks into its DOM tree,...
Definition: kbookmarkimporter.h:35
KCrashBookmarkImporterImpl
A class for importing all crash sessions as bookmarks.
Definition: kbookmarkimporter_crash.h:56
KCrashBookmarkImporterImpl::KCrashBookmarkImporterImpl
KCrashBookmarkImporterImpl()
Definition: kbookmarkimporter_crash.h:58
KCrashBookmarkImporter
A class for importing all crash sessions as bookmarks.
Definition: kbookmarkimporter_crash.h:36
KCrashBookmarkImporter::newFolder
void newFolder(const QString &text, bool open, const QString &additionalInfo)
KCrashBookmarkImporter::newBookmark
void newBookmark(const QString &text, const QString &url, const QString &additionalInfo)
KCrashBookmarkImporter::~KCrashBookmarkImporter
~KCrashBookmarkImporter()
Definition: kbookmarkimporter_crash.h:40
KCrashBookmarkImporter::m_fileName
QString m_fileName
Definition: kbookmarkimporter_crash.h:49
KCrashBookmarkImporter::endFolder
void endFolder()
KCrashBookmarkImporter::newSeparator
void newSeparator()
KCrashBookmarkImporter::KCrashBookmarkImporter
KCrashBookmarkImporter(const QString &fileName)
Definition: kbookmarkimporter_crash.h:39
QMap
QObject
kbookmarkimporter.h
kconfig.h
parse
QList< Action > parse(QSettings &ini)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal