| 1 |
/* This file is part of the KDE project |
| 2 |
SPDX-FileCopyrightText: 2000 Simon Hausmann <[email protected]> |
| 3 |
2006 Martin Pfeiffer <[email protected]> |
| 4 |
|
| 5 |
SPDX-License-Identifier: LGPL-2.0-or-later |
| 6 |
*/ |
| 7 |
|
| 8 |
#ifndef KOPAGEWIDGETITEM_H |
| 9 |
#define KOPAGEWIDGETITEM_H |
| 10 |
|
| 11 |
#include "kowidgets_export.h" |
| 12 |
|
| 13 |
class QWidget; |
| 14 |
class QString; |
| 15 |
|
| 16 |
// This class can be implemented when we want to extend the |
| 17 |
// dialog with new, specific pages. |
| 18 |
class KOWIDGETS_EXPORT KoPageWidgetItem |
| 19 |
{ |
| 20 |
public: |
| 21 |
virtual ~KoPageWidgetItem() {} |
| 22 |
|
| 23 |
virtual QWidget *widget() = 0; |
| 24 |
virtual QString name() const = 0; |
| 25 |
virtual QString iconName() const = 0; |
| 26 |
virtual bool shouldDialogCloseBeVetoed() = 0; |
| 27 |
virtual void apply() = 0; |
| 28 |
}; |
| 29 |
|
| 30 |
|
| 31 |
#endif // KOPAGEWIDGETITEM_H |