
2 changed files with 79 additions and 0 deletions
@ -0,0 +1,41 @@ |
|||||
|
#include "grp_query_drv_dummy.hh" |
||||
|
#include "pEpLog.hh" |
||||
|
#include "listmanager_dummy.hh" |
||||
|
#include <pEp/message_api.h> |
||||
|
#include <pEp/group.h> |
||||
|
|
||||
|
using namespace std; |
||||
|
|
||||
|
namespace pEp { |
||||
|
bool GroupQueryDriverDummy::log_enabled = false; |
||||
|
|
||||
|
GroupQueryDriverDummy::GroupQueryDriverDummy(const std::string &db_path) : |
||||
|
lmd(ListManagerDummy(db_path)) |
||||
|
{ |
||||
|
pEpLogClass("called"); |
||||
|
} |
||||
|
|
||||
|
PEP_STATUS GroupQueryDriverDummy::group_query_groups(PEP_SESSION session, identity_list **groups) |
||||
|
{ |
||||
|
pEpLogClass("called"); |
||||
|
return PEP_STATUS_OK; |
||||
|
} |
||||
|
|
||||
|
PEP_STATUS GroupQueryDriverDummy::group_query_manager( |
||||
|
PEP_SESSION session, |
||||
|
const pEp_identity *const group, |
||||
|
pEp_identity **manager) |
||||
|
{ |
||||
|
pEpLogClass("called"); |
||||
|
return PEP_STATUS_OK; |
||||
|
} |
||||
|
|
||||
|
PEP_STATUS GroupQueryDriverDummy::group_query_members( |
||||
|
PEP_SESSION session, |
||||
|
const pEp_identity *const group, |
||||
|
identity_list **members) |
||||
|
{ |
||||
|
pEpLogClass("called"); |
||||
|
return PEP_STATUS_OK; |
||||
|
} |
||||
|
} // namespace pEp
|
@ -0,0 +1,38 @@ |
|||||
|
// This file is under GNU General Public License 3.0
|
||||
|
// see LICENSE.txt
|
||||
|
#ifndef LIBPEPADAPTER_GRP_QUERY_DRV_DUMMY_HH |
||||
|
#define LIBPEPADAPTER_GRP_QUERY_DRV_DUMMY_HH |
||||
|
|
||||
|
#include "grp_query_interface.hh" |
||||
|
#include "pEpLog.hh" |
||||
|
#include "listmanager_dummy.hh" |
||||
|
#include <pEp/message_api.h> |
||||
|
#include <pEp/group.h> |
||||
|
|
||||
|
namespace pEp { |
||||
|
class GroupQueryDriverDummy : public GroupQueryInterface { |
||||
|
public: |
||||
|
GroupQueryDriverDummy() = delete; |
||||
|
GroupQueryDriverDummy(const std::string &db_path); |
||||
|
|
||||
|
PEP_STATUS group_query_groups(PEP_SESSION session, identity_list **groups) override; |
||||
|
PEP_STATUS group_query_manager( |
||||
|
PEP_SESSION session, |
||||
|
const pEp_identity *const group, |
||||
|
pEp_identity **manager) override; |
||||
|
PEP_STATUS group_query_members( |
||||
|
PEP_SESSION session, |
||||
|
const pEp_identity *const group, |
||||
|
identity_list **members) override; |
||||
|
|
||||
|
// Logging
|
||||
|
static bool log_enabled; |
||||
|
Adapter::pEpLog::pEpLogger logger{ "GroupQueryDriverDummy", log_enabled }; |
||||
|
|
||||
|
private: |
||||
|
ListManagerDummy lmd; |
||||
|
Adapter::pEpLog::pEpLogger &m4gic_logger_n4ame = logger; |
||||
|
}; |
||||
|
} // namespace pEp
|
||||
|
|
||||
|
#endif // LIBPEPADAPTER_GRP_QUERY_DRV_DUMMY_HH
|
Loading…
Reference in new issue