6 #ifndef SWIFT_MISC_NETWORK_URLLOG_H
7 #define SWIFT_MISC_NETWORK_URLLOG_H
20 namespace swift::misc::network
29 IndexId = CPropertyIndexRef::GlobalIndexCUrlLog,
32 IndexResponseTimestamp,
40 int getId()
const {
return this->m_id; }
46 QDateTime
getResponseTimestamp()
const {
return QDateTime::fromMSecsSinceEpoch(m_responseTimeMSecsSinceEpoch); }
52 void setResponseTimestampToNow();
58 bool isPending()
const;
73 QString convertToQString(
bool i18n =
false)
const;
76 static const char *propertyNameId();
81 bool m_success =
false;
82 qint64 m_responseTimeMSecsSinceEpoch = -1;
83 qint64 m_responseTimeMs = -1;
87 static int uniqueId();
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
ColumnIndex
Base class enums.
Value object encapsulating information of a location, kind of simplified CValueObject compliant versi...
Information about accessing one URL over the network.
QDateTime getResponseTimestamp() const
Response timestamp.
qint64 getResponseTimeMs() const
Response time.
void setSuccess(bool s)
Set success.
bool isSuccess() const
Success?
qint64 getResponseTimeMSecsSinceEpoch() const
Response timestamp milliseconds since epoch.
int getId() const
Unique id.
const CUrl & getUrl() const
Get URL.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...