6#include <QtCore/QThread>
7#include <QtCore/QMutex>
8#include <QtCore/QWaitCondition>
40 I_ASSIGN(m_autoUpdatePeriodAttr,
"AutomaticUpdatePeriod",
"Automatic updates period in seconds",
false, 10);
41 I_ASSIGN(m_runtimeStatusCompPtr,
"RuntimeStatus",
"Application's runtime status",
false,
"RuntimeStatus");
42 I_ASSIGN_TO(m_runtimeStatusModelCompPtr, m_runtimeStatusCompPtr,
false);
68 virtual void run()
override;
71 typedef std::vector<istd::CSystem::FileDriveDescriptor>
DriveInfos;
85 double m_sleepInterval;
86 bool m_threadTerminationRequested;
88 mutable QRecursiveMutex m_lock;
89 mutable QMutex m_pollingMutex;
90 mutable QWaitCondition m_pollingWait;
92 I_ATTR(
double, m_autoUpdatePeriodAttr);
Provider of the run-time status.
void EmitUpdate(const DriveInfos &driveInfos)
virtual const istd::CSystem::FileDriveInfo * GetFileDriveInfo(int driveIndex=-1) const override
Get info about a given file drive.
virtual void OnModelChanged(int modelId, const istd::IChangeable::ChangeSet &changeSet) override
Called when some model observed by dispatcher will be changed.
virtual const iprm::IOptionsList & GetDriveList() const override
Get the list of drives available on the local machine.
virtual QString GetOptionName(int index) const override
Get name of specified option.
virtual bool IsOptionEnabled(int index) const override
Return true if the option is enabled and can be selected.
virtual int GetOptionsFlags() const override
Get constraints flags.
virtual int GetOptionsCount() const override
Get number of managed options.
virtual void run() override
virtual QByteArray GetOptionId(int index) const override
Get option ID.
std::vector< istd::CSystem::FileDriveDescriptor > DriveInfos
virtual void OnComponentCreated() override
Called when component is created.
ilog::CLoggerComponentBase BaseClass
virtual void OnComponentDestroyed() override
Called when component is destroyed.
CFileSystemInfoProviderComp()
virtual QString GetOptionDescription(int index) const override
Get human-readable description for an option.
Provider of file system related informations.
Template wrapper adding comprehensive logging functionality to components.
Generic implementation of a data model changes notifier.
Common interface for model objects, that supports Model/Observer design pattern.
Constraints of selection from set of possibilities.
Set of change flags (its IDs).
Contains interfaces and implementations of file system related components.