CpEpEngine.h
branchCOM-54-ENGINE-9
changeset 251 ded328cde93f
parent 240 ea67031c573f
     1.1 --- a/CpEpEngine.h	Fri Apr 21 17:11:50 2017 +0200
     1.2 +++ b/CpEpEngine.h	Wed Jun 14 23:46:37 2017 +0200
     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 IpEpEngine2
     1.8 +	public IpEpEngine3
     1.9  {
    1.10  protected:
    1.11      static int examine_identity(pEp_identity *ident, void *management);
    1.12 @@ -53,6 +53,7 @@
    1.13  BEGIN_COM_MAP(CpEpEngine)
    1.14      COM_INTERFACE_ENTRY(IpEpEngine)
    1.15      COM_INTERFACE_ENTRY(IpEpEngine2)
    1.16 +    COM_INTERFACE_ENTRY(IpEpEngine3)
    1.17      COM_INTERFACE_ENTRY(ISupportErrorInfo)
    1.18  END_COM_MAP()
    1.19  
    1.20 @@ -180,7 +181,14 @@
    1.21          /* [in] */ SAFEARRAY *keylist,
    1.22          /* [defaultvalue][in] */ BSTR lang,
    1.23          /* [defaultvalue][in] */ VARIANT_BOOL full,
    1.24 -        /* [retval][out] */ BSTR *words);
    1.25 +        /* [retval][out] */ BSTR *words); 
    1.26 +    STDMETHOD(GetMessageTrustwordsEx)(
    1.27 +            /* [in] */ struct TextMessageEx *msg,
    1.28 +            /* [in] */ struct pEpIdentity *receivedBy,
    1.29 +            /* [in] */ SAFEARRAY *keylist,
    1.30 +            /* [defaultvalue][in] */ BSTR lang,
    1.31 +            /* [defaultvalue][in] */ VARIANT_BOOL full,
    1.32 +            /* [retval][out] */ BSTR *words);
    1.33      STDMETHOD(GetCrashdumpLog)(LONG maxlines, BSTR * log);
    1.34      STDMETHOD(GetEngineVersion)(BSTR * engineVersion);
    1.35      STDMETHOD(GetLanguageList)(BSTR * languages);
    1.36 @@ -211,6 +219,9 @@
    1.37      STDMETHOD(EncryptMessage)(TextMessage * src, TextMessage * dst, SAFEARRAY * extra, pEpEncryptFlags flags);
    1.38      STDMETHOD(DecryptMessage)(TextMessage * src, TextMessage * dst, SAFEARRAY ** keylist, pEpDecryptFlags* flags, pEpRating *rating);
    1.39      STDMETHOD(OutgoingMessageRating)(TextMessage *msg, pEpRating * pVal);
    1.40 +    STDMETHOD(EncryptMessageEx)(TextMessageEx * src, TextMessageEx * dst, SAFEARRAY * extra, pEpEncryptFlags flags);
    1.41 +    STDMETHOD(DecryptMessageEx)(TextMessageEx * src, TextMessageEx * dst, SAFEARRAY ** keylist, pEpDecryptFlags* flags, pEpRating *rating);
    1.42 +    STDMETHOD(OutgoingMessageRatingEx)(TextMessageEx *msg, pEpRating * pVal);
    1.43      STDMETHOD(IdentityRating)(pEpIdentity * ident, pEpRating * pVal);
    1.44  	STDMETHOD(ColorFromRating)(pEpRating rating, pEpColor * pVal);
    1.45  
    1.46 @@ -221,6 +232,13 @@
    1.47          pEpEncryptFlags flags
    1.48          );
    1.49  
    1.50 +    STDMETHOD(EncryptMessageForSelfEx)(
    1.51 +        pEpIdentity * target_id,
    1.52 +        TextMessageEx* src,
    1.53 +        TextMessageEx *dst,
    1.54 +        pEpEncryptFlags flags
    1.55 +        );
    1.56 +
    1.57  	// Event callbacks
    1.58  
    1.59  	STDMETHOD(RegisterCallbacks)(IpEpEngineCallbacks *new_callback);