summaryrefslogtreecommitdiff
path: root/src/sender_client.hh
blob: 5d0bd35a657a40f59f0e223764e29c0b97ef0333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef SENDER_CLIENT_HH
#define SENDER_CLIENT_HH

#include <memory>
#include <string>

namespace stuff {

class Config;

class SenderClient {
public:
    virtual ~SenderClient() {}

    virtual void send(const std::string& channel,
                      const std::string& message) = 0;

    static std::unique_ptr<SenderClient> create(const Config* config);

protected:
    SenderClient() {}

private:
    SenderClient(const SenderClient&) = delete;
    SenderClient& operator=(const SenderClient&) = delete;
};

}  // namespace stuff

#endif /* SENDER_CLIENT_HH */