KPeople

abstractfieldwidgetfactory.h
1/*
2 SPDX-FileCopyrightText: 2013 David Edmundson <davidedmundson@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef ABSTRACTFIELDWIDGETFACTORY_H
8#define ABSTRACTFIELDWIDGETFACTORY_H
9
10#include <QWidget>
11
12#include <kpeople/widgets/kpeoplewidgets_export.h>
13
14namespace KPeople
15{
16class AbstractFieldWidgetFactoryPrivate;
17class PersonData;
18
19class KPEOPLEWIDGETS_EXPORT AbstractFieldWidgetFactory : public QObject
20{
21 Q_OBJECT
22public:
23 explicit AbstractFieldWidgetFactory(QObject *parent = nullptr);
24 ~AbstractFieldWidgetFactory() override;
25
26 virtual QString label() const = 0;
27 virtual int sortWeight() const
28 {
29 return 100;
30 }
31
32 virtual QWidget *createDetailsWidget(const KPeople::PersonData &person, QWidget *parent) const = 0;
33};
34}
35
36#endif // ABSTRACTFIELDWIDGETFACTORY_H
Allows to query the information about a given person.
Definition persondata.h:35
QString label(StandardShortcut id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.