(self, session_intf, qtype, qgroup, qid)
| 34 | # @param qid Unique request ID for this (type, group) |
| 35 | # |
| 36 | def __init__(self, session_intf, qtype, qgroup, qid): |
| 37 | self.__session_interf = session_intf |
| 38 | |
| 39 | # Retrieve the request slot |
| 40 | qslot = self.__session_interf.UserInputQueueFetch(qtype.value, |
| 41 | qgroup.value, |
| 42 | qid) |
| 43 | |
| 44 | # Sanity check - ensure we got what we requested |
| 45 | if qtype != ClientAttentionType(qslot[0]) \ |
| 46 | or qgroup != ClientAttentionGroup(qslot[1]) \ |
| 47 | or qid != qslot[2]: |
| 48 | raise RuntimeError('Mismatch in the UserInput queue slot') |
| 49 | |
| 50 | # Parse and save the request information |
| 51 | self.__qtype = qslot[0] |
| 52 | self.__qgroup = qslot[1] |
| 53 | self.__qid = qslot[2] |
| 54 | self.__varname = qslot[3] |
| 55 | self.__label = qslot[4] |
| 56 | self.__mask = qslot[5] |
| 57 | |
| 58 | |
| 59 | def __repr__(self): |
nothing calls this directly
no test coverage detected