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.

46 lines
1.5 KiB

// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef LIBPEPADAPTER_GRP_UPDATE_INTERFACE_HH
#define LIBPEPADAPTER_GRP_UPDATE_INTERFACE_HH
#include <pEp/message_api.h>
#include <pEp/group.h>
namespace pEp {
class GroupUpdateInterface {
public:
virtual PEP_STATUS adapter_group_create(
PEP_SESSION session,
pEp_identity *group_identity,
pEp_identity *manager,
identity_list *memberlist) noexcept = 0;
// JOIN does not exist in listmanagers
// For LIB-16 - Store groups a user is part of and provide a method to query them
// We need to create a separate DB _if_ we dont store it in the engine
// virtual PEP_STATUS adapter_group_join(
// PEP_SESSION session,
// pEp_identity *group_identity,
// pEp_identity *as_member) noexcept = 0;
virtual PEP_STATUS adapter_group_dissolve(
PEP_SESSION session,
pEp_identity *group_identity,
pEp_identity *manager) noexcept = 0;
virtual PEP_STATUS adapter_group_invite_member(
PEP_SESSION session,
pEp_identity *group_identity,
pEp_identity *group_member) noexcept = 0;
virtual PEP_STATUS adapter_group_remove_member(
PEP_SESSION session,
pEp_identity *group_identity,
pEp_identity *group_member) noexcept = 0;
private:
};
} // namespace pEp
#endif // LIBPEPADAPTER_GRP_UPDATE_INTERFACE_HH