Add method to return temperature pointer for qml
ClosedPublic

Authored by laysrodrigues on Jul 8 2019, 9:52 PM.

Diff Detail

Branch
temperatures
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 13768
Build 13786: arc lint + arc unit
laysrodrigues requested review of this revision.Jul 8 2019, 9:52 PM
laysrodrigues created this revision.
  • Register temperature pointer as q_property
  • Declare properties connectedPort and temperature as constants
  • Update gitignore
  • Update gitignore
  • Update gitignore
patrickelectric requested changes to this revision.Jul 9 2019, 12:09 AM
patrickelectric added inline comments.
src/core/atcore.cpp
975

Follow file style, brackets should be in new line.

src/core/atcore.h
256

We don't use prefix types in this project, try a more explicit way like just temperature or temperaturePointer.

src/core/machineinfo.h
124 ↗(On Diff #61381)

It does not return a key, it returns a QString.

This revision now requires changes to proceed.Jul 9 2019, 12:09 AM
laysrodrigues marked 3 inline comments as done.Jul 9 2019, 2:07 AM
laysrodrigues added inline comments.
src/core/atcore.h
256

temperature doesn't work because of the shared_ptr. will use the second.

laysrodrigues marked an inline comment as done.

patrick suggestions

rizzitello requested changes to this revision.Jul 9 2019, 11:37 AM
rizzitello added inline comments.
src/core/atcore.h
256

This is not needed, Edit the current one to return d->temperature.get() and update the clients to not use get for their calls.. Then everyone gets to save a bit of typing.

This revision now requires changes to proceed.Jul 9 2019, 11:37 AM

sith suggestions

laysrodrigues retitled this revision from Add method to convert MachineInfo enum to string to Add method to return temperature pointer for qml.Jul 9 2019, 5:06 PM
laysrodrigues edited the summary of this revision. (Show Details)
laysrodrigues added a reviewer: broulik.
laysrodrigues marked an inline comment as done.

done

rizzitello requested changes to this revision.Jul 9 2019, 5:18 PM
rizzitello added inline comments.
src/core/atcore.cpp
974

Please add a new line here

This revision now requires changes to proceed.Jul 9 2019, 5:18 PM
laysrodrigues marked an inline comment as done.Jul 9 2019, 6:21 PM
rizzitello accepted this revision.Jul 9 2019, 9:55 PM

Double check the base before merging.

patrickelectric accepted this revision.Jul 10 2019, 4:01 PM
This revision is now accepted and ready to land.Jul 10 2019, 4:01 PM
laysrodrigues closed this revision.Jul 10 2019, 4:11 PM