mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Issue #77 All classes propertyindex methods use CPropertyIndexRef and QVariant
This commit is contained in:
@@ -354,7 +354,7 @@ namespace BlackMisc
|
||||
}
|
||||
|
||||
//! \copydoc BlackMisc::CCached::setProperty
|
||||
CStatusMessage setProperty(const CPropertyIndex &index, const CVariant &value, qint64 timestamp = 0)
|
||||
CStatusMessage setProperty(CPropertyIndexRef index, const CVariant &value, qint64 timestamp = 0)
|
||||
{
|
||||
CDataCache::instance()->admitValue(this->getKey(), false);
|
||||
return CCached<typename Trait::type>::setProperty(index, value, timestamp);
|
||||
@@ -410,7 +410,7 @@ namespace BlackMisc
|
||||
//! Data cache doesn't support setAndSave (because set() already causes save anyway).
|
||||
//! @{
|
||||
CStatusMessage setAndSave(const typename Trait::type &value, qint64 timestamp = 0) = delete;
|
||||
CStatusMessage setAndSaveProperty(const CPropertyIndex &index, const CVariant &value, qint64 timestamp = 0) = delete;
|
||||
CStatusMessage setAndSaveProperty(CPropertyIndexRef index, const CVariant &value, qint64 timestamp = 0) = delete;
|
||||
//! @}
|
||||
|
||||
//! Data cache doesn't support save (because currently set value is saved already).
|
||||
@@ -431,7 +431,7 @@ namespace BlackMisc
|
||||
//! Deleted mutators.
|
||||
//! @{
|
||||
CStatusMessage set(const typename Trait::type &value, qint64 timestamp = 0) = delete;
|
||||
CStatusMessage setProperty(const CPropertyIndex &index, const CVariant &value, qint64 timestamp = 0) = delete;
|
||||
CStatusMessage setProperty(CPropertyIndexRef index, const CVariant &value, qint64 timestamp = 0) = delete;
|
||||
CStatusMessage setDefault() = delete;
|
||||
void renewTimestamp(qint64 timestamp) = delete;
|
||||
//! @}
|
||||
|
||||
Reference in New Issue
Block a user