Commit aa94e055 authored by Rafał Malinowski's avatar Rafał Malinowski

core: add execution-arrguments class

Signed-off-by: Rafał Malinowski's avatarRafał Malinowski <rafal.przemyslaw.malinowski@gmail.com>
parent 059c1905
......@@ -125,6 +125,7 @@ set (kadu_SUBDIRS
contacts
core
dom
execution-arguments
file-transfer
formatted-string
gui
......@@ -339,6 +340,7 @@ kadu_api_directories (kadu-core
contacts/model
core
dom
execution-arguments
file-transfer
formatted-string
gui
......
set (execution-arguments_SRCS
execution-arguments.cpp
)
kadu_subdirectory (execution-arguments "${execution-arguments_SRCS}" "" "")
/*
* %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/>.
*/
#include "execution-arguments.h"
ExecutionArguments::ExecutionArguments(bool queryVersion, bool queryUsage, QString debugMask, QString configurationDirectory, QStringList openIds) :
m_queryVersion{queryVersion},
m_queryUsage{queryUsage},
m_debugMask{std::move(debugMask)},
m_configurationDirectory{std::move(configurationDirectory)},
m_openIds{std::move(openIds)}
{
}
bool ExecutionArguments::queryVersion() const
{
return m_queryVersion;
}
bool ExecutionArguments::queryUsage() const
{
return m_queryUsage;
}
QString ExecutionArguments::debugMask() const
{
return m_debugMask;
}
QString ExecutionArguments::configurationDirectory() const
{
return m_configurationDirectory;
}
QStringList ExecutionArguments::openIds() const
{
return m_openIds;
}
/*
* %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>
class KADUAPI ExecutionArguments final
{
public:
ExecutionArguments(bool queryVersion, bool queryUsage, QString debugMask, QString configurationDirectory, QStringList openIds);
bool queryVersion() const;
bool queryUsage() const;
QString debugMask() const;
QString configurationDirectory() const;
QStringList openIds() const;
private:
bool m_queryVersion;
bool m_queryUsage;
QString m_debugMask;
QString m_configurationDirectory;
QStringList m_openIds;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment