27 #ifndef DIGIKAM_ITEM_INFO_P_H
28 #define DIGIKAM_ITEM_INFO_P_H
73 #define RETURN_IF_CACHED(x) \
76 ItemInfoReadLocker lock; \
78 if (m_data->x##Cached) \
84 #define RETURN_ASPECTRATIO_IF_IMAGESIZE_CACHED() \
87 ItemInfoReadLocker lock; \
89 if (m_data->imageSizeCached) \
91 return (double)m_data->imageSize.width() / \
92 m_data->imageSize.height(); \
96 #define STORE_IN_CACHE_AND_RETURN(x, retrieveMethod) \
99 ItemInfoWriteLocker lock; \
101 if (!values.isEmpty()) \
103 m_data.data()->x##Cached = true; \
104 m_data.data()->x = retrieveMethod; \
Definition: datefolderview.cpp:43
MetadataInfo::Field DatabaseImageMetadataFieldsToMetadataInfoField(const DatabaseFields::ImageMetadata imageMetadataField)
Definition: iteminfo_p.cpp:65
MetadataInfo::Field DatabaseVideoMetadataFieldsToMetadataInfoField(const DatabaseFields::VideoMetadata videoMetadataField)
Definition: iteminfo_p.cpp:32