KBookmarks

kbookmarkdombuilder.h
1 /*
2  This file is part of the KDE project
3  SPDX-FileCopyrightText: 2003 Alexander Kellett <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef __kbookmarkdombuilder_h
9 #define __kbookmarkdombuilder_h
10 
11 #include <QtCore/QStack>
12 #include <QtCore/QObject>
13 #include <kbookmark.h>
14 
15 class KBOOKMARKS_EXPORT KBookmarkDomBuilder : public QObject
16 {
17  Q_OBJECT
18 public:
19  KBookmarkDomBuilder(const KBookmarkGroup &group, KBookmarkManager *);
20  virtual ~KBookmarkDomBuilder();
21  void connectImporter(const QObject *);
22 protected Q_SLOTS:
23  void newBookmark(const QString &text, const QString &url, const QString &additionalInfo);
24  void newFolder(const QString &text, bool open, const QString &additionalInfo);
25  void newSeparator();
26  void endFolder();
27 private:
28  QStack<KBookmarkGroup> m_stack;
29  QList<KBookmarkGroup> m_list;
30  KBookmarkManager *m_manager;
31  class KBookmarkDomBuilderPrivate *p;
32 };
33 
34 #endif
This class implements the reading/writing of bookmarks in XML.
A group of bookmarks.
Definition: kbookmark.h:316
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:38:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.