KBookmarks

kbookmarkdialog.h
1 /* This file is part of the KDE libraries
2  Copyright 2007 Daniel Teske <[email protected]>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 #ifndef __kbookmarkdialog_h
19 #define __kbookmarkdialog_h
20 
21 #include "kbookmark.h"
22 #include "kbookmarkowner.h"
23 #include <QDialog>
24 
25 class KBookmarkManager;
26 class KBookmarkDialogPrivate;
27 
37 class KBOOKMARKS_EXPORT KBookmarkDialog : public QDialog
38 {
39  Q_OBJECT
40 
41 public:
45  KBookmarkDialog(KBookmarkManager *manager, QWidget *parent = nullptr);
50  KBookmark editBookmark(const KBookmark &bm);
55  KBookmark addBookmark(const QString &title, const QUrl &url, const QString &icon, KBookmark parent = KBookmark());
60  KBookmarkGroup addBookmarks(const QList<KBookmarkOwner::FutureBookmark> &list, const QString &name = QString(), KBookmarkGroup parent = KBookmarkGroup());
64  KBookmarkGroup createNewFolder(const QString &name, KBookmark parent = KBookmark());
68  KBookmarkGroup selectFolder(KBookmark start = KBookmark());
69 
70  ~KBookmarkDialog() override;
71 protected:
72  void accept() override;
73 
74 protected Q_SLOTS:
75  void newFolderButton();
76 
77 private:
78  KBookmarkDialogPrivate *const d;
79  friend class KBookmarkDialogPrivate;
80 };
81 
82 #endif
83 
This class implements the reading/writing of bookmarks in XML.
A group of bookmarks.
Definition: kbookmark.h:327
virtual void accept()
This class provides a Dialog for editing properties, adding Bookmarks and creating new folders...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jul 3 2020 22:39:07 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.