okular/core/pagecontroller_p.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
771 B
C
Raw Normal View History

2021-05-24 07:25:56 +00:00
/*
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_
2018-08-31 09:23:45 +00:00
#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