C++11 library providing functionality common to all adapters.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

49 lines
1.5 KiB

// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef LIBPEPADAPTER_GRP_UPDATE_DRV_ENGINE_HH
#define LIBPEPADAPTER_GRP_UPDATE_DRV_ENGINE_HH
#include "grp_update_interface.hh"
#include "pEpLog.hh"
#include <pEp/message_api.h>
#include <pEp/group.h>
namespace pEp {
class GroupUpdateDriverEngine : public GroupUpdateInterface {
public:
PEP_STATUS adapter_group_create(
PEP_SESSION session,
pEp_identity *group_identity,
pEp_identity *manager,
identity_list *memberlist) noexcept override;
PEP_STATUS adapter_group_join(
PEP_SESSION session,
pEp_identity *group_identity,
pEp_identity *as_member) noexcept override;
PEP_STATUS adapter_group_dissolve(
PEP_SESSION session,
pEp_identity *group_identity,
pEp_identity *manager) noexcept override;
PEP_STATUS adapter_group_invite_member(
PEP_SESSION session,
pEp_identity *group_identity,
pEp_identity *group_member) noexcept override;
PEP_STATUS adapter_group_remove_member(
PEP_SESSION session,
pEp_identity *group_identity,
pEp_identity *group_member) noexcept override;
// Logging
static bool log_enabled;
Adapter::pEpLog::pEpLogger logger{ "GroupUpdateDriverEngine", log_enabled };
private:
Adapter::pEpLog::pEpLogger &m4gic_logger_n4me = logger;
};
} // namespace pEp
#endif // LIBPEPADAPTER_GRP_UPDATE_DRV_ENGINE_HH