trainoverlord: switch from train based blocking to tag based blocking
This commit is contained in:
parent
29b887504d
commit
96638d6f8d
16 changed files with 291 additions and 202 deletions
|
|
@ -129,13 +129,10 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
OverlordItemStore items;
|
||||
Layout layout;
|
||||
|
||||
QObject::connect(&items, &OverlordItemStore::itemAdded, &layout, &Layout::itemAdded);
|
||||
QObject::connect(&items, &OverlordItemStore::trainArrivedAtReader, &layout, &Layout::trainArrivedAtReader);
|
||||
Layout layout(&items);
|
||||
|
||||
Microcontroller micro(µSocket);
|
||||
QObject::connect(µ, &Microcontroller::gotTag, &items, &OverlordItemStore::gotNfcTag);
|
||||
QObject::connect(µ, &Microcontroller::gotTag, &layout, &Layout::tagArrivedAtReader);
|
||||
QObject::connect(µ, &Microcontroller::gotItemList, &items, &OverlordItemStore::addItems);
|
||||
QObject::connect(µ, &Microcontroller::itemChanged, &items, &OverlordItemStore::itemStateChanged);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue