This class is the parent class for all resources. More...
Inherited by ResourcePolicy::AudioRecorderResource, ResourcePolicy::AudioResource, ResourcePolicy::BacklightResource, ResourcePolicy::HeadsetButtonsResource, ResourcePolicy::LedsResource, ResourcePolicy::LensCoverResource, ResourcePolicy::LockButtonResource, ResourcePolicy::ScaleButtonResource, ResourcePolicy::SnapButtonResource, ResourcePolicy::SystemButtonResource, ResourcePolicy::VibraResource, ResourcePolicy::VideoRecorderResource, and ResourcePolicy::VideoResource.
Public Member Functions |
|
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. |
|
virtual ResourceType | type () const =0 |
Checks the type of Resource. |
|
virtual | ~Resource () |
The destructor. |
This class is the parent class for all resources.
It represents a generic Resource. The type specific resource classes should be used.
bool ResourcePolicy::Resource::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 ResourcePolicy::Resource::setOptional | ( | bool | resourceIsOptional = true |
) |
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 |
Whether or not the resource to be shared.
If it is shared then other programs are allowed to share this resource.
virtual ResourceType ResourcePolicy::Resource::type | ( | ) | const [pure virtual] |
Checks the type of Resource.
Implemented in ResourcePolicy::AudioResource, ResourcePolicy::AudioRecorderResource, ResourcePolicy::BacklightResource, ResourcePolicy::LedsResource, ResourcePolicy::VibraResource, ResourcePolicy::VideoRecorderResource, ResourcePolicy::VideoResource, ResourcePolicy::SystemButtonResource, ResourcePolicy::LockButtonResource, ResourcePolicy::ScaleButtonResource, ResourcePolicy::SnapButtonResource, and ResourcePolicy::HeadsetButtonsResource.
Copyright (C) 2011 Nokia Corporation. LGPL This file is part of libresourceqt |
MeeGo 1.2 Harmattan API
|