File indexing completed on 2025-03-16 07:47:52
0001 /* 0002 SPDX-FileCopyrightText: 2008 Urs Wolfer <uwolfer@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef TESTVIEWFACTORY_H 0008 #define TESTVIEWFACTORY_H 0009 0010 #include "remoteviewfactory.h" 0011 0012 #include "testview.h" 0013 0014 class TestViewFactory : public RemoteViewFactory 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 explicit TestViewFactory(QObject *parent, const QVariantList &args); 0020 0021 ~TestViewFactory() override; 0022 0023 bool supportsUrl(const QUrl &url) const override; 0024 0025 RemoteView *createView(QWidget *parent, const QUrl &url, KConfigGroup configGroup) override; 0026 0027 HostPreferences *createHostPreferences(KConfigGroup configGroup, QWidget *parent) override; 0028 0029 QString scheme() const override; 0030 0031 QString connectActionText() const override; 0032 0033 QString connectButtonText() const override; 0034 0035 QString connectToolTipText() const override; 0036 }; 0037 0038 #endif // TESTVIEWFACTORY_H