1 | /* |
2 | This file is part of the KDE libraries |
3 | SPDX-FileCopyrightText: 2000, 2006 David Faure <faure@kde.org> |
4 | |
5 | SPDX-License-Identifier: LGPL-2.0-only |
6 | */ |
7 | |
8 | #include <QString> |
9 | |
10 | #include "kbookmarks_export.h" |
11 | |
12 | class KBOOKMARKS_EXPORT KEditBookmarks |
13 | { |
14 | public: |
15 | class OpenResult |
16 | { |
17 | public: |
18 | bool sucess() |
19 | { |
20 | return m_sucess; |
21 | } |
22 | |
23 | QString errorMessage() const |
24 | { |
25 | return m_errorMessage; |
26 | } |
27 | |
28 | private: |
29 | bool m_sucess; |
30 | QString m_errorMessage; |
31 | friend KEditBookmarks; |
32 | }; |
33 | |
34 | void setBrowserMode(bool browserMode); |
35 | bool browserMode() const; |
36 | |
37 | OpenResult openForFile(const QString &file); |
38 | |
39 | OpenResult openForFileAtAddress(const QString &file, const QString &address); |
40 | |
41 | private: |
42 | OpenResult startKEditBookmarks(const QStringList &args); |
43 | |
44 | bool m_browserMode = false; |
45 | }; |
46 | |