pEpCOMServerAdapter.idl
changeset 22 ce807ab55768
parent 20 f77dd13806ff
child 23 720af5e728bc
     1.1 --- a/pEpCOMServerAdapter.idl	Tue May 12 21:20:18 2015 +0200
     1.2 +++ b/pEpCOMServerAdapter.idl	Wed May 20 17:41:29 2015 +0200
     1.3 @@ -41,6 +41,13 @@
     1.4          pEp_enc_pEp                             // pEp encryption format
     1.5      } pEp_enc_format;
     1.6  
     1.7 +    [uuid(1292C31A-6486-427F-B29F-7F03607836DC)] struct _opt_field {
     1.8 +        BSTR name;
     1.9 +        BSTR value;
    1.10 +    };
    1.11 +
    1.12 +    typedef struct _opt_field opt_field_t;
    1.13 +
    1.14      [propget] HRESULT dir([out, retval] pEp_msg_direction *pVal);
    1.15      [propput] HRESULT dir([in] pEp_msg_direction newVal);
    1.16  
    1.17 @@ -56,7 +63,7 @@
    1.18      [propget] HRESULT longmsg_formatted([out, retval] BSTR *pVal);
    1.19      [propput] HRESULT longmsg_formatted([in] BSTR newVal);
    1.20  
    1.21 -    HRESULT add_attachment([in] SAFEARRAY(BYTE) data, [in, optional] BSTR mime_type, [in, optional] BSTR filename);
    1.22 +    HRESULT add_attachment([in] SAFEARRAY(BYTE) data, [in] BSTR mime_type, [in] BSTR filename);
    1.23      HRESULT has_attachments([out, retval] boolean *result);
    1.24      HRESULT next_attachment([out] SAFEARRAY(BYTE) * data, [out] BSTR * mime_type, [out] BSTR * filename, [out, retval] boolean *result);
    1.25  
    1.26 @@ -92,6 +99,9 @@
    1.27  
    1.28      [propget] HRESULT comments([out, retval] BSTR *pVal);
    1.29      [propput] HRESULT comments([in] BSTR newVal);
    1.30 +
    1.31 +    [propget] HRESULT opt_fields([out, retval] SAFEARRAY(opt_field_t) *pVal);
    1.32 +    [propput] HRESULT opt_fields([in] SAFEARRAY(opt_field_t) newVal);
    1.33  };
    1.34  
    1.35  [
    1.36 @@ -180,7 +190,7 @@
    1.37          pEp_ct_pEp = 0xff
    1.38      } pEp_comm_type;
    1.39  
    1.40 -    [uuid(CAAC4CFB-4EE6-4C27-81F7-E5B4E0A46816)] struct pEp_identity_s {
    1.41 +    [uuid(0CB90E62-8A6A-4CA0-99D7-481704051FF0)] struct pEp_identity_s {
    1.42          BSTR address;
    1.43          BSTR fpr;
    1.44          BSTR user_id;
    1.45 @@ -226,7 +236,7 @@
    1.46          pEp_rating_b0rken = -2
    1.47      } pEp_color;
    1.48  
    1.49 -    HRESULT encrypt_message([in] ITextMessage *src, [out] ITextMessage ** dst, [in, optional] SAFEARRAY(BSTR) extra);
    1.50 +    HRESULT encrypt_message([in] ITextMessage *src, [out] ITextMessage ** dst, [in] SAFEARRAY(BSTR) extra);
    1.51      HRESULT decrypt_message([in] ITextMessage *src, [out] ITextMessage ** dst, [out] SAFEARRAY(BSTR) *keylist, [out, retval] pEp_color *rating);
    1.52      HRESULT outgoing_message_color([in] ITextMessage *msg, [out, retval] pEp_color * pVal);
    1.53      HRESULT identity_color([in] struct pEp_identity_s * ident, [out, retval] pEp_color * pVal);