1 /* ============================================================ 2 * 3 * This file is a part of digiKam project 4 * https://www.digikam.org 5 * 6 * Date : 2012-10-23 7 * Description : a command line tool to test DImg image loader 8 * 9 * Copyright (C) 2012-2021 by Gilles Caulier <caulier dot gilles at gmail dot com> 10 * 11 * This program is free software; you can redistribute it 12 * and/or modify it under the terms of the GNU General 13 * Public License as published by the Free Software Foundation; 14 * either version 2, or (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * ============================================================ */ 22 23 #ifndef DIGIKAM_LOAD_SAVE_THREAD_CLI_H 24 #define DIGIKAM_LOAD_SAVE_THREAD_CLI_H 25 26 // Qt includes 27 28 #include <QString> 29 #include <QApplication> 30 31 // Local includes 32 33 #include "dimg.h" 34 #include "loadingdescription.h" 35 #include "loadsavethread.h" 36 37 using namespace Digikam; 38 39 class LoadSaveThreadTest : public QApplication 40 { 41 Q_OBJECT 42 43 public: 44 45 explicit LoadSaveThreadTest(int& argc, char** argv); 46 47 private Q_SLOTS: 48 49 void slotImageLoaded(const LoadingDescription&, const DImg&); 50 void slotImageSaved(const QString&, bool); 51 void slotLoadingProgress(const LoadingDescription&, float); 52 void slotSavingProgress(const QString&, float); 53 54 private: 55 56 LoadSaveThread* m_thread; 57 }; 58 59 #endif // DIGIKAM_LOAD_SAVE_THREAD_CLI_H 60