Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::GitServer Class Reference

This class offers to a ChannelSocket the possibility to interact with a Git repository. More...

#include <gitserver.h>

Collaboration diagram for jami::GitServer:
Collaboration graph

Classes

class  Impl
 

Public Member Functions

 GitServer (const std::string &accountId, const std::string &conversationId, const std::shared_ptr< dhtnet::ChannelSocket > &client)
 Serve a conversation to a remote client This client will be able to fetch commits/clone the repository.
 
void setOnFetched (const onFetchedCb &cb)
 Add a callback which will be triggered when the peer gets the data.
 
void stop ()
 Stopping a GitServer will shut the channel down.
 
 ~GitServer ()
 

Detailed Description

This class offers to a ChannelSocket the possibility to interact with a Git repository.

Definition at line 37 of file gitserver.h.

Constructor & Destructor Documentation

◆ GitServer()

jami::GitServer::GitServer ( const std::string &  accountId,
const std::string &  conversationId,
const std::shared_ptr< dhtnet::ChannelSocket > &  client 
)

Serve a conversation to a remote client This client will be able to fetch commits/clone the repository.

Parameters
accountIdAccount related to the conversation
conversationIdConversation's id
clientThe client to serve

Definition at line 490 of file gitserver.cpp.

References jami::emitSignal(), and jami::fileutils::get_data_dir().

Here is the call graph for this function:

◆ ~GitServer()

jami::GitServer::~GitServer ( )

Definition at line 498 of file gitserver.cpp.

References stop().

Here is the call graph for this function:

Member Function Documentation

◆ setOnFetched()

void jami::GitServer::setOnFetched ( const onFetchedCb cb)

Add a callback which will be triggered when the peer gets the data.

Parameters
cb

Definition at line 505 of file gitserver.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ stop()

void jami::GitServer::stop ( )

Stopping a GitServer will shut the channel down.

Definition at line 513 of file gitserver.cpp.

Referenced by ~GitServer().


The documentation for this class was generated from the following files: