pEpCOMServerAdapter.idl
branchkeysync
changeset 164 1971112a0cc0
parent 162 38cdf441c2cb
child 165 77dfd1defafa
     1.1 --- a/pEpCOMServerAdapter.idl	Wed Sep 28 11:34:40 2016 +0200
     1.2 +++ b/pEpCOMServerAdapter.idl	Fri Sep 30 22:21:09 2016 +0200
     1.3 @@ -194,7 +194,7 @@
     1.4      HRESULT examine_identity([in] struct pEp_identity_s * ident);
     1.5      HRESULT myself([in] struct pEp_identity_s *ident, [out, retval] struct pEp_identity_s *result);
     1.6      HRESULT update_identity([in] struct pEp_identity_s *ident, [out, retval] struct pEp_identity_s *result);
     1.7 -    HRESULT key_compromized([in] struct pEp_identity_s *ident);
     1.8 +    HRESULT key_mistrusted([in] struct pEp_identity_s *ident);
     1.9      HRESULT key_reset_trust([in] struct pEp_identity_s *ident);
    1.10      HRESULT trust_personal_key([in] struct pEp_identity_s *ident, [out, retval] struct pEp_identity_s *result);
    1.11  
    1.12 @@ -210,31 +210,29 @@
    1.13  
    1.14      // Message API
    1.15  
    1.16 -    typedef enum _pEp_color {
    1.17 -        pEp_rating_undefined = 0,
    1.18 -        pEp_rating_cannot_decrypt,
    1.19 -        pEp_rating_have_no_key,
    1.20 -        pEp_rating_unencrypted,
    1.21 -        pEp_rating_unencrypted_for_some,
    1.22 -        pEp_rating_unreliable,
    1.23 -        pEp_rating_reliable,
    1.24 -        pEp_rating_yellow = pEp_rating_reliable,
    1.25 -        pEp_rating_trusted,
    1.26 -        pEp_rating_green = pEp_rating_trusted,
    1.27 -        pEp_rating_trusted_and_anonymized,
    1.28 -        pEp_rating_fully_anonymous,
    1.29 -
    1.30 -        pEp_rating_mistrust = -1,
    1.31 -        pEp_rating_red = pEp_rating_mistrust,
    1.32 -        pEp_rating_b0rken = -2,
    1.33 -        pEp_rating_under_attack = -3
    1.34 -    } pEp_color;
    1.35 -
    1.36 -    typedef enum _pEp_text_format {
    1.37 -        pEp_text_format_plain = 0,
    1.38 -        pEp_text_format_html,
    1.39 -        pEp_text_format_other = 0xff
    1.40 -    } pEp_text_format;
    1.41 +	typedef enum _pEp_rating {
    1.42 +		pEp_rating_undefined = 0,
    1.43 +		pEp_rating_cannot_decrypt,
    1.44 +		pEp_rating_have_no_key,
    1.45 +		pEp_rating_unencrypted,
    1.46 +		pEp_rating_unencrypted_for_some,
    1.47 +		pEp_rating_unreliable,
    1.48 +		pEp_rating_reliable,
    1.49 +		pEp_rating_trusted,
    1.50 +		pEp_rating_trusted_and_anonymized,
    1.51 +		pEp_rating_fully_anonymous,
    1.52 +
    1.53 +		pEp_rating_mistrust = -1,
    1.54 +		pEp_rating_b0rken = -2,
    1.55 +		pEp_rating_under_attack = -3
    1.56 +	} pEp_rating;
    1.57 +
    1.58 +	typedef enum _pEp_color {
    1.59 +		pEp_color_no_color = 0,
    1.60 +		pEp_color_yellow,
    1.61 +		pEp_color_green,
    1.62 +		pEp_color_red = -1,
    1.63 +	} pEp_color;
    1.64  
    1.65      typedef  enum _pEp_msg_direction {
    1.66          pEp_dir_incoming = 0,
    1.67 @@ -282,10 +280,10 @@
    1.68      };
    1.69  
    1.70      HRESULT encrypt_message([in] struct text_message *src, [out] struct text_message * dst, [in] SAFEARRAY(BSTR) extra);
    1.71 -    HRESULT decrypt_message([in] struct text_message *src, [out] struct text_message * dst, [out] SAFEARRAY(BSTR) *keylist, [out, retval] pEp_color *rating);
    1.72 -    HRESULT outgoing_message_color([in] struct text_message *msg, [out, retval] pEp_color * pVal);
    1.73 -    HRESULT identity_color([in] struct pEp_identity_s * ident, [out, retval] pEp_color * pVal);
    1.74 -
    1.75 +    HRESULT decrypt_message([in] struct text_message *src, [out] struct text_message * dst, [out] SAFEARRAY(BSTR) *keylist, [out, retval] pEp_rating *rating);
    1.76 +    HRESULT outgoing_message_rating([in] struct text_message *msg, [out, retval] pEp_rating * pVal);
    1.77 +    HRESULT identity_rating([in] struct pEp_identity_s * ident, [out, retval] pEp_rating * pVal);
    1.78 +	HRESULT color_from_rating([in] pEp_rating rating, [out, retval] pEp_color* pVal);
    1.79  
    1.80  	HRESULT register_callbacks([in] IpEpEngineCallbacks* new_callback);
    1.81