The relevant namespace is exported and exposed to QML. Intended to help
tidy up the patch D25447 that shadows the enum values manually.
Details
Diff Detail
- Repository
- R293 Baloo
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 21268 Build 21286: arc lint + arc unit
This doesn't compile for me:
[ 11%] Building CXX object src/engine/CMakeFiles/KF5BalooEngine.dir/indexerstate.cpp.o In file included from /home/nate/kde/src/baloo/src/engine/indexerstate.cpp:1: /home/nate/kde/src/baloo/src/engine/indexerstate.h:32:19: error: expected constructor, destructor, or type conversion before ‘(’ token 32 | Q_NAMESPACE_EXPORT(BALOO_ENGINE_EXPORT) | ^
Thanks, now it compiles! I'm not sure it's working perfectly though. I updated D25447 to use this, but it's claiming that my indexer is suspended, while balooctl status disagrees.
@davidedmundson ping. This needs to make it into Frameworks 5.66 this is tagged in a week if the dependent patches are to land in Plasma 5.18.
Thanks, now it compiles! I'm not sure it's working perfectly though. I updated D25447 to use this, but it's claiming that my indexer is suspended, while balooctl status disagrees.
There were several other problems with the QML plugin which I've hopefully fixed up separately.
Thanks!
Baloo::Suspended doesn't seem to be exported properly or set. Also it seems like toggleSuspendState() only ever suspends and never resumes. Looking at the code in monitor.cpp, it seems like these may be related.
src/qml/experimental/baloomonitorplugin.cpp | ||
---|---|---|
31 | I have to also add a qRegisterMetaType<Baloo::IndexerState>(); in order to be able to use that type in a Q_PROPERTY. How odd. |