Resource to be used when the application wants to record video. More...
#include <resources.h>
Inherits ResourcePolicy::Resource.
Public Member Functions | |
VideoRecorderResource () | |
The constructor. | |
VideoRecorderResource (const VideoRecorderResource &other) | |
The copy constructor. | |
virtual | ~VideoRecorderResource () |
The destructor. | |
virtual ResourceType | type () const |
bool | isOptional () const |
Whether or not this resource is optional, in that it does not need to be available for the set to be acquired. | |
void | setOptional (bool resourceIsOptional=true) |
Sets the resource to be optional or mandatory. | |
bool | isGranted () const |
Whether or not the resource to be shared. |
Resource to be used when the application wants to record video.
ResourcePolicy::VideoRecorderResource::VideoRecorderResource | ( | const VideoRecorderResource & | other | ) |
The copy constructor.
other | The resource to copy from |
virtual ResourceType ResourcePolicy::VideoRecorderResource::type | ( | ) | const [virtual] |
Implements ResourcePolicy::Resource.
bool ResourcePolicy::Resource::isOptional | ( | ) | const [inherited] |
Whether or not this resource is optional, in that it does not need to be available for the set to be acquired.
void ResourcePolicy::Resource::setOptional | ( | bool | resourceIsOptional = true |
) | [inherited] |
Sets the resource to be optional or mandatory.
resourceIsOptional | This optional parameter is true by default. The default, true, results in the resource becoming optional. When it is set to false the resource becomes mandatory. |
bool ResourcePolicy::Resource::isGranted | ( | ) | const [inherited] |
Whether or not the resource to be shared.
If it is shared then other programs are allowed to share this resource.