Ubuntu TV Media Scanner
A centralized index for removable media content.
|
A refresh policy decides when changes to the media index must be re-read. More...
#include <mediascanner/refreshpolicy.h>
Public Member Functions | |
virtual | ~RefreshPolicy () |
virtual bool | OnBeginReading (MediaIndex *index)=0 |
This method is called by the MediaIndex before it starts any read operation. More... | |
virtual bool | OnBeginWriting (WritableMediaIndex *index)=0 |
This method is called by the WritableMediaIndex before it starts any write operation. More... | |
Static Public Member Functions | |
static RefreshPolicyPtr | default_policy () |
The default policy - currently an instance of InstantRefreshPolicy. More... | |
A refresh policy decides when changes to the media index must be re-read.
A policy is needed because, to optimize performance, Lucene++ doesn't automatically refresh its index readers upon changes.
|
virtual |
|
static |
The default policy - currently an instance of InstantRefreshPolicy.
|
pure virtual |
This method is called by the MediaIndex before it starts any read operation.
The policy can now check if the media index needs to be reopened, can can do so if needed.
index |
Implemented in mediascanner::InstantRefreshPolicy.
|
pure virtual |
This method is called by the WritableMediaIndex before it starts any write operation.
The policy can now check if the media index needs to be reopened, can can do so if needed.
index |
Implemented in mediascanner::InstantRefreshPolicy.