git mv Code\Sandbox\Plugins Code/Editor/Plugins
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "FunctorValidator.h"
|
||||
|
||||
namespace ProjectSettingsTool
|
||||
{
|
||||
namespace Validators
|
||||
{
|
||||
namespace Internal
|
||||
{
|
||||
// Returns true if file is readable and the correct mime type
|
||||
FunctorValidator::ReturnType FileReadableAndCorrectType(const QString& path, const QString& fileType);
|
||||
}
|
||||
|
||||
static const int maxAndroidVersion = 2100000000;
|
||||
|
||||
// Returns true if valid cross platform file or directory name
|
||||
FunctorValidator::ReturnType FileName(const QString& name);
|
||||
// Returns true if valid cross platform file or directory name or empty
|
||||
FunctorValidator::ReturnType FileNameOrEmpty(const QString& name);
|
||||
// Returns true if string isn't empty
|
||||
FunctorValidator::ReturnType IsNotEmpty(const QString& value);
|
||||
// Returns true if string is valid as a boolean
|
||||
FunctorValidator::ReturnType BoolString(const QString& value);
|
||||
// Returns true if string is valid android package and apple bundle identifier
|
||||
FunctorValidator::ReturnType PackageName(const QString& name);
|
||||
// Returns true if valid android version number
|
||||
FunctorValidator::ReturnType VersionNumber(const QString& value);
|
||||
// Returns true if valid ios version number
|
||||
FunctorValidator::ReturnType IOSVersionNumber(const QString& value);
|
||||
// Returns true if Public App Key is valid length
|
||||
FunctorValidator::ReturnType PublicAppKeyOrEmpty(const QString& value);
|
||||
// Returns true if path is empty or a valid xml file relative to <build dir>
|
||||
FunctorValidator::ReturnType ValidXmlOrEmpty(const QString& path);
|
||||
// Returns true if path is empty or a valid png file
|
||||
FunctorValidator::ReturnType ValidPngOrEmpty(const QString& path);
|
||||
// Returns true if path is empty or valid png file with specified dimensions
|
||||
template <int imageWidth, int imageHeight = imageWidth>
|
||||
FunctorValidator::ReturnType PngImageSetSizeOrEmpty(const QString& path);
|
||||
} // namespace Validators
|
||||
} // namespace ProjectSettingsTool
|
||||
|
||||
#include "Validators_impl.h"
|
||||
Reference in New Issue
Block a user