Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
/**
* LicenceDonator is an interface for a class which manages the availability licences.
* $Id$
* $HeadURL$
* $Author$
* Created by Hannes Baeuerle, SLSE, 2016-03-31
*/
#pragma once
class QString;
namespace ServiceManagement
{
class LicenceDonator
{
public:
/**
* @brief The implementation of this method should proof if the licence licenceName
* is available.
* @param licenceName - The licence to be looked up.
* @return True if a licence for licenceName is available, otherwise false.
*/
virtual bool getLicence(const QString &licenceName) = 0;
/**
* @brief The implementation of this method should free one licence licenceName.
* @param licenceName
* @return True if licence licenceName exists and it is possible to free one licence,
* otherwise false.
*/
virtual bool freeLicence(const QString &licenceName) = 0;
}; // class LicenceDonator
} // namespace ServiceManagement