| 274 | } |
| 275 | |
| 276 | void RSSPhotoFrameSource::onImageUpdate(const FileTransfer& transfer) |
| 277 | { |
| 278 | // rename the image back to the original filename |
| 279 | QString texPath = _current.getTexturePath(); |
| 280 | QFile::rename(transfer.getLocalPath(), texPath); |
| 281 | |
| 282 | // load the image (so that it will swap) |
| 283 | GLTextureObject obj(Load|Compress|Reload, _textureBufferId, _current.getTexturePath(), SampledImage, IdlePriority); |
| 284 | texMgr->loadTexture(obj); |
| 285 | |
| 286 | // bump up image loaded count |
| 287 | ++_imageUpdateCount; |
| 288 | } |
| 289 | |
| 290 | void RSSPhotoFrameSource::preparePhotoFrameDialog(PhotoFrameDialog * dialog) const |
| 291 | { |
nothing calls this directly
no test coverage detected