[2.10.0]bus司机端"出/收车"按钮

This commit is contained in:
wangmingjun
2022-08-23 15:24:56 +08:00
parent 325949b0ed
commit 54f5ddd662
13 changed files with 213 additions and 70 deletions

View File

@@ -0,0 +1,16 @@
package com.mogo.eagle.core.function.api.hmi.view
import android.content.Context
import android.util.AttributeSet
import android.widget.LinearLayout
/**
* 定义红绿灯View具备的功能接口
*/
abstract class IOchBusView(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) :
LinearLayout(context, attrs, defStyleAttr) {
open fun showBusOperation(){}
open fun changerOperationStatus(isOut:Boolean){}
}

View File

@@ -8,6 +8,7 @@ import com.mogo.eagle.core.data.notice.NoticeNormalData
import com.mogo.eagle.core.data.notice.NoticeTrafficStylePushData
import com.mogo.eagle.core.data.report.ReportEntity
import com.mogo.eagle.core.function.api.hmi.IMoGoHmiViewProxy
import com.mogo.eagle.core.function.api.hmi.view.IOchBusView
/**
* @author xiaoyuzhou
@@ -251,4 +252,8 @@ interface IMoGoWaringProvider : IMoGoHmiViewProxy {
fun showIPCReportWindow(errorReportList: ArrayList<ReportEntity>,warningReportList: ArrayList<ReportEntity>,reportLevel: Int)
fun showVideoDialog(infList: List<Infrastructure>)
fun changeBusOperationStatus(isOut:Boolean)
fun setBusOperationView(view:IOchBusView)
}