Ring Daemon 16.0.0
Loading...
Searching...
No Matches
gitserver.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2004-2025 Savoir-faire Linux Inc.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include <functional>
20#include <memory>
21#include <string>
22
23#include "def.h"
25
26namespace dhtnet {
27class ChannelSocket;
28}
29
30namespace jami {
31
32using onFetchedCb = std::function<void(const std::string&)>;
33
38{
39public:
47 GitServer(const std::string& accountId,
48 const std::string& conversationId,
49 const std::shared_ptr<dhtnet::ChannelSocket>& client);
50 ~GitServer();
51
56 void setOnFetched(const onFetchedCb& cb);
57
61 void stop();
62
63private:
64 class Impl;
65 std::unique_ptr<Impl> pimpl_;
66};
67
68} // namespace jami
This class offers to a ChannelSocket the possibility to interact with a Git repository.
Definition gitserver.h:38
#define LIBJAMI_TEST_EXPORT
Definition def.h:49
void emitSignal(Args... args)
Definition ring_signal.h:64
std::function< void(const std::string &)> onFetchedCb
Definition gitserver.h:32