MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / QueryMyDevices

Method QueryMyDevices

src/render_panel/ui/tab_profile.cpp:446–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444 }
445
446 void TabProfile::QueryMyDevices() {
447 context_->PostTask([=, this]() {
448 auto devices = acc_sdk_->QueryDevices("", 0, 0);
449 context_->PostUITask([=, this]() {
450 int count = list_widget_->count();
451 for (int i = 0; i < count; i++) {
452 auto item = list_widget_->takeItem(0);
453 delete item;
454 }
455
456 int index = 0;
457 for (const auto& item_info : devices) {
458 AddItem(item_info, index++);
459 }
460 });
461 });
462 }
463
464 QWidget* TabProfile::AddEmptyWidget() {
465 auto w = new QWidget(this);

Callers

nothing calls this directly

Calls 2

PostTaskMethod · 0.45
PostUITaskMethod · 0.45

Tested by

no test coverage detected