File indexing completed on 2024-04-28 03:52:41
0001 /* 0002 This file is part of the KDE libraries 0003 SPDX-FileCopyrightText: 2000, 2006 David Faure <faure@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-only 0006 */ 0007 0008 #include <QString> 0009 0010 #include "kbookmarks_export.h" 0011 0012 class KBOOKMARKS_EXPORT KEditBookmarks 0013 { 0014 public: 0015 class OpenResult 0016 { 0017 public: 0018 bool sucess() 0019 { 0020 return m_sucess; 0021 } 0022 0023 QString errorMessage() const 0024 { 0025 return m_errorMessage; 0026 } 0027 0028 private: 0029 bool m_sucess; 0030 QString m_errorMessage; 0031 friend KEditBookmarks; 0032 }; 0033 0034 void setBrowserMode(bool browserMode); 0035 bool browserMode() const; 0036 0037 OpenResult openForFile(const QString &file); 0038 0039 OpenResult openForFileAtAddress(const QString &file, const QString &address); 0040 0041 private: 0042 OpenResult startKEditBookmarks(const QStringList &args); 0043 0044 bool m_browserMode = false; 0045 };