#include "bluetooth/include/BluetoothModel.h"
#include "system/include/SystemLogModel.h"
#include "wearable_log.h"
+#include "AppViewIDs.h"
+#include "NativeAbility.h"
+#include "bleEvent.h"
+#include "broadcast_feature.h"
+#include "broadcast_service.h"
+#include "cat1_ctl.h"
+#include "cat1_server.h"
+#include "custom_runtime.h"
+#include "custom_utils.h"
+#include "graphic_service.h"
+#include "lwip/apps/http_client.h"
+#include "samgr_lite.h"
+#include "tcxo.h"
+#include "thread_adapter.h"
+#include "thread_init.h"
+#include "vibrator_service.h"
+#include "wearable_log.h"
+#include <array>
+#include <cmsis_os2.h>
+#include <cstdint>
+#include <fstream>
+#include <iostream>
+#include <map>
+#include <service/graphic_service.h>
+#include <string>
+#include <vector>
namespace OHOS
{
{
case 1:
str = get_bt_runtime_status_t();
- debugOutputLabel->SetText(str.c_str());
break;
case 2:
str = get_cat1_runtime_status_t();
- debugOutputLabel->SetText(str.c_str());
break;
case 3:
str = get_runtime_status_t();
- debugOutputLabel->SetText(str.c_str());
break;
case 4:
str = get_system_log();
- debugOutputLabel->SetText(str.c_str());
break;
default:
+ str = "--";
break;
+ }
+
+ // GraphicService::GetInstance()->PostGraphicEvent(std::bind(
+ // &DebugOutputViewEventListener::UpdateView, DebugOutputViewEventListener::GetInstance(),str));
+
+ return true;
+ }
+
+
+ //获取视图
+ void DebugOutputViewEventListener::UpdateView(std::string str)
+ {
+ if(debugOutputLabel != nullptr)
+ {
+ debugOutputLabel->SetText(str.c_str());
}
if (debugOutputLabelButton)
{
debugOutputLabelButton->Invalidate();
}
debugOutputLabel->Invalidate();
-
- return true;
}
-
bool DebugOutputViewEventListener::OnDrag(UIView &view, const DragEvent &event)
{
UNUSED(view);