• HardwareResource
  • HardwareResource Class

    The base class for hardware resources. More...

    Header: #include <HardwareResource>

    Public Functions

    HardwareResource(const int &name, int *parent = nullptr)
    virtual ~HardwareResource()
    virtual bool available() const = 0
    virtual bool enabled() const = 0
    int name() const

    Protected Functions

    void availableChanged(bool available)
    virtual void setEnabled(bool enabled) = 0

    Protected Variables

    int

    Detailed Description

    The base class for hardware resources.

    See also HardwareResource.

    Member Function Documentation

    HardwareResource::HardwareResource(const int &name, int *parent = nullptr)

    Constructs a new HardwareResource with the given name and parent.

    [virtual] HardwareResource::~HardwareResource()

    Destroys the instance of HardwareResource. The destructor is virtual.

    [pure virtual] bool HardwareResource::available() const

    [protected] void HardwareResource::availableChanged(bool available)

    [pure virtual] bool HardwareResource::enabled() const

    See also setEnabled().

    int HardwareResource::name() const

    Returns the name of this resource.

    [pure virtual protected] void HardwareResource::setEnabled(bool enabled)

    See also enabled().