forked from 0xb8/WiseTagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tagger_commandline.h
40 lines (32 loc) · 1.02 KB
/
tagger_commandline.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* Copyright © 2021 cat <[email protected]>
* This program is free software. It comes without any warranty, to the extent
* permitted by applicable law. You can redistribute it and/or modify it under
* the terms of the Do What The Fuck You Want To Public License, Version 2, as
* published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
#ifndef TAGGER_CLI_H
#define TAGGER_CLI_H
#include <QObject>
#include <QString>
#include "tag_parser.h"
class TaggerCommandLineInterface : public QObject
{
Q_OBJECT
public:
TaggerCommandLineInterface();
~TaggerCommandLineInterface() = default;
/*!
* \brief Parse command line arguments and check/fix tags if necessary.
* \param args Command line arguments.
* \retval 0 Successfully parsed arguments.
* \retval 1 Error.
*/
int parseArguments(QStringList args);
private:
QString get_fixed_path(QString path);
TagParser m_parser;
TagParser::FixOptions m_fix_opts;
QString m_normal_tagfile_pattern;
QString m_override_tagfile_pattern;
};
#endif // TAGGER_CLI_H