Commit 853f9fa8 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(src/components/contact/VcardModel): set isReadOnly attribute at creation

parent 1b6788f0
......@@ -98,9 +98,10 @@ inline void removeBelcardPhoto (const shared_ptr<belcard::BelCard> &belcard, boo
// -----------------------------------------------------------------------------
VcardModel::VcardModel (shared_ptr<linphone::Vcard> vcard) {
VcardModel::VcardModel (shared_ptr<linphone::Vcard> vcard, bool isReadOnly) {
Q_ASSERT(vcard != nullptr);
mVcard = vcard;
mIsReadOnly = isReadOnly;
}
VcardModel::~VcardModel () {
......
......@@ -44,7 +44,7 @@ class VcardModel : public QObject {
// ---------------------------------------------------------------------------
public:
VcardModel (std::shared_ptr<linphone::Vcard> vcard);
VcardModel (std::shared_ptr<linphone::Vcard> vcard, bool isReadOnly = true);
~VcardModel ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment