• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

digikam

actionthread.h

Go to the documentation of this file.
00001 /* ============================================================
00002  *
00003  * This file is a part of digiKam project
00004  * http://www.digikam.org
00005  *
00006  * Date        : 2009-02-06
00007  * Description : Thread actions manager.
00008  *
00009  * Copyright (C) 2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
00010  *
00011  * This program is free software; you can redistribute it
00012  * and/or modify it under the terms of the GNU General
00013  * Public License as published by the Free Software Foundation;
00014  * either version 2, or (at your option)
00015  * any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * ============================================================ */
00023 
00024 #ifndef ACTIONTHREAD_H
00025 #define ACTIONTHREAD_H
00026 
00027 // Qt includes
00028 
00029 #include <QThread>
00030 
00031 // KDE includes
00032 
00033 #include <kurl.h>
00034 
00035 // Local includes
00036 
00037 #include "batchtool.h"
00038 #include "actions.h"
00039 
00040 namespace Digikam
00041 {
00042 
00043 class ActionThreadPriv;
00044 
00045 class ActionThread : public QThread
00046 {
00047     Q_OBJECT
00048 
00049 public:
00050 
00051     ActionThread(QObject *parent);
00052     ~ActionThread();
00053 
00054     void setWorkingUrl(const KUrl& workingUrl);
00055     void setExifSetOrientation(bool set);
00056 
00057     void processFile(const AssignedBatchTools& item);
00058 
00059     void cancel();
00060 
00061 Q_SIGNALS:
00062 
00063     void starting(const Digikam::ActionData& ad);
00064     void finished(const Digikam::ActionData& ad);
00065 
00066 protected:
00067 
00068     void run();
00069 
00070 private:
00071 
00072     ActionThreadPriv* const d;
00073 };
00074 
00075 }  // namespace Digikam
00076 
00077 #endif /* ACTIONTHREAD_H */

digikam

Skip menu "digikam"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • digikam
Generated for API Reference by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal