mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T246, function to display model count and timestamp of model/set caches
This commit is contained in:
@@ -38,6 +38,12 @@ namespace BlackMisc
|
||||
return is.arg(this->getCachedModelsCount(CSimulatorInfo::FSX)).arg(this->getCachedModelsCount(CSimulatorInfo::P3D)).arg(this->getCachedModelsCount(CSimulatorInfo::FS9));
|
||||
}
|
||||
|
||||
QString IMultiSimulatorModelCaches::getCacheCountAndTimestamp(const CSimulatorInfo &simulator) const
|
||||
{
|
||||
static const QString s("%1 models, ts: %2");
|
||||
return s.arg(this->getCachedModelsCount(simulator)).arg(this->getCacheTimestamp(simulator).toString("yyyy-MM-dd HH:mm:ss"));
|
||||
}
|
||||
|
||||
void IMultiSimulatorModelCaches::onLastSelectionChanged()
|
||||
{
|
||||
this->synchronizeCurrentCache();
|
||||
|
||||
@@ -238,6 +238,9 @@ namespace BlackMisc
|
||||
//! Info string without XPlane (FSX,P3D, FS9)
|
||||
QString getInfoStringFsFamily() const;
|
||||
|
||||
//! Cache count and timestamp
|
||||
QString getCacheCountAndTimestamp(const CSimulatorInfo &simulator) const;
|
||||
|
||||
//! Descriptive text
|
||||
virtual QString getDescription() const = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user