~thelinuxguy/openlp/bible-improvements

« back to all changes in this revision

Viewing changes to openlp/core/projectors/constants.py

  • Committer: Tim Bentley
  • Author(s): Ken Roberts
  • Date: 2017-12-09 14:47:23 UTC
  • mfrom: (2793.1.3 pjlink2-m)
  • Revision ID: tim.bentley@gmail.com-20171209144723-bv4mpkyvu904hlbk
- Added pjlink.process_pjlink
- Split pjlink.check_login() to use process_pjlink()
- Added QAbstractSocket connect enum to constants
- Minor code cleanups for connection and command processing
- Updated packet queueing
- Fix get_object_filtered()
- Fix tests in test_projector_pjlink_base
- Fix tests in test_projector_pjlink_cmd_routing
- Added tests for process_pjlink method
- Updated test_projector_bugfixes_01
- Some OLP style cleanups

-------------------------------------------------------...

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
             }
145
145
}
146
146
 
 
147
# QAbstractSocketState enums converted to string
 
148
S_QSOCKET_STATE = {
 
149
    0: 'QSocketState - UnconnectedState',
 
150
    1: 'QSocketState - HostLookupState',
 
151
    2: 'QSocketState - ConnectingState',
 
152
    3: 'QSocketState - ConnectedState',
 
153
    4: 'QSocketState - BoundState',
 
154
    5: 'QSocketState - ListeningState (internal use only)',
 
155
    6: 'QSocketState - ClosingState',
 
156
    'UnconnectedState': 0,
 
157
    'HostLookupState': 1,
 
158
    'ConnectingState': 2,
 
159
    'ConnectedState': 3,
 
160
    'BoundState': 4,
 
161
    'ListeningState': 5,
 
162
    'ClosingState': 6
 
163
}
 
164
 
147
165
# Error and status codes
148
166
S_OK = E_OK = 0  # E_OK included since I sometimes forget
149
167
# Error codes. Start at 200 so we don't duplicate system error codes.