File indexing completed on 2024-04-28 05:51:09

0001 // Added by qt3to4:
0002 #include <QList>
0003 /*
0004  *  SPDX-FileCopyrightText: 2002-2003 Jesper K. Pedersen <blackie@kde.org>
0005  *
0006  *  SPDX-License-Identifier: LGPL-2.0-only
0007  **/
0008 #ifndef __kmultiformlistboxshower
0009 #define __kmultiformlistboxshower
0010 
0011 #include <QWidget>
0012 
0013 // -------------------------------- includes ------------------------------
0014 class KMultiFormListBoxEntry;
0015 //-------------------------------------------------------------------------
0016 typedef QList<KMultiFormListBoxEntry *> KMultiFormListBoxEntryList;
0017 
0018 /**
0019    Abstract class defining the interface for widgets showing a number of @ref KMultiFormListBoxEntry.
0020 
0021    @internal
0022 */
0023 class KMultiFormListBoxShower
0024 {
0025 public:
0026     virtual ~KMultiFormListBoxShower()
0027     {
0028     }
0029 
0030     virtual KMultiFormListBoxEntryList elements() = 0;
0031 
0032     /** Appends the given argument to the list */
0033     virtual void append(KMultiFormListBoxEntry *) = 0;
0034 
0035     /** Return the element as a QWidget */
0036     virtual QWidget *qWidget() = 0;
0037 
0038     /** Adds an empty element. */
0039     virtual void addElement() = 0;
0040 
0041     /** Deletes an element at the given index. */
0042     virtual void delElement(QWidget *) = 0;
0043 
0044     /** Deletes any element from the list */
0045     virtual void delAnElement() = 0;
0046 };
0047 
0048 #endif /* kmultiformlistboxshower */