mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
31 lines
1.1 KiB
C++
31 lines
1.1 KiB
C++
/* Copyright (C) 2016
|
|
* swift project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
|
* contained in the LICENSE file.
|
|
*/
|
|
|
|
//! \file
|
|
|
|
#include "blackmisc/applicationinfo.h"
|
|
|
|
namespace BlackMisc
|
|
{
|
|
CApplicationInfo::CApplicationInfo() = default;
|
|
|
|
CApplicationInfo::CApplicationInfo(Application app, ApplicationMode mode, const QString &exePath, const QString &version, const CProcessInfo &process) :
|
|
m_app(app),
|
|
m_mode(mode),
|
|
m_exePath(exePath),
|
|
m_version(version),
|
|
m_process(process)
|
|
{}
|
|
|
|
QString CApplicationInfo::convertToQString(bool i18n) const
|
|
{
|
|
return QString("{ %1, %2, %3, %4, %5 }").arg(QString::number(m_app), QString::number(m_mode), m_exePath, m_version, m_process.convertToQString(i18n));
|
|
}
|
|
}
|