Wrap rating_from_comm_type()

COM-121
Thomas 3 years ago
parent fe93638bc7
commit 3856a08ffe

@ -1969,3 +1969,13 @@ STDMETHODIMP CpEpEngine::PerUserDirectory(BSTR * directory)
return S_OK;
}
STDMETHODIMP CpEpEngine::RatingFromCommType(pEpComType commType, pEpRating * rating)
{
PEP_comm_type _comm_type = (PEP_comm_type)commType;
PEP_rating _rating = ::rating_from_comm_type(_comm_type);
*rating = (pEpRating)_rating;
return S_OK;
}

@ -251,6 +251,7 @@ public:
STDMETHOD(OutgoingMessageRatingPreview)(TextMessage *msg, pEpRating * pVal);
STDMETHOD(IdentityRating)(pEpIdentity * ident, pEpRating * pVal);
STDMETHOD(ColorFromRating)(pEpRating rating, pEpColor * pVal);
STDMETHOD(RatingFromCommType)(pEpComType commType, pEpRating * rating);
STDMETHOD(EncryptMessageForSelf)(
pEpIdentity * targetId,

@ -511,7 +511,10 @@ interface IpEpEngine : IUnknown {
[id(57)] HRESULT PerMachineDirectory([out, retval] BSTR *directory);
// Gets the directory for user files
[id(58)] HRESULT PerUserDirectory([out, retval] BSTR *directory);
[id(58)] HRESULT PerUserDirectory([out, retval] BSTR *directory);
// Converts a comm type to a pEp rating
[id(59)] HRESULT RatingFromCommType([in] pEpComType commType, [out, retval] pEpRating * rating);
};
[

Loading…
Cancel
Save