diff options
author | link2xt <link2xt@testrun.org> | 2021-08-15 00:00:58 +0000 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-08-15 00:00:58 +0000 |
commit | f0e9eb6f6b4bd57532966310e1fdf88ee4f1eb53 (patch) | |
tree | 529a7acbfbaba25fb99d6a5977e063deb9a75001 | |
parent | 07b762aca4f93ab523fa84c7ddea5abf3e0bb1de (diff) | |
download | kdeltachat-f0e9eb6f6b4bd57532966310e1fdf88ee4f1eb53.tar.gz kdeltachat-f0e9eb6f6b4bd57532966310e1fdf88ee4f1eb53.zip |
Add DcContact::getProfileImage
-rw-r--r-- | contact.cpp | 9 | ||||
-rw-r--r-- | contact.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/contact.cpp b/contact.cpp index db6a887..f51a666 100644 --- a/contact.cpp +++ b/contact.cpp @@ -49,6 +49,15 @@ DcContact::getDisplayName() return result; } +QString +DcContact::getProfileImage() +{ + char *profileImage = dc_contact_get_profile_image(m_contact); + QString result{profileImage}; + dc_str_unref(profileImage); + return result; +} + QColor DcContact::getColor() { @@ -22,6 +22,7 @@ public: QString getAddr(); QString getName(); QString getDisplayName(); + Q_INVOKABLE QString getProfileImage(); QColor getColor(); private: |