CpEpEngine.h
changeset 232 4c6d44bed519
parent 227 5bc3d8cb9415
child 233 27848ed0067c
     1.1 --- a/CpEpEngine.h	Mon Jan 23 16:51:15 2017 +0100
     1.2 +++ b/CpEpEngine.h	Wed Feb 01 21:37:07 2017 +0100
     1.3 @@ -24,7 +24,7 @@
     1.4      public CComObjectRootEx<CComObjectThreadModel>,
     1.5  	public CComCoClass<CpEpEngine, &CLSID_pEpEngine>,
     1.6  	public ISupportErrorInfo,
     1.7 -	public IpEpEngine
     1.8 +	public IpEpEngine2
     1.9  {
    1.10  protected:
    1.11      static int examine_identity(pEp_identity *ident, void *management);
    1.12 @@ -127,6 +127,8 @@
    1.13  
    1.14  	IpEpEngineCallbacks* client_callbacks = NULL;
    1.15      IpEpEngineCallbacks* client_callbacks_on_sync_thread = NULL;
    1.16 +    IpEpEngineCallbacks2* client_callbacks2_on_sync_thread = NULL;
    1.17 +    bool client_last_signalled_polling_state = true;
    1.18  
    1.19  	// Keysync members
    1.20      static int inject_sync_msg(void *msg, void* management);
    1.21 @@ -158,6 +160,13 @@
    1.22      STDMETHOD(Log)(BSTR title, BSTR entity, BSTR description, BSTR comment);
    1.23      STDMETHOD(Trustwords)(BSTR fpr, BSTR lang, LONG max_words, BSTR * words);
    1.24      STDMETHOD(GetTrustwords)(struct pEpIdentity *id1, struct pEpIdentity *id2, BSTR lang, VARIANT_BOOL full, BSTR *words);
    1.25 +    STDMETHOD(GetMessageTrustwords)(
    1.26 +        /* [in] */ struct TextMessage *msg,
    1.27 +        /* [in] */ struct pEpIdentity *receivedBy,
    1.28 +        /* [in] */ SAFEARRAY *keylist,
    1.29 +        /* [defaultvalue][in] */ BSTR lang,
    1.30 +        /* [defaultvalue][in] */ VARIANT_BOOL full,
    1.31 +        /* [retval][out] */ BSTR *words);
    1.32      STDMETHOD(GetCrashdumpLog)(LONG maxlines, BSTR * log);
    1.33      STDMETHOD(GetEngineVersion)(BSTR * engineVersion);
    1.34      STDMETHOD(GetLanguageList)(BSTR * languages);