File indexing completed on 2024-05-12 05:22:34

0001 /*
0002     autotests/abstractkeylistmodeltest.h
0003 
0004     This file is part of libkleopatra's test suite.
0005     SPDX-FileCopyrightText: 2021 g10 Code GmbH
0006     SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #pragma once
0012 
0013 #include <QObject>
0014 
0015 namespace Kleo
0016 {
0017 class AbstractKeyListModel;
0018 }
0019 
0020 class AbstractKeyListModelTest : public QObject
0021 {
0022     Q_OBJECT
0023 private Q_SLOTS:
0024     void testCreation();
0025     void testSetKeys();
0026     void testSetGroups();
0027     void testKeys();
0028     void testIndex();
0029     void testIndexForGroup();
0030     void testAddGroup();
0031     void testSetData();
0032     void testRemoveGroup();
0033     void testClear();
0034 
0035 private:
0036     virtual Kleo::AbstractKeyListModel *createModel() = 0;
0037 };