1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
/* This file is part of the KDE project
SPDX-FileCopyrightText: 2000 David Faure <faure@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __kserviceselectdlg_h
#define __kserviceselectdlg_h
#include <QDialog>
#include <QListWidget>
#include <KPluginMetaData>
class QDialogButtonBox;
class KPartSelectDlg : public QDialog
{
Q_OBJECT
public:
/**
* Create a dialog to select a service (not application) for a given service type.
*
* @param serviceType the service type we want to choose a service for.
* @param value is the initial service to select (not implemented currently)
* @param parent parent widget
*/
explicit KPartSelectDlg(QWidget *parent = nullptr);
~KPartSelectDlg() override;
/**
* @return the chosen service
*/
KPluginMetaData chosenPart();
private:
QListWidget *m_listbox;
QDialogButtonBox *m_buttonBox;
};
#endif
|