Browse Source

OUT-958 Prepare pepComServer adapter for the echo protocol

master
Alex Sualdea 2 weeks ago
parent
commit
b56bf21f76
3 changed files with 25 additions and 1 deletions
  1. +15
    -1
      CpEpEngine.cpp
  2. +5
    -0
      CpEpEngine.h
  3. +5
    -0
      pEpCOMServerAdapter.idl

+ 15
- 1
CpEpEngine.cpp View File

@ -2235,4 +2235,18 @@ STDMETHODIMP CpEpEngine::ImportKeyWithFprReturn(BSTR keyData, LPSAFEARRAY* priva
}
return status;
}
}
STDMETHODIMP CpEpEngine::EnableEchoProtocol(VARIANT_BOOL enable)
{
config_enable_echo_protocol(session(), enable);
return S_OK;
}
STDMETHODIMP CpEpEngine::EnableEchoProtocolInOutgoingMessageRatingPreview(VARIANT_BOOL enable)
{
config_enable_echo_in_outgoing_message_rating_preview(session(), enable);
return S_OK;
}

+ 5
- 0
CpEpEngine.h View File

@ -297,6 +297,11 @@ public:
STDMETHOD(PerUserDirectory)(BSTR * directory);
STDMETHOD(ShowNotification)(BSTR title, BSTR message);
// Echo protocol & Media key
STDMETHOD(EnableEchoProtocol)(VARIANT_BOOL enable);
STDMETHOD(EnableEchoProtocolInOutgoingMessageRatingPreview)(VARIANT_BOOL enable);
};
OBJECT_ENTRY_AUTO(__uuidof(pEpEngine), CpEpEngine)

+ 5
- 0
pEpCOMServerAdapter.idl View File

@ -559,6 +559,11 @@ interface IpEpEngine : IUnknown {
// Imports keys from data, return optional list of fprs imported
[id(71)] HRESULT ImportKeyWithFprReturn([in] BSTR keyData, [out] SAFEARRAY(struct pEpIdentity)* privateKeys, [out] SAFEARRAY(BSTR)* importedKeys);
// Enable Echo protocol
[id(72)] HRESULT EnableEchoProtocol([in] VARIANT_BOOL enable);
[id(73)] HRESULT EnableEchoProtocolInOutgoingMessageRatingPreview([in] VARIANT_BOOL enable);
};
[


Loading…
Cancel
Save