| 138 | } |
| 139 | bool Action::paramEquals(const Action& other) const |
| 140 | { |
| 141 | if (type() != other.type()) return false; |
| 142 | switch (other.type()) |
| 143 | { |
| 144 | case QiType::none: return true; |
| 145 | case QiType::end: return to<QiEnd>().paramEquals(other.to<QiEnd>()); |
| 146 | case QiType::delay: return to<QiDelay>().paramEquals(other.to<QiDelay>()); |
| 147 | case QiType::key: return to<QiKey>().paramEquals(other.to<QiKey>()); |
| 148 | case QiType::mouse: return to<QiMouse>().paramEquals(other.to<QiMouse>()); |
| 149 | case QiType::copyText: return to<QiCopyText>().paramEquals(other.to<QiCopyText>()); |
| 150 | case QiType::color: return to<QiColor>().paramEquals(other.to<QiColor>()); |
| 151 | case QiType::loop: return to<QiLoop>().paramEquals(other.to<QiLoop>()); |
| 152 | case QiType::loopEnd: return to<QiLoopEnd>().paramEquals(other.to<QiLoopEnd>()); |
| 153 | case QiType::keyState: return to<QiKeyState>().paramEquals(other.to<QiKeyState>()); |
| 154 | case QiType::resetPos: return to<QiResetPos>().paramEquals(other.to<QiResetPos>()); |
| 155 | case QiType::image: return to<QiImage>().paramEquals(other.to<QiImage>()); |
| 156 | case QiType::popText: return to<QiPopText>().paramEquals(other.to<QiPopText>()); |
| 157 | case QiType::savePos: return to<QiSavePos>().paramEquals(other.to<QiSavePos>()); |
| 158 | case QiType::timer: return to<QiTimer>().paramEquals(other.to<QiTimer>()); |
| 159 | case QiType::jump: return to<QiJump>().paramEquals(other.to<QiJump>()); |
| 160 | case QiType::jumpPoint: return to<QiJumpPoint>().paramEquals(other.to<QiJumpPoint>()); |
| 161 | case QiType::dialog: return to<QiDialog>().paramEquals(other.to<QiDialog>()); |
| 162 | case QiType::block: return to<QiBlock>().paramEquals(other.to<QiBlock>()); |
| 163 | case QiType::blockExec: return to<QiBlockExec>().paramEquals(other.to<QiBlockExec>()); |
| 164 | case QiType::quickInput: return to<QiQuickInput>().paramEquals(other.to<QiQuickInput>()); |
| 165 | case QiType::keyBlock: return to<QiKeyBlock>().paramEquals(other.to<QiKeyBlock>()); |
| 166 | case QiType::clock: return to<QiClock>().paramEquals(other.to<QiClock>()); |
| 167 | case QiType::ocr: return to<QiOcr>().paramEquals(other.to<QiOcr>()); |
| 168 | case QiType::varOperator: return to<QiVarOperator>().paramEquals(other.to<QiVarOperator>()); |
| 169 | case QiType::varCondition: return to<QiVarCondition>().paramEquals(other.to<QiVarCondition>()); |
| 170 | case QiType::mouseTrack: return to<QiMouseTrack>().paramEquals(other.to<QiMouseTrack>()); |
| 171 | case QiType::open: return to<QiOpen>().paramEquals(other.to<QiOpen>()); |
| 172 | case QiType::textPad: return to<QiTextPad>().paramEquals(other.to<QiTextPad>()); |
| 173 | case QiType::editDialog: return to<QiEditDialog>().paramEquals(other.to<QiEditDialog>()); |
| 174 | case QiType::volume: return to<QiVolume>().paramEquals(other.to<QiVolume>()); |
| 175 | case QiType::soundPlay: return to<QiSoundPlay>().paramEquals(other.to<QiSoundPlay>()); |
| 176 | case QiType::msgView: return to<QiMsgView>().paramEquals(other.to<QiMsgView>()); |
| 177 | case QiType::range: return to<QiRangeSet>().paramEquals(other.to<QiRangeSet>()); |
| 178 | } |
| 179 | return false; |
| 180 | } |
| 181 | QJsonObject Action::toJson() const |
| 182 | { |
| 183 | return base().toJson(); |
| 184 | } |
no test coverage detected