2
* Copyright (C) 2013 Canonical, Ltd.
5
* Nicolas d'Offay <nicolas.doffay@canonical.com>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; version 3.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
#ifndef COMMANDLINEPARSER_H
22
#define COMMANDLINEPARSER_H
31
* @brief The CommandLineParser is used to parse our commandline inputs and set
32
* parameters accordingly.
34
class CommandLineParser
39
bool processArguments(const QStringList& args);
41
bool isFullscreen() const { return m_isFullscreen; }
42
const QString &documentsDir() const { return m_documentsDir; }
43
bool pickModeEnabled() const { return m_pickMode; }
44
bool testability() const { return m_testability; }
45
const QString &documentFile() const { return m_documentFile; }
48
bool invalidArg(QString arg);
51
UrlHandler *m_urlHandler;
56
QString m_documentFile;
57
QString m_documentsDir;
60
#endif // COMMANDLINEPARSER_H