#pragma once

#include "bundle.hpp"
#include "value.hpp"
#include <QString>

#include "export.hpp"

namespace options {

struct OTR_OPTIONS_EXPORT with_tracker_teardown final
{
    with_tracker_teardown();
    ~with_tracker_teardown();

private:
    bool old_value;
};

struct OTR_OPTIONS_EXPORT opts
{
    template<typename t> using value = options::value<t>;
    using bundle = options::bundle;

    bundle b;

    opts& operator=(const opts&) = delete;
    opts(const opts&) = delete;

protected:
    explicit opts(const QString& name);
    ~opts();
};

}