diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-02-02 15:51:41 +0200 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-02-02 15:51:41 +0200 |
commit | 8bff62c335842b4c850cc09716e79c2f556247c7 (patch) | |
tree | 281dd5c4a92087f6308e3fb540aba62d7fd272c2 /src/resource.cpp | |
parent | b7d622788b55d30d51ce30bd58634763fddf66fc (diff) |
directory structure changes
Diffstat (limited to 'src/resource.cpp')
-rw-r--r-- | src/resource.cpp | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/resource.cpp b/src/resource.cpp deleted file mode 100644 index 8207b66..0000000 --- a/src/resource.cpp +++ /dev/null @@ -1,57 +0,0 @@ -#include "resource.h" - -using namespace ResourcePolicy; - -Resource::Resource() - : optional(false), shared(false), - identifier(0), granted(false) -{ - identifier = (quint32)this; -} - -Resource::Resource(const Resource &other) - : optional(other.optional), shared(other.shared), - identifier(other.identifier), granted(other.granted) -{ -} - -Resource::~Resource() -{ -} - -bool Resource::isOptional() const -{ - return optional; -} - -void Resource::setOptional(bool resourceIsOptional) -{ - optional = resourceIsOptional; -} - -bool Resource::isShared() const -{ - return shared; -} - -void Resource::setShared(bool shared) -{ - this->shared = shared; -} - -bool Resource::isGranted() const -{ - return granted; -} - -void Resource::setGranted() -{ - granted = true; -} - -void Resource::unsetGranted() -{ - granted = false; -} - - |