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

This commit is contained in:
Ronan Abhamon 2017-05-05 14:56:58 +02:00
parent 1b6788f005
commit 853f9fa82e
2 changed files with 3 additions and 2 deletions

View file

@ -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 () {

View file

@ -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 ();