void SetPeriod( qUnsignedInt16 period );
Name | Description | |
---|---|---|
in | period | The period (in days) during which uploaded data can be accessed. |
Sets the number of valid days.
This function specifies the period (in days) during which uploaded data can be accessed. If DataStoreConstants::DATA_FLAG_PRIODFROMLASTREFERED
is specified as an argument to the SetFlag
function, the count starts from the day the object was last accessed by the DataStoreClient::GetObject
function. If DataStoreConstants::DATA_FLAG_PRIODFROMLASTREFERED
has not been specified, the count starts from the point the data was uploaded. If data has been updated using UpdateObject
, the count restarts from that point in time. The default is DataStoreConstants::DEFAULT_PERIOD
. The maximum number of valid days that can be specified is 365 days. When a higher value is specified, the result is QERROR(DataStore, InvalidArgument)
.
CONFIDENTIAL