25#ifndef QMDNSENGINE_CACHE_H
26#define QMDNSENGINE_CACHE_H
31#include "qmdnsengine_export.h"
38class QMDNSENGINE_EXPORT CachePrivate;
65class QMDNSENGINE_EXPORT
Cache :
public QObject
74 explicit Cache(QObject *parent = 0);
106 bool lookupRecords(
const QByteArray &name, quint16 type, QList<Record> &records)
const;
127 CachePrivate *
const d;
Cache(QObject *parent=0)
Create an empty cache.
void recordExpired(const Record &record)
Indicate that the specified record expired.
void addRecord(const Record &record)
Add a record to the cache.
bool lookupRecord(const QByteArray &name, quint16 type, Record &record) const
Retrieve a single record from the cache.
bool lookupRecords(const QByteArray &name, quint16 type, QList< Record > &records) const
Retrieve multiple records from the cache.
void shouldQuery(const Record &record)
Indicate that a record will expire soon and a new query should be issued.
DNS record.
Definition record.h:60