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
"
24
#include "
jamidht/conversationrepository.h
"
25
26
namespace
dhtnet
{
27
class
ChannelSocket;
28
}
29
30
namespace
jami
{
31
32
using
onFetchedCb
= std::function<
void
(
const
std::string&)>;
33
37
class
LIBJAMI_TEST_EXPORT
GitServer
38
{
39
public
:
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
63
private
:
64
class
Impl
;
65
std::unique_ptr<Impl> pimpl_;
66
};
67
68
}
// namespace jami
jami::GitServer::Impl
Definition
gitserver.cpp:45
jami::GitServer
This class offers to a ChannelSocket the possibility to interact with a Git repository.
Definition
gitserver.h:38
conversationrepository.h
def.h
LIBJAMI_TEST_EXPORT
#define LIBJAMI_TEST_EXPORT
Definition
def.h:49
dhtnet
Definition
gittransport.h:32
jami
Definition
account.cpp:61
jami::emitSignal
void emitSignal(Args... args)
Definition
ring_signal.h:64
jami::onFetchedCb
std::function< void(const std::string &)> onFetchedCb
Definition
gitserver.h:32
src
jamidht
gitserver.h
Generated on Thu Jun 19 2025 15:50:37 for Ring Daemon by
1.9.8