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

KIO

  • sources
  • kde-4.14
  • kdelibs
  • 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 
35 class KIO_EXPORT_DEPRECATED KCrashBookmarkImporter : public QObject
36 {
37  Q_OBJECT
38 public:
39  KCrashBookmarkImporter( const QString & fileName ) : m_fileName(fileName) {}
40  ~KCrashBookmarkImporter() {}
41  void parseCrashBookmarks( bool del = true );
42  static QString crashBookmarksDir( );
43 Q_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();
48 protected:
49  QString m_fileName;
50 };
51 
55 class KIO_EXPORT KCrashBookmarkImporterImpl : public KBookmarkImporterBase
56 {
57 public:
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();
63 private:
64  bool m_shouldDelete;
65  QMap<QString, QString> parseCrashLog_noemit( const QString & filename, bool del );
66  class KCrashBookmarkImporterImplPrivate *d;
67 };
68 
69 #endif
KCrashBookmarkImporter::m_fileName
QString m_fileName
Definition: kbookmarkimporter_crash.h:49
kconfig.h
QMap< QString, QString >
kbookmarkimporter.h
KBookmarkImporterBase::findDefaultLocation
virtual QString findDefaultLocation(bool forSaving=false) const =0
KCrashBookmarkImporterImpl::KCrashBookmarkImporterImpl
KCrashBookmarkImporterImpl()
Definition: kbookmarkimporter_crash.h:58
QObject
KIO::open
FileJob * open(const KUrl &url, QIODevice::OpenMode mode)
Open ( random access I/O )
Definition: filejob.cpp:211
QString
QStringList
KCrashBookmarkImporter
A class for importing all crash sessions as bookmarks.
Definition: kbookmarkimporter_crash.h:35
KCrashBookmarkImporter::KCrashBookmarkImporter
KCrashBookmarkImporter(const QString &fileName)
Definition: kbookmarkimporter_crash.h:39
KBookmarkImporterBase
A class for importing NS bookmarks KEditBookmarks uses it to insert bookmarks into its DOM tree...
Definition: kbookmarkimporter.h:34
KCrashBookmarkImporterImpl
A class for importing all crash sessions as bookmarks.
Definition: kbookmarkimporter_crash.h:55
KBookmarkImporterBase::parse
virtual void parse()=0
KCrashBookmarkImporter::~KCrashBookmarkImporter
~KCrashBookmarkImporter()
Definition: kbookmarkimporter_crash.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:52 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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

Search



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