summaryrefslogtreecommitdiff
path: root/src/protocols/iprotocol.h
blob: 3f49eb68a183bb831f5f29d8c6fc0cabb8f6a3db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <memory>

class IScanner;

class IProtocol
{
public:
    // TODO: get rid of constructor or rename class
    explicit IProtocol(std::shared_ptr<IScanner> camera);
    virtual ~IProtocol() = default;

public:
    virtual bool start() = 0;
    virtual void stop() = 0;

protected:
    std::shared_ptr<IScanner> m_scanner;
};