Provide method to shut down sync sync
authorThomas
Thu, 21 Nov 2019 11:28:02 +0100
branchsync
changeset 375fe31c63ea77d
parent 374 ccc4c88f280e
child 376 c29ae3e408a8
Provide method to shut down sync
CpEpEngine.cpp
CpEpEngine.h
pEpCOMServerAdapter.idl
     1.1 --- a/CpEpEngine.cpp	Wed Nov 20 17:14:38 2019 +0100
     1.2 +++ b/CpEpEngine.cpp	Thu Nov 21 11:28:02 2019 +0100
     1.3 @@ -1994,7 +1994,14 @@
     1.4  
     1.5  STDMETHODIMP CpEpEngine::GetIsSyncRunning(VARIANT_BOOL *running)
     1.6  {
     1.7 -    *running = ::is_sync_running();
     1.8 +    *running = pEp::Adapter::is_sync_running();
     1.9  
    1.10      return S_OK;
    1.11  }
    1.12 +
    1.13 +STDMETHODIMP CpEpEngine::ShutDownSync()
    1.14 +{
    1.15 +    pEp::Adapter::shutdown();
    1.16 +
    1.17 +    return S_OK;
    1.18 +}
     2.1 --- a/CpEpEngine.h	Wed Nov 20 17:14:38 2019 +0100
     2.2 +++ b/CpEpEngine.h	Thu Nov 21 11:28:02 2019 +0100
     2.3 @@ -285,6 +285,7 @@
     2.4      STDMETHOD(DisableIdentityForSync)(struct pEpIdentity * ident);
     2.5      STDMETHOD(EnableIdentityForSync)(struct pEpIdentity * ident);
     2.6      STDMETHOD(GetIsSyncRunning)(VARIANT_BOOL *running);
     2.7 +    STDMETHOD(ShutDownSync)();
     2.8  
     2.9      STDMETHOD(PERToXERSyncMessage)(TextMessage *msg, BSTR * xer);
    2.10  
     3.1 --- a/pEpCOMServerAdapter.idl	Wed Nov 20 17:14:38 2019 +0100
     3.2 +++ b/pEpCOMServerAdapter.idl	Thu Nov 21 11:28:02 2019 +0100
     3.3 @@ -518,6 +518,9 @@
     3.4  
     3.5      // Gets if sync is enabled
     3.6      [id(60)] HRESULT GetIsSyncRunning([out, retval] VARIANT_BOOL *running);
     3.7 +
     3.8 +    // Shuts down sync
     3.9 +    [id(61)] HRESULT ShutDownSync();
    3.10  };
    3.11  
    3.12  [