Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91559d6
commit 8352d99
Showing
18 changed files
with
117 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion
2
...net.bartkessels.SimpleConvert.appdata.xml → ...net.bartkessels.simpleconvert.appdata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "conversioncontroller.h" | ||
|
||
ConversionController::ConversionController(QObject *parent): | ||
QObject(parent) | ||
{ | ||
|
||
} | ||
|
||
ConversionController::~ConversionController() | ||
{ | ||
/* Kill current process if there | ||
* are files being converted | ||
*/ | ||
if (filesConverted > 0) { | ||
ffmpegProcess->kill(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include <QObject> | ||
#include <QProcess> | ||
|
||
class ConversionController: public QObject | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit ConversionController(QObject *parent = 0); | ||
~ConversionController(); | ||
|
||
void convertFiles(); | ||
|
||
signals: | ||
void missingFFMPEGBinary(); | ||
void noOutputDirectory(); | ||
void on_fileConverted(int filesConverted, int totalFiles); | ||
|
||
private: | ||
QProcess *ffmpegProcess; | ||
int totalFiles = 0; | ||
int filesConverted = 0; | ||
bool canceled = false; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters