~mutse-young/ubuntu-docviewer-app/trunk

« back to all changes in this revision

Viewing changes to src/plugin/poppler-qml-plugin/pdfthread.h

  • Committer: Tarmac
  • Author(s): Stefano Verzegnassi
  • Date: 2015-02-03 19:52:55 UTC
  • mfrom: (63.1.11 10-prepare-poppler-plugin)
  • Revision ID: tarmac-20150203195255-y1cj8wut990444oo
Renamed classes in QML Poppler plugin.

Approved by Ubuntu Phone Apps Jenkins Bot, Riccardo Padovani.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2014 Canonical, Ltd.
 
2
 * Copyright (C) 2014-2015 Canonical, Ltd.
3
3
 *
4
4
 * This program is free software: you can redistribute it and/or modify it
5
5
 * under the terms of the GNU General Public License version 3, as published
16
16
 * Author: Stefano Verzegnassi <stefano92.100@gmail.com>
17
17
 */
18
18
 
19
 
#ifndef PAGESWORKERTHREAD_H
20
 
#define PAGESWORKERTHREAD_H
 
19
#ifndef PDFTHREAD_H
 
20
#define PDFTHREAD_H
21
21
 
22
22
#include <QThread>
23
23
#include <poppler/qt5/poppler-qt5.h>
24
24
 
25
25
typedef QList<Poppler::Page*> PdfPagesList;
26
26
 
27
 
class PDFPagesWorkerThread : public QThread
 
27
class PdfThread : public QThread
28
28
{
29
29
    Q_OBJECT
 
30
 
 
31
public:
30
32
    void run();
31
 
 
32
 
public:
33
33
    void setDocument(Poppler::Document *document);
34
34
 
 
35
Q_SIGNALS:
 
36
    void resultReady(PdfPagesList pages);
 
37
 
35
38
private:
36
39
    Poppler::Document *m_document;
37
 
 
38
 
signals:
39
 
    void resultReady(PdfPagesList pages);
40
40
};
41
41
 
42
 
#endif // PAGESWORKERTHREAD_H
 
42
#endif // PDFTHREAD_H