pEp_utility.cpp
changeset 217 7ebb44e5bf85
parent 212 33bddd7ba879
child 219 03531c4d3fda
     1.1 --- a/pEp_utility.cpp	Wed Nov 23 16:02:58 2016 +0100
     1.2 +++ b/pEp_utility.cpp	Wed Nov 23 16:45:55 2016 +0100
     1.3 @@ -21,6 +21,7 @@
     1.4                  username = _ident->username;
     1.5              comm_type = (pEpComType) _ident->comm_type;
     1.6              lang = _ident->lang;
     1.7 +			flags = (int) _ident->flags;
     1.8          }
     1.9  
    1.10          pEp_identity_cpp::pEp_identity_cpp(const pEpIdentity *_ident)
    1.11 @@ -40,6 +41,7 @@
    1.12              comm_type = _ident->CommType;
    1.13              if (_ident->Lang)
    1.14                  lang = utf8_string(_ident->Lang);
    1.15 +			flags = (int)_ident->Flags;
    1.16          }
    1.17  
    1.18          pEp_identity * pEp_identity_cpp::to_pEp_identity()
    1.19 @@ -59,6 +61,8 @@
    1.20                  _ident->lang[1] = this->lang[1];
    1.21              }
    1.22  
    1.23 +			_ident->flags = (identity_flags) this->flags;
    1.24 +
    1.25              return _ident;
    1.26          }
    1.27  
    1.28 @@ -75,6 +79,7 @@
    1.29              _ident->Lang = utf16_bstr(this->lang);
    1.30              _ident->UserName = utf16_bstr(this->username);
    1.31              _ident->UserId = utf16_bstr(this->user_id);
    1.32 +			_ident->Flags = this->flags;
    1.33  
    1.34              return _ident;
    1.35          }
    1.36 @@ -98,6 +103,7 @@
    1.37                  ident_s->CommType = (pEpComType) ident->comm_type;
    1.38                  if (ident->lang)
    1.39                      ident_s->Lang = utf16_bstr(ident->lang);
    1.40 +				ident_s->Flags = (int) ident->flags;
    1.41              }
    1.42          }
    1.43  
    1.44 @@ -157,6 +163,8 @@
    1.45                  }
    1.46              }
    1.47  
    1.48 +			_ident->flags = (identity_flags_t)ident->Flags;
    1.49 +
    1.50              return _ident;
    1.51          }
    1.52