summaryrefslogtreecommitdiff
path: root/src/mbgl/style/source_observer.hpp
blob: c99eda955e69e1bbe604a202026e4c0586095726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <exception>

namespace mbgl {
namespace style {

class Source;

class SourceObserver {
public:
    virtual ~SourceObserver() = default;

    virtual void onSourceLoaded(Source&) {}
    virtual void onSourceChanged(Source&) {}
    virtual void onSourceError(Source&, std::exception_ptr) {}

    // Source description needs to be reloaded
    virtual void onSourceDescriptionChanged(Source&) {}
};

} // namespace style
} // namespace mbgl