Merge lp:~alan-griffiths/miral/encapsulate-mir-PromptSession into lp:miral
| Status: | Merged |
|---|---|
| Approved by: | Gerry Boland on 2016-10-10 |
| Approved revision: | 401 |
| Merged at revision: | 400 |
| Proposed branch: | lp:~alan-griffiths/miral/encapsulate-mir-PromptSession |
| Merge into: | lp:miral |
| Diff against target: |
558 lines (+131/-69) 16 files modified
miral-qt/src/common/mirqtconversion.h (+1/-1) miral-qt/src/modules/Unity/Application/application.h (+0/-6) miral-qt/src/modules/Unity/Application/session.cpp (+14/-14) miral-qt/src/modules/Unity/Application/session.h (+5/-5) miral-qt/src/modules/Unity/Application/session_interface.h (+5/-5) miral-qt/src/modules/Unity/Application/sessionmanager.cpp (+3/-2) miral-qt/src/modules/Unity/Application/sessionmanager.h (+2/-2) miral-qt/src/platforms/mirserver/CMakeLists.txt (+1/-1) miral-qt/src/platforms/mirserver/promptsession.h (+62/-0) miral-qt/src/platforms/mirserver/promptsessionmanager.cpp (+6/-6) miral-qt/src/platforms/mirserver/promptsessionmanager.h (+6/-6) miral-qt/tests/framework/fake_session.cpp (+7/-5) miral-qt/tests/framework/fake_session.h (+4/-4) miral-qt/tests/framework/mock_session.h (+5/-4) miral-qt/tests/modules/SessionManager/session_manager_test.cpp (+5/-4) miral-qt/tests/modules/SessionManager/session_test.cpp (+5/-4) |
| To merge this branch: | bzr merge lp:~alan-griffiths/miral/encapsulate-mir-PromptSession |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gerry Boland | 2016-10-06 | Approve on 2016-10-10 | |
|
Review via email:
|
|||
Commit Message
[miral-qt] Encapsulate mir::scene:
Description of the Change
[miral-qt] Encapsulate mir::scene:
(Almost) there's something with the signal/slot mechanism that still requires the complete type for mir::scene:
But this is another step towards isolating the prompt session requirements so they can be supported my libmiral
- 398. By Alan Griffiths on 2016-10-07
-
Adopt local fashion
- 399. By Alan Griffiths on 2016-10-07
-
merge :parent
| Alan Griffiths (alan-griffiths) wrote : | # |
> General change looks ok, however I'd prefer if you adopted the Qt style in
> PromptSession, e.g.
> std::shared_
> -> const std::shared_
> and not use the newer C++ style "auto foo() -> bool"
Done
| Gerry Boland (gerboland) wrote : | # |
> > General change looks ok, however I'd prefer if you adopted the Qt style in
> > PromptSession, e.g.
> > std::shared_
> > -> const std::shared_
> > and not use the newer C++ style "auto foo() -> bool"
>
> Done
Not quite, please put the const qualifier before the type, not after. * and & are attached to the variable name too, not the type.
> std::shared_
> -> const std::shared_
- 400. By Alan Griffiths on 2016-10-10
-
Adopt local fashion
- 401. By Alan Griffiths on 2016-10-10
-
Adopt local fashion

> (Almost) there's something with the signal/slot mechanism that still :PromptSession.
> requires the complete type for mir::scene:
It's not ideal, but Qt refuses to let signal/slot connections work with types that are forward declared. Qt wants to check if the type is registered with the metatype system at compile time. Can't avoid it.
General change looks ok, however I'd prefer if you adopted the Qt style in PromptSession, e.g. ptr<mir: :scene: :PromptSession> const& promptSession ptr<mir: :scene: :PromptSession> &promptSession
std::shared_
-> const std::shared_
and not use the newer C++ style "auto foo() -> bool"