resource.cpp
87 const Resource::ResourceChangeType changeType = (m_type == t_nonExistent) ? Resource::Created : Resource::Modified;
95 const Resource::ResourceChangeType changeType = (m_type == t_nonExistent) ? Resource::Created : Resource::Modified;
103 const Resource::ResourceChangeType changeType = (m_type == t_nonExistent) ? Resource::Created : Resource::Modified;
111 const Resource::ResourceChangeType changeType = (m_type == t_nonExistent) ? Resource::Created : Resource::Modified;
119 const Resource::ResourceChangeType changeType = (m_type == t_nonExistent) ? Resource::Created : Resource::Modified;
127 const Resource::ResourceChangeType changeType = (m_type == t_nonExistent) ? Resource::Created : Resource::Modified;
135 const Resource::ResourceChangeType changeType = (m_type == t_nonExistent) ? Resource::Created : Resource::Modified;
213 ResourceCollectionHolder::ResourceCollectionHolder(const ResourceCollectionHolder& other) throw() :
229 ResourceCollectionHolder& ResourceCollectionHolder::operator=(const ResourceCollectionHolder& other) throw()
ResourceMutexHolder & operator=(const ResourceMutexHolder &other)
Copy operator.
Definition: resource.cpp:41
void shareLockWith(ResourceHandler *other)
Shares the lock with the other resource.
Definition: resource.cpp:80
Definition: configurationhelper.cpp:24
bool isNotifee(ResourcesUser *n) const
Returns true if n is an observer for this resource.
Definition: resource.cpp:158
The base for classes that can be configured/saved using a ConfigurationParameters object...
Definition: parametersettable.h:51
ResourceCollectionHolder & operator=(const ResourceCollectionHolder &other)
Copy operator.
Definition: resource.cpp:229
Resource is a class representing a generic resource addable into ResourceCollection.
Definition: resource.h:56
A class that allows sharing the same mutex among different objects.
Definition: resource.h:84
ResourceHandler * getResource(QString name, bool create=false)
Returns a pointer to the resource handler for the resource with the specified name.
Definition: resource.cpp:185
virtual void notifyResourceChange(ResourceHandler *resource, ResourceChangeType changeType)=0
The function called by ResourceHandler when a resource is changed.
This keeps an instance of ResourceCollection eventually sharing it.
Definition: resource.h:612