compile
[kdegraphics.git] / okular / core / pagecontroller_p.h
blobc0530c66d72edcbcf09691f323c1f4061738dea5
1 /***************************************************************************
2 * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef _OKULAR_PAGECONTROLLER_P_H_
11 #define _OKULAR_PAGECONTROLLER_P_H_
13 #include <QtCore/QObject>
15 namespace ThreadWeaver {
16 class Job;
19 namespace Okular {
21 class Page;
22 class RotationJob;
24 class PageController : public QObject
26 Q_OBJECT
28 public:
29 /**
30 * Constructor. No NOT use this, NEVER! Use the static self() instead.
32 PageController();
34 ~PageController();
36 static PageController * self();
38 void addRotationJob( RotationJob *job );
40 signals:
41 void rotationFinished( int page );
43 private slots:
44 void imageRotationDone(ThreadWeaver::Job*);
46 private:
47 void initWeaver();
52 #endif