aboutsummaryrefslogtreecommitdiff
path: root/lib/urlfilter/filterleaf.cpp
blob: 5797718d59f26bd0d81ed354f91d9f16f87b98a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "filterleaf.h"

const QString FilterLeaf::request() const
{
    return m_request;
}

std::optional<bool> FilterLeaf::option(QWebEngineUrlRequestInfo::ResourceType opt) const
{
    if(resourceTypeOptions.contains(opt))
        return resourceTypeOptions.value(opt);
    else
        return std::nullopt;
}