Add signal 'dataAvailable' to allow chunkwise data processing
Emit metaDataRequestFinished when request processing is finished
Adapted execution order to ensure loadingFinished is signalled last
CCBUG: 388583
elvisangelaccio | |
smithjd | |
vhanda | |
ngraham |
Dolphin | |
Frameworks |
Add signal 'dataAvailable' to allow chunkwise data processing
Emit metaDataRequestFinished when request processing is finished
Adapted execution order to ensure loadingFinished is signalled last
CCBUG: 388583
Visual inspection
make test
No Linters Available |
No Unit Test Coverage |
src/filemetadataprovider.h | ||
---|---|---|
114 | Could you add API documentation there what this signal indicates and when to use it? Typically, if you find code that is documented it is good practice to do the same :-) |
src/filemetadataprovider.cpp | ||
---|---|---|
321–322 | Is it guaranteed, that this is emitted before IndexedDataRetriever job is finished? |
+1, looks good to me.
src/filemetadataprovider.cpp | ||
---|---|---|
321–322 | I don't think so, because IndexedDataRetriever::start() does not block. |
src/filemetadataprovider.cpp | ||
---|---|---|
321–322 | In that case it might be safer to do IndexedDataRetriever *ret = new IndexedDataRetriever(filePath, this); connect(ret, SIGNAL(finished(KJob*)), this, SLOT(slotLoadingFinished(KJob*))); insertBasicData(); insertEditableData(); emit dataAvailable(); ret->start(); Because once loadingFinished() is signalled it's over. dataAvailable(); won't get processed anymore. |
Merge branch 'master' of git://anongit.kde.org/baloo-widgets
Change execution order in setFileItems
src/filemetadataprovider.cpp | ||
---|---|---|
321–322 | Sounds good, but please explain why we are moving this signal in the commit message. This will make easier to git blame this code in the future. |
Changed description
Or did you mean the commit messages of 1e3aa22d15d8 and 0f362a3e0de0?
Also, I've committed the accepted revisions to master not Applications/17.1. Correct?
Added test for empty file list
Added test for file list with empty url
Simplified path construction
src/filemetadatawidget.cpp | ||
---|---|---|
119 | test with empty items(): This code is reached, but the moc doesn't signal. |