diff --git a/humanreadableobject.h b/humanreadableobject.h index b6d07dd..f7c519c 100644 --- a/humanreadableobject.h +++ b/humanreadableobject.h @@ -30,9 +30,9 @@ protected: }; /** - * @brief HRO This is short abriviature of the HumanReadableObject class. + * @brief iHRO This is short abriviature of the HumanReadableObject class. */ -typedef HumanReadableObject HRO; +typedef HumanReadableObject iHRO; } #endif // HUMANREADABLEOBJECT_H diff --git a/validableobject.cpp b/validableobject.cpp new file mode 100644 index 0000000..e63cd34 --- /dev/null +++ b/validableobject.cpp @@ -0,0 +1,18 @@ +//# +//# Copyright (C) 2022-2022 QuasarApp. +//# Distributed under the GPLv3 software license, see the accompanying +//# Everyone is permitted to copy and distribute verbatim copies +//# of this license document, but changing it is not allowed. +//# + + + +#include "validableobject.h" + +namespace QuasarAppUtils{ + +ValidableObject::ValidableObject() +{ + +} +} diff --git a/validableobject.h b/validableobject.h new file mode 100644 index 0000000..7cafaaf --- /dev/null +++ b/validableobject.h @@ -0,0 +1,35 @@ +//# +//# Copyright (C) 2022-2022 QuasarApp. +//# Distributed under the GPLv3 software license, see the accompanying +//# Everyone is permitted to copy and distribute verbatim copies +//# of this license document, but changing it is not allowed. +//# + + +#ifndef VALIDABLEOBJECT_H +#define VALIDABLEOBJECT_H + +namespace QuasarAppUtils{ + +/** + * @brief The ValidableObject class is Base interface for all object that can be checked to valid. + */ +class ValidableObject +{ +public: + ValidableObject(); + + /** + * @brief isValid This method return true if the object is valid else false. + * @return true if the object is valid else false. + */ + virtual bool isValid() const = 0; +}; + +/** + * @brief iVO This is short abriviature of the ValidableObject class. + */ +typedef ValidableObject iVO; + +} +#endif // VALIDABLEOBJECT_H