mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Add methods to read weather grid from file
This commit is contained in:
committed by
Klaus Basan
parent
9f1a51fb13
commit
4b888d87f5
@@ -31,6 +31,11 @@ namespace BlackMisc
|
||||
//! Request weather grid
|
||||
virtual void requestWeatherGrid(const CWeatherGrid &weatherGrid,
|
||||
const CSlot<void(const CWeatherGrid &)> &callback) = 0;
|
||||
|
||||
//! Request weather grid from file
|
||||
virtual void requestWeatherGridFromFile(const QString &filePath,
|
||||
const BlackMisc::Weather::CWeatherGrid &weatherGrid,
|
||||
const BlackMisc::CSlot<void(const BlackMisc::Weather::CWeatherGrid &)> &callback) = 0;
|
||||
};
|
||||
|
||||
//! Delegating class which can be directly used to access an \sa IWeatherGridProvider instance
|
||||
@@ -40,7 +45,6 @@ namespace BlackMisc
|
||||
//! \copydoc IWeatherGridProvider::requestWeatherGrid
|
||||
virtual void requestWeatherGrid(const CWeatherGrid &weatherGrid,
|
||||
const CSlot<void(const CWeatherGrid &)> &callback);
|
||||
|
||||
protected:
|
||||
//! Constructor
|
||||
CWeatherGridAware(IWeatherGridProvider *weatherGridProvider) : IProviderAware(weatherGridProvider) { Q_ASSERT(weatherGridProvider); }
|
||||
|
||||
Reference in New Issue
Block a user