1
0
mirror of https://invent.kde.org/network/krdc synced 2024-07-08 20:05:56 +00:00
krdc/vnc/vncviewfactory.h
Nicolas Fella 34c1e56e12 Add and make use of ECM clang-format integration
Format the code according to KDE coding style and add
a commit hook to ensure it stays that way.

This is common practice among other KDE projects
2024-01-28 16:16:28 +01:00

39 lines
892 B
C++

/*
SPDX-FileCopyrightText: 2008 Urs Wolfer <uwolfer@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef VNCVIEWFACTORY_H
#define VNCVIEWFACTORY_H
#include "remoteviewfactory.h"
#include "vncpreferences.h"
#include "vncview.h"
class VncViewFactory : public RemoteViewFactory
{
Q_OBJECT
public:
explicit VncViewFactory(QObject *parent, const QVariantList &args);
~VncViewFactory() override;
bool supportsUrl(const QUrl &url) const override;
RemoteView *createView(QWidget *parent, const QUrl &url, KConfigGroup configGroup) override;
HostPreferences *createHostPreferences(KConfigGroup configGroup, QWidget *parent) override;
QString scheme() const override;
QString connectActionText() const override;
QString connectButtonText() const override;
QString connectToolTipText() const override;
};
#endif // VNCVIEWFACTORY_H