Browse Source

not needed

PYADPT-55
Volker Birk 6 years ago
parent
commit
47ff9acaa0
  1. 3
      src/pEpmodule.cc
  2. 5
      src/user_interface.cc
  3. 3
      src/user_interface.hh
  4. 3
      test/sync_handshake.py

3
src/pEpmodule.cc

@ -405,9 +405,8 @@ BOOST_PYTHON_MODULE(pEp)
"\n"
"overwrite this method with an implementation of a handshake dialog")
.def("deliverHandshakeResult", &UserInterface::deliverHandshakeResult,
"deliverHandshakeResult(self, partber, result)\n"
"deliverHandshakeResult(self, result)\n"
"\n"
" partner identity of communication partner\n"
" result -1: cancel, 0: accepted, 1: rejected\n"
"\n"
"call to deliver the handshake result of the handshake dialog")

5
src/user_interface.cc

@ -51,11 +51,10 @@ namespace pEp {
return PEP_STATUS_OK;
}
void UserInterface::deliverHandshakeResult(Identity partner,
int result)
void UserInterface::deliverHandshakeResult(int result)
{
PEP_STATUS status = ::deliverHandshakeResult(adapter.session(),
partner, (sync_handshake_result) result);
(sync_handshake_result) result);
_throw_status(status);
}

3
src/user_interface.hh

@ -24,8 +24,7 @@ namespace pEp {
throw runtime_error("override this method");
}
virtual void deliverHandshakeResult(
pEp::PythonAdapter::Identity partner, int result);
virtual void deliverHandshakeResult(int result);
PEP_rating get_key_rating_for_user(string user_id, string fpr);

3
test/sync_handshake.py

@ -37,6 +37,7 @@ device_name = ""
output = print
DONT_TRIGGER_SYNC = 0x200
SYNC_HANDSHAKE_ACCEPTED = 0
def print_msg(p):
@ -71,6 +72,8 @@ class UserInterface(pEp.UserInterface):
output("on " + device_name + " signal " + str(signal) + " for identities " + str(me.fpr) + " " +
str(partner.fpr))
self.deliverHandshakeResult(SYNC_HANDSHAKE_ACCEPTED)
def run(name, color=None):
global device_name

Loading…
Cancel
Save