Browse Source

Provide method to shut down sync

COM-121
Thomas 3 years ago
parent
commit
048a6ad6e6
3 changed files with 12 additions and 1 deletions
  1. +8
    -1
      CpEpEngine.cpp
  2. +1
    -0
      CpEpEngine.h
  3. +3
    -0
      pEpCOMServerAdapter.idl

+ 8
- 1
CpEpEngine.cpp View File

@ -1994,7 +1994,14 @@ STDMETHODIMP CpEpEngine::RatingFromCommType(pEpComType commType, pEpRating * rat
STDMETHODIMP CpEpEngine::GetIsSyncRunning(VARIANT_BOOL *running)
{
*running = ::is_sync_running();
*running = pEp::Adapter::is_sync_running();
return S_OK;
}
STDMETHODIMP CpEpEngine::ShutDownSync()
{
pEp::Adapter::shutdown();
return S_OK;
}

+ 1
- 0
CpEpEngine.h View File

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


+ 3
- 0
pEpCOMServerAdapter.idl View File

@ -518,6 +518,9 @@ interface IpEpEngine : IUnknown {
// Gets if sync is enabled
[id(60)] HRESULT GetIsSyncRunning([out, retval] VARIANT_BOOL *running);
// Shuts down sync
[id(61)] HRESULT ShutDownSync();
};
[


Loading…
Cancel
Save