Browse Source

Wrap rating_from_comm_type()

COM-121
Thomas 2 years ago
parent
commit
3856a08ffe
3 changed files with 15 additions and 1 deletions
  1. +10
    -0
      CpEpEngine.cpp
  2. +1
    -0
      CpEpEngine.h
  3. +4
    -1
      pEpCOMServerAdapter.idl

+ 10
- 0
CpEpEngine.cpp View File

@ -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;
}

+ 1
- 0
CpEpEngine.h View File

@ -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,


+ 4
- 1
pEpCOMServerAdapter.idl View File

@ -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