35 lines
933 B
C++
Executable File
35 lines
933 B
C++
Executable File
/**
|
|
* 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
|