File indexing completed on 2024-11-10 04:40:08
0001 /* 0002 SPDX-FileCopyrightText: 2009 Thomas McGuire <mcguire@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #pragma once 0007 0008 #include "collection.h" 0009 0010 #include <QObject> 0011 0012 namespace Akonadi 0013 { 0014 class CollectionCreateJob; 0015 class ItemCreateJob; 0016 } 0017 0018 class AutoIncrementTest : public QObject 0019 { 0020 Q_OBJECT 0021 private Q_SLOTS: 0022 void initTestCase(); 0023 void testItemAutoIncrement(); 0024 void testCollectionAutoIncrement(); 0025 0026 private: 0027 Akonadi::ItemCreateJob *createItemCreateJob(); 0028 Akonadi::CollectionCreateJob *createCollectionCreateJob(int number); 0029 Akonadi::Collection itemTargetCollection; 0030 Akonadi::Collection collectionTargetCollection; 0031 };