Browse Source

completing Message

AllGroupDevicesShowHandshake
Volker Birk 6 years ago
parent
commit
eb86ff6499
2 changed files with 8 additions and 2 deletions
  1. +2
    -1
      src/message.hh
  2. +6
    -1
      src/pEpmodule.cc

+ 2
- 1
src/message.hh View File

@ -112,7 +112,8 @@ namespace pEp {
dict opt_fields() { return strdict_attr(_msg->opt_fields); }
void opt_fields(dict value) { return strdict_attr(_msg->opt_fields, value); }
PEP_enc_format enc_format;
PEP_enc_format enc_format() { return _msg->enc_format; }
void enc_format(PEP_enc_format value) { _msg->enc_format = value; }
};
}
}


+ 6
- 1
src/pEpmodule.cc View File

@ -133,6 +133,11 @@ BOOST_PYTHON_MODULE(pEp)
"comments added to message")
.add_property("opt_fields", (dict(Message::*)()) &Message::opt_fields,
(void(Message::*)(dict)) &Message::opt_fields,
"opt_fields of message");
"opt_fields of message")
.add_property("enc_format", (int(Message::*)())
(PEP_enc_format(Message::*)()) &Message::enc_format,
(void(Message::*)(int))
(void(Message::*)(PEP_enc_format)) &Message::enc_format,
"0: unencrypted, 1: inline PGP, 2: S/MIME, 3: PGP/MIME, 4: p≡p format");
}

Loading…
Cancel
Save