mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
44 lines
771 B
C++
44 lines
771 B
C++
/*
|
|
SPDX-FileCopyrightText: 2007 Pino Toscano <pino@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef _OKULAR_PAGECONTROLLER_P_H_
|
|
#define _OKULAR_PAGECONTROLLER_P_H_
|
|
|
|
#include <QObject>
|
|
|
|
#include <threadweaver/queue.h>
|
|
|
|
namespace Okular
|
|
{
|
|
class Page;
|
|
class RotationJob;
|
|
|
|
/* There is one PageController per document. It receives notifications of
|
|
* completed RotationJobs */
|
|
class PageController : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
PageController();
|
|
~PageController() override;
|
|
|
|
void addRotationJob(RotationJob *job);
|
|
|
|
Q_SIGNALS:
|
|
void rotationFinished(int page, Okular::Page *okularPage);
|
|
|
|
private Q_SLOTS:
|
|
void imageRotationDone(const ThreadWeaver::JobPointer &job);
|
|
|
|
private:
|
|
ThreadWeaver::Queue m_weaver;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|