File indexing completed on 2024-07-21 12:05:59

0001 //  -*- c-basic-offset:4; indent-tabs-mode:nil -*-
0002 /*
0003     This file is part of the KDE project
0004     SPDX-FileCopyrightText: 2003 Alexander Kellett <lypanov@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #ifndef __kbookmarkmenu_p_h__
0010 #define __kbookmarkmenu_p_h__
0011 
0012 #include <QTreeWidget>
0013 
0014 #include "kbookmark.h"
0015 #include "kbookmarkmanager.h"
0016 
0017 class QString;
0018 class KBookmark;
0019 class KBookmarkGroup;
0020 
0021 #define KEDITBOOKMARKS_BINARY "keditbookmarks"
0022 
0023 class KBookmarkTreeItem : public QTreeWidgetItem
0024 {
0025 public:
0026     explicit KBookmarkTreeItem(QTreeWidget *tree);
0027     KBookmarkTreeItem(QTreeWidgetItem *parent, QTreeWidget *tree, const KBookmarkGroup &bk);
0028     ~KBookmarkTreeItem() override;
0029     QString address();
0030 
0031 private:
0032     QString m_address;
0033 };
0034 
0035 class KBookmarkSettings
0036 {
0037 public:
0038     bool m_advancedaddbookmark;
0039     bool m_contextmenu;
0040     static KBookmarkSettings *s_self;
0041     static void readSettings();
0042     static KBookmarkSettings *self();
0043 };
0044 
0045 #endif