Browse Source

Wrap disable_all_sync_channels

master
Thomas 3 weeks ago
parent
commit
38f91eeff0
3 changed files with 16 additions and 0 deletions
  1. +12
    -0
      CpEpEngine.cpp
  2. +1
    -0
      CpEpEngine.h
  3. +3
    -0
      pEpCOMServerAdapter.idl

+ 12
- 0
CpEpEngine.cpp View File

@ -2147,4 +2147,16 @@ STDMETHODIMP CpEpEngine::ShowNotification(BSTR title, BSTR message)
{
pEp::GateKeeper::gatekeeper()->show_notification(title, message);
return S_OK;
}
STDMETHODIMP CpEpEngine::DisableAllSyncChannels()
{
PEP_STATUS status = passphrase_cache.api(::disable_all_sync_channels, session());
if (status == PEP_STATUS_OK)
return S_OK;
else if (status == PEP_OUT_OF_MEMORY)
return E_OUTOFMEMORY;
else
return FAIL(L"DisableAllSyncChannels", status);
}

+ 1
- 0
CpEpEngine.h View File

@ -284,6 +284,7 @@ public:
STDMETHOD(EnableIdentityForSync)(struct pEpIdentity * ident);
STDMETHOD(GetIsSyncRunning)(VARIANT_BOOL *running);
STDMETHOD(ShutDownSync)();
STDMETHOD(DisableAllSyncChannels)();
STDMETHOD(PERToXERSyncMessage)(TextMessage *msg, BSTR *xer);
STDMETHOD(MIMEDecodeMessage)(BSTR mimeText, TextMessage *msg);


+ 3
- 0
pEpCOMServerAdapter.idl View File

@ -547,6 +547,9 @@ interface IpEpEngine : IUnknown {
// Exports a private key
[id(67)] HRESULT ExportSecretKey([in] BSTR fpr, [out, retval] BSTR* keyData);
// Disables sync for all identities
[id(68)] HRESULT DisableAllSyncChannels();
};
[


Loading…
Cancel
Save