execution-arguments.h 1.81 KB
Newer Older
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
/*
 * %kadu copyright begin%
 * Copyright 2014 Rafał Malinowski (rafal.przemyslaw.malinowski@gmail.com)
 * %kadu copyright end%
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

#include "exports.h"

#include <QtCore/QString>
#include <QtCore/QStringList>

27 28 29 30 31 32 33 34 35 36 37
/**
 * @addtogroup Core
 * @{
 */

/**
 * @class ExecutionArguments
 * @short Arguments used to run Kadu.
 *
 * All run arguments recognized by Kadu are stored in this class.
 */
38 39 40 41
class KADUAPI ExecutionArguments final
{

public:
42
	ExecutionArguments(bool queryVersion, bool queryUsage, QString debugMask, QString profileDirectory, QStringList openIds);
43

44 45 46
	/**
	 * @return True if version information is requested.
	 */
47
	bool queryVersion() const;
48 49 50 51

	/**
	 * @return True if usage information is requested.
	 */
52
	bool queryUsage() const;
53 54 55 56 57

	/**
	 * @return Requested value of debug mask.
	 * @todo change to int
	 */
58
	QString debugMask() const;
59 60

	/**
61
	 * @return Requested value of profile directory.
62
	 */
63
	QString profileDirectory() const;
64 65 66 67

	/**
	 * @return Requested list of ids to open chat with.
	 */
68 69 70 71 72 73
	QStringList openIds() const;

private:
	bool m_queryVersion;
	bool m_queryUsage;
	QString m_debugMask;
74
	QString m_profileDirectory;
75 76 77
	QStringList m_openIds;

};
78 79 80 81

/**
 * @}
 */