| 9039 | } |
| 9040 | |
| 9041 | AuthenticationResult UserStore_authenticate_readReply(QByteArray reply) |
| 9042 | { |
| 9043 | bool resultIsSet = false; |
| 9044 | AuthenticationResult result = AuthenticationResult(); |
| 9045 | ThriftBinaryBufferReader r(reply); |
| 9046 | qint32 rseqid = 0; |
| 9047 | QString fname; |
| 9048 | ThriftMessageType::type mtype; |
| 9049 | r.readMessageBegin(fname, mtype, rseqid); |
| 9050 | if (mtype == ThriftMessageType::T_EXCEPTION) { |
| 9051 | ThriftException e = readThriftException(r); |
| 9052 | r.readMessageEnd(); |
| 9053 | throw e; |
| 9054 | } |
| 9055 | if (mtype != ThriftMessageType::T_REPLY) { |
| 9056 | r.skip(ThriftFieldType::T_STRUCT); |
| 9057 | r.readMessageEnd(); |
| 9058 | throw ThriftException(ThriftException::Type::INVALID_MESSAGE_TYPE); |
| 9059 | } |
| 9060 | if (fname.compare("authenticate") != 0) { |
| 9061 | r.skip(ThriftFieldType::T_STRUCT); |
| 9062 | r.readMessageEnd(); |
| 9063 | throw ThriftException(ThriftException::Type::WRONG_METHOD_NAME); |
| 9064 | } |
| 9065 | |
| 9066 | ThriftFieldType::type fieldType; |
| 9067 | qint16 fieldId; |
| 9068 | r.readStructBegin(fname); |
| 9069 | while(true) { |
| 9070 | r.readFieldBegin(fname, fieldType, fieldId); |
| 9071 | if(fieldType == ThriftFieldType::T_STOP) break; |
| 9072 | if(fieldId == 0) { |
| 9073 | if(fieldType == ThriftFieldType::T_STRUCT) { |
| 9074 | resultIsSet = true; |
| 9075 | AuthenticationResult v; |
| 9076 | readAuthenticationResult(r, v); |
| 9077 | result = v; |
| 9078 | } else { |
| 9079 | r.skip(fieldType); |
| 9080 | } |
| 9081 | } |
| 9082 | else if(fieldId == 1) { |
| 9083 | if(fieldType == ThriftFieldType::T_STRUCT) { |
| 9084 | EDAMUserException e; |
| 9085 | readEDAMUserException(r, e); |
| 9086 | throw e; |
| 9087 | } else { |
| 9088 | r.skip(fieldType); |
| 9089 | } |
| 9090 | } |
| 9091 | else if(fieldId == 2) { |
| 9092 | if(fieldType == ThriftFieldType::T_STRUCT) { |
| 9093 | EDAMSystemException e; |
| 9094 | readEDAMSystemException(r, e); |
| 9095 | throwEDAMSystemException(e); |
| 9096 | } else { |
| 9097 | r.skip(fieldType); |
| 9098 | } |
no test coverage detected