AusweisApp2/src/global/BuildHelper.h

39 lines
565 B
C
Raw Normal View History

2017-07-03 09:30:10 +02:00
/*
* \brief Helper to get build date and time.
*
2018-03-28 15:10:51 +02:00
* \copyright Copyright (c) 2014-2018 Governikus GmbH & Co. KG, Germany
2017-07-03 09:30:10 +02:00
*/
#pragma once
2017-07-03 09:33:28 +02:00
#include <QtGlobal>
2017-07-03 09:30:10 +02:00
namespace governikus
{
class BuildHelper
{
private:
static const char* mDateTime;
BuildHelper() = delete;
~BuildHelper() = delete;
public:
static const char* getDateTime()
{
return mDateTime;
}
2017-07-03 09:33:28 +02:00
#ifdef Q_OS_ANDROID
static int getVersionCode();
static int getVersionCode(const QString& pPackageName);
2017-09-15 10:23:30 +02:00
static QString getPackageName();
2017-07-03 09:33:28 +02:00
#endif
2017-07-03 09:30:10 +02:00
};
} /* namespace governikus */