Ubuntu TV Media Scanner
A centralized index for removable media content.
|
A CommitPolicy which askes for instant commit of any change. More...
#include <mediascanner/commitpolicy.h>
Public Member Functions | |
bool | OnCreate (const std::vector< std::wstring > &media_urls, WritableMediaIndex *media_index) |
This method is called when data has been inserted into the specified media_index . More... | |
bool | OnUpdate (const std::vector< std::wstring > &media_urls, WritableMediaIndex *media_index) |
This method is called when data has been updated in the specified media_index . More... | |
bool | OnRemove (const std::vector< std::wstring > &media_urls, WritableMediaIndex *media_index) |
This method is called when data has been deleted from the specified media_index . More... | |
![]() | |
virtual | ~CommitPolicy () |
Additional Inherited Members | |
![]() | |
static CommitPolicyPtr | default_policy () |
The default policy - currently an instance of InstantCommitPolicy. More... | |
A CommitPolicy which askes for instant commit of any change.
This policy gives the most reliable behavior, at the cost of reduced performance and increased hardware wear.
|
virtual |
This method is called when data has been inserted into the specified media_index
.
Policy implementations can now decide when to call CommitPendingChanges().
media_urls | The URLs of the affected media. |
media_index | The affected media index. |
Implements mediascanner::CommitPolicy.
|
virtual |
This method is called when data has been deleted from the specified media_index
.
Policy implementations can now decide when to call CommitPendingChanges().
media_urls | The URLs of the affected media. |
media_index | The affected media index. |
Implements mediascanner::CommitPolicy.
|
virtual |
This method is called when data has been updated in the specified media_index
.
Policy implementations can now decide when to call CommitPendingChanges().
media_urls | The URLs of the affected media. |
media_index | The affected media index. |
Implements mediascanner::CommitPolicy.