~ubuntu-branches/ubuntu/raring/recorditnow/raring

« back to all changes in this revision

Viewing changes to src/plugins/encoder/mencoder/mencoderencoder.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-09 14:54:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110109145401-gyckb4airz4fio50
Tags: 0.8.1-0ubuntu1
* New upstream release. (LP: #681270)
  - Update debian/copyright.
* Build-depend on recordmydesktop.
* Add a watch file.
* Drop 01_fix_ftbfs_kwarning_call.diff, fixed upstream.
* Add 01_joschy_install_to_usr_lib.diff.
* Add 02_fix_ftbfs_no-add-needed.diff.
* Add 03_dont_install_header_files.diff.
* Replace dependency on libpolkit-qt-1-0 with policykit-1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (C) 2009 by Kai Dombrowe <just89@gmx.de>                    *
 
2
 *   Copyright (C) 2010 by Kai Dombrowe <just89@gmx.de>                    *
3
3
 *                                                                         *
4
4
 *   This program is free software; you can redistribute it and/or modify  *
5
5
 *   it under the terms of the GNU General Public License as published by  *
43
43
 
44
44
 
45
45
private:
 
46
    enum State {
 
47
        WorkDir = 0,
 
48
        RemoveOutputFile = 1,
 
49
        RemoveTmpFile = 2
 
50
    };
 
51
 
46
52
    KProcess *m_mencoder;
47
53
    QString m_outputFile;
48
54
    QString m_tmpFile;
49
55
    bool m_paused;
50
56
    bool m_stopped;
 
57
    QString m_currentId;
 
58
    State m_state;
 
59
    QString m_command;
 
60
    int m_status;
 
61
    AbstractEncoder::Data m_data;
51
62
 
52
 
    bool remove(const QString &file);
53
 
    bool move(const QString &from, const QString &to);
 
63
    void prepare();
 
64
    void startMencoder();
 
65
    void finish();
54
66
 
55
67
 
56
68
private slots:
58
70
    void mencoderFinished(const int &ret);
59
71
 
60
72
 
 
73
protected:
 
74
    void jobFinished(const QString &id, const QString &errorString);
 
75
 
 
76
 
61
77
};
62
78
 
63
79