File indexing completed on 2024-04-21 04:58:19
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 1998, 1999, 2016 David Faure <faure@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KONQMAINWINDOWFACTORY_H 0008 #define KONQMAINWINDOWFACTORY_H 0009 0010 #include "konqopenurlrequest.h" 0011 #include "konqprivate_export.h" 0012 0013 class KonqMainWindow; 0014 class QUrl; 0015 0016 namespace KonqMainWindowFactory 0017 { 0018 0019 /** 0020 * Create a new empty window. 0021 * This layer on top of the KonqMainWindow constructor allows to reuse preloaded windows, 0022 * and offers restoring windows after a crash. 0023 * Note: the caller must call show() 0024 */ 0025 KonqMainWindow *createEmptyWindow(); 0026 0027 KonqMainWindow *createPreloadWindow(); 0028 0029 /** 0030 * Create a new window for @p url using @p args and @p req. 0031 * This layer on top of the KonqMainWindow constructor allows to reuse preloaded windows, 0032 * and offers restoring windows after a crash. 0033 * Note: the caller must call show() 0034 */ 0035 KONQ_TESTS_EXPORT KonqMainWindow *createNewWindow(const QUrl &url = QUrl(), 0036 const KonqOpenURLRequest &req = KonqOpenURLRequest()); 0037 0038 KonqMainWindow *findPreloadedWindow(); 0039 0040 }; 0041 0042 #endif // KONQMAINWINDOWFACTORY_H