Browse Source

adding in_reply_to

PYADPT-55
Volker Birk 9 years ago
parent
commit
4f5d93bfca
  1. 3
      src/message.hh
  2. 5
      src/pEpmodule.cc
  3. 4
      src/str_attr.cc
  4. 4
      src/str_attr.hh

3
src/message.hh

@ -97,7 +97,8 @@ namespace pEp {
list reply_to() { return identitylist_attr(_msg->reply_to); }
void reply_to(list value) { identitylist_attr(_msg->reply_to, value); }
stringlist_t *in_reply_to;
list in_reply_to() { return strlist_attr(_msg->in_reply_to); }
void in_reply_to(list value) { strlist_attr(_msg->in_reply_to, value); }
struct _message *refering_msg_ref;
stringlist_t *references;

5
src/pEpmodule.cc

@ -118,6 +118,9 @@ BOOST_PYTHON_MODULE(pEp)
"list of identities message is going bcc")
.add_property("reply_to", (list(Message::*)()) &Message::reply_to,
(void(Message::*)(list)) &Message::reply_to,
"list of identities where message will be replied to");
"list of identities where message will be replied to")
.add_property("in_reply_to", (list(Message::*)()) &Message::in_reply_to,
(void(Message::*)(list)) &Message::in_reply_to,
"in_reply_to list");
}

4
src/str_attr.cc

@ -38,7 +38,7 @@ namespace pEp {
ts = new_timestamp(value);
}
list strlist(stringlist_t *&sl)
list strlist_attr(stringlist_t *&sl)
{
list result;
@ -50,7 +50,7 @@ namespace pEp {
return result;
}
void strlist(stringlist_t *&sl, list value)
void strlist_attr(stringlist_t *&sl, list value)
{
stringlist_t *_sl = new_stringlist(NULL);
if (!_sl)

4
src/str_attr.hh

@ -16,8 +16,8 @@ namespace pEp {
time_t timestamp_attr(timestamp *&ts);
void timestamp_attr(timestamp *&ts, time_t value);
list strlist(stringlist_t *&sl);
void strlist(stringlist_t *&sl, list value);
list strlist_attr(stringlist_t *&sl);
void strlist_attr(stringlist_t *&sl, list value);
}
}

Loading…
Cancel
Save