~ubuntu-branches/debian/sid/chessx/sid

« back to all changes in this revision

Viewing changes to src/database/ctgbookwriter.h

  • Committer: Package Import Robot
  • Author(s): Niklas Fiekas
  • Date: 2014-10-06 18:26:02 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20141006182602-4kpiyz31knghkbrq
Tags: 1.2.2-1
* New upstream release.
  - Fix crash and data loss when trying to save a database other than the
    currently selected one.
  - Exclude autogenerated files from source tarball; fixes lintian warning
    source-contains-autogenerated-visual-c++-file.
  - Remove debian/patches/desktop-file.patch; applied upstream.
  - Remove debian/patches/desktop-mime-but-no-exec-code.patch; applied
    upstream.
* debian/chessx.6:
  - Adjust tagline in manpage.
* debian/rules:
  - Remove duplicate QT_SELECT=5.
* debian/control:
  - Update standards version to 3.9.6.0; no relevant changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CTGBOOKWRITER_H
 
2
#define CTGBOOKWRITER_H
 
3
 
 
4
#include <QThread>
 
5
#include "database.h"
 
6
#include "ctgdatabase.h"
 
7
 
 
8
class CtgBookWriter : public QThread
 
9
{
 
10
    Q_OBJECT
 
11
public:
 
12
    explicit CtgBookWriter(QObject *parent = 0);
 
13
    ~CtgBookWriter();
 
14
    void writeBookForDatabase(Database* src, const QString &out, int maxPly, int minGame, bool uniform);
 
15
 
 
16
signals:
 
17
    void bookBuildFinished(QString);
 
18
    void bookBuildError(QString);
 
19
 
 
20
public slots:
 
21
    void cancel();
 
22
 
 
23
    // QThread interface
 
24
protected:
 
25
    virtual void run();
 
26
 
 
27
    QPointer<Database> m_source;
 
28
    QPointer<CtgDatabase> m_destination;
 
29
    QString m_out;
 
30
 
 
31
    bool m_break;
 
32
};
 
33
 
 
34
#endif // CTGBOOKWRITER_H