Files
o3de/Code/Tools/AssetProcessor/native/utilities/IniConfiguration.h
T
Steve Pham b4a2edec6a Final update copyright headers to reference license files at the repo root (#1693)
* Final update copyright headers to reference license files at the repo root

Signed-off-by: spham <spham@amazon.com>

* Fix copyright validator unit tests to support the stale O3DE header scenario

Signed-off-by: spham <spham@amazon.com>
2021-06-30 19:51:55 -07:00

40 lines
979 B
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#ifndef INICONFIGURATION_H
#define INICONFIGURATION_H
#if !defined(Q_MOC_RUN)
#include <QDir>
#include <QString>
#include <QCoreApplication>
#endif
/** Reads the bootstrap file for listening port
*/
class IniConfiguration
: public QObject
{
Q_OBJECT
public:
explicit IniConfiguration(QObject* pParent = nullptr);
virtual ~IniConfiguration();
// Singleton pattern:
static const IniConfiguration* Get();
void parseCommandLine(QStringList cmdLine = QCoreApplication::arguments());
void readINIConfigFile(QDir dir = qApp->applicationDirPath());
quint16 listeningPort() const;
void SetListeningPort(quint16 port);
private:
quint16 m_listeningPort;
QString m_userConfigFilePath;
};
#endif // INICONFIGURATION_H