File indexing completed on 2025-01-05 03:58:16
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2014-10-17 0007 * Description : test for implementation of ditemslist api 0008 * 0009 * SPDX-FileCopyrightText: 2011-2012 by A Janardhan Reddy <annapareddyjanardhanreddy at gmail dot com> 0010 * SPDX-FileCopyrightText: 2011-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_DITEMS_LIST_GUI_H 0017 #define DIGIKAM_DITEMS_LIST_GUI_H 0018 0019 // Qt includes 0020 0021 #include <QUrl> 0022 #include <QDialog> 0023 0024 // Local includes 0025 0026 #include "actionthreadbase.h" 0027 0028 using namespace Digikam; 0029 0030 class ActionThread : public ActionThreadBase 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 0036 explicit ActionThread(QObject* const parent); 0037 ~ActionThread() override; 0038 0039 void rotate(const QList<QUrl>& list); 0040 0041 Q_SIGNALS: 0042 0043 void starting(const QUrl& url); 0044 void finished(const QUrl& url); 0045 void failed(const QUrl& url, const QString& err); 0046 void progress(const QUrl& url, int percent); 0047 0048 private Q_SLOTS: 0049 0050 void slotJobDone(); 0051 void slotJobProgress(int); 0052 void slotJobStarted(); 0053 }; 0054 0055 // ----------------------------------------------------- 0056 0057 class DItemsListTest : public QDialog 0058 { 0059 Q_OBJECT 0060 0061 public: 0062 0063 explicit DItemsListTest(QWidget* const parent = nullptr); 0064 ~DItemsListTest() override; 0065 0066 private Q_SLOTS: 0067 0068 void slotStart(); 0069 void slotStarting(const QUrl&); 0070 void slotFinished(const QUrl&); 0071 void slotFailed(const QUrl&, const QString&); 0072 0073 private: 0074 0075 class Private; 0076 Private* const d; 0077 }; 0078 0079 #endif // DIGIKAM_DITEMS_LIST_TEST_H