25 #ifndef QMDNSENGINE_CACHE_H 26 #define QMDNSENGINE_CACHE_H 31 #include "qmdnsengine_export.h" 38 class QMDNSENGINE_EXPORT CachePrivate;
65 class QMDNSENGINE_EXPORT
Cache :
public QObject
74 explicit Cache(QObject *parent = 0);
84 void addRecord(
const Record &record);
97 bool lookupRecord(
const QByteArray &name, quint16 type,
Record &record)
const;
106 bool lookupRecords(
const QByteArray &name, quint16 type, QList<Record> &records)
const;
117 void shouldQuery(
const Record &record);
123 void recordExpired(
const Record &record);
127 CachePrivate *
const d;
132 #endif // QMDNSENGINE_CACHE_H Cache for DNS records
Definition: cache.h:65
Definition: abstractserver.h:32
DNS record.
Definition: record.h:59