add break in datacollect

This commit is contained in:
like 2024-05-31 17:26:52 +08:00
parent abe3cfecd3
commit 006a6db4fb
1 changed files with 17 additions and 0 deletions

View File

@ -38,30 +38,35 @@ void DataCollect::sendMainWindowKdkDataAsync(WindowButton theme)
//释放内存 //释放内存
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case m_IconTheme: case m_IconTheme:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"mainwindow_icontheme_click","mainwindow"); kdk_dia_upload_default(node,"mainwindow_icontheme_click","mainwindow");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case m_CursorTheme: case m_CursorTheme:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"mainwindow_cursortheme_click","mainwindow"); kdk_dia_upload_default(node,"mainwindow_cursortheme_click","mainwindow");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case m_PlymouthTheme: case m_PlymouthTheme:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"mainwindow_plymouththeme_click","mainwindow"); kdk_dia_upload_default(node,"mainwindow_plymouththeme_click","mainwindow");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case m_GrubTheme: case m_GrubTheme:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"mainwindow_grubtheme_click","mainwindow"); kdk_dia_upload_default(node,"mainwindow_grubtheme_click","mainwindow");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
default: default:
break; break;
} }
@ -78,30 +83,35 @@ void DataCollect::sendNavigationKdkDataAsync(DataCollect::NavigationButton theme
kdk_dia_upload_default(node,"navigationbar_globaltheme_click","navigationbar"); kdk_dia_upload_default(node,"navigationbar_globaltheme_click","navigationbar");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case n_IconTheme: case n_IconTheme:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"navigationbar_icontheme_click","navigationbar"); kdk_dia_upload_default(node,"navigationbar_icontheme_click","navigationbar");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case n_CursorTheme: case n_CursorTheme:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"navigationbar_cursortheme_click","navigationbar"); kdk_dia_upload_default(node,"navigationbar_cursortheme_click","navigationbar");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case n_PlymouthTheme: case n_PlymouthTheme:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"navigationbar_plymouththeme_click","navigationbar"); kdk_dia_upload_default(node,"navigationbar_plymouththeme_click","navigationbar");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case n_GrubTheme: case n_GrubTheme:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"navigationbar_grubtheme_click","navigationbar"); kdk_dia_upload_default(node,"navigationbar_grubtheme_click","navigationbar");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
default: default:
break; break;
} }
@ -118,42 +128,49 @@ void DataCollect::sendGlobalThemeKdkDataAsync(DataCollect::GlobalThemeChangeWidg
kdk_dia_upload_default(node,"coverWidget_click","globaltheme"); kdk_dia_upload_default(node,"coverWidget_click","globaltheme");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case g_WallPaperWidget: case g_WallPaperWidget:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"wallPaperWidget_click","globaltheme"); kdk_dia_upload_default(node,"wallPaperWidget_click","globaltheme");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case g_ExteriorWidget: case g_ExteriorWidget:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"exteriorWidget_click","globaltheme"); kdk_dia_upload_default(node,"exteriorWidget_click","globaltheme");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case g_FilletWidget: case g_FilletWidget:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"filletWidget_click","globaltheme"); kdk_dia_upload_default(node,"filletWidget_click","globaltheme");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case g_AccentColorWidget: case g_AccentColorWidget:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"accentColorWidget_click","globaltheme"); kdk_dia_upload_default(node,"accentColorWidget_click","globaltheme");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case g_TransparencyWidget: case g_TransparencyWidget:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"transparencyWidget_click","globaltheme"); kdk_dia_upload_default(node,"transparencyWidget_click","globaltheme");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
case g_WindowFilletWidget: case g_WindowFilletWidget:
QtConcurrent::run([=]() { QtConcurrent::run([=]() {
KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK);
kdk_dia_upload_default(node,"windowFilletWidget_click","globaltheme"); kdk_dia_upload_default(node,"windowFilletWidget_click","globaltheme");
kdk_dia_data_free(node); kdk_dia_data_free(node);
}); });
break;
default: default:
break; break;
} }