| 101 | } |
| 102 | |
| 103 | QString PlayerOptions::toString() |
| 104 | { |
| 105 | // Channel |
| 106 | QString partChannel = ""; |
| 107 | if (_playerChannel == -1) |
| 108 | partChannel = "all"; |
| 109 | else |
| 110 | partChannel = QString::number(_playerChannel + 1); |
| 111 | |
| 112 | // Multiple selection |
| 113 | QString partMultipleSelection = _playerMultipleSelection ? "on" : "off"; |
| 114 | |
| 115 | // Preset selection |
| 116 | QString partPresetSelection = ""; |
| 117 | switch (_playerKeySelection) |
| 118 | { |
| 119 | case 1: |
| 120 | partPresetSelection = "on"; |
| 121 | break; |
| 122 | case 2: |
| 123 | partPresetSelection = "toggle"; |
| 124 | break; |
| 125 | case 0: default: |
| 126 | partPresetSelection = "off"; |
| 127 | break; |
| 128 | } |
| 129 | |
| 130 | return partChannel + "|" + partMultipleSelection + "|" + partPresetSelection; |
| 131 | } |