KPeople

abstractfieldwidgetfactory.h
1 /*
2  SPDX-FileCopyrightText: 2013 David Edmundson <[email protected]>
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 
14 namespace KPeople
15 {
16 class AbstractFieldWidgetFactoryPrivate;
17 class PersonData;
18 
19 class KPEOPLEWIDGETS_EXPORT AbstractFieldWidgetFactory : public QObject
20 {
21  Q_OBJECT
22 public:
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:34
QString label(StandardShortcut id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Aug 14 2022 04:09:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.