6 #ifndef SWIFT_MISC_NETWORK_URLLOGLIST_H
7 #define SWIFT_MISC_NETWORK_URLLOGLIST_H
9 #include <QNetworkReply>
19 namespace swift::misc::network
38 int addPendingUrl(
const CUrl &url,
int maxNumber = 10);
41 int addPendingUrl(
const CUrl &url, QNetworkReply *nwReply,
int maxNumber = 10);
47 CUrlLogList findOutdatedPending(
int outdatedOffsetMs)
const;
53 int sizePending()
const;
56 bool hasPending()
const;
59 bool hasCompleted()
const;
62 int sizeErrors()
const;
65 CUrlLog findByIdOrDefault(
int id)
const;
68 bool markAsReceived(
int id,
bool success);
71 bool markAsReceived(
const QNetworkReply *nwReply,
bool success);
74 bool containsId(
int id)
const;
77 qint64 getMaxResponseTime()
const;
80 qint64 getMinResponseTime()
const;
83 qint64 getAverageResponseTime()
const;
86 QString getSummary()
const;
Generic ordered container with value semantics.
Generic sequential container with value semantics.
CSequence()=default
Default constructor.
List of objects with timestamp. Such objects should implement.
Value object encapsulating information of a location, kind of simplified CValueObject compliant versi...
Information about accessing one URL over the network.
Value object encapsulating a list of voice rooms.
#define SWIFT_DECLARE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the hea...
#define SWIFT_MISC_EXPORT
Export a class or function from the library.