Allows to monitor changes in Content Provider.
More...
#include <content_provider.hpp>
|
virtual void | onChanged (ContentProvider *provider, const string &uri, bool async) |
| Callback to notify that change has occurred in given content provider.
|
|
virtual void | onInvalidated (ContentProvider *provider, const string &uri, int reason, int beginRow, int endRow) |
| Callback to notify invalidation of content provider.
|
|
virtual | ~Observer () |
| Virtual destructor (for SWIG).
|
|
Allows to monitor changes in Content Provider.
◆ ~Observer()
virtual kanzi::connect::ContentProvider::Observer::~Observer |
( |
| ) |
|
|
inlinevirtual |
Virtual destructor (for SWIG).
◆ onChanged()
virtual void kanzi::connect::ContentProvider::Observer::onChanged |
( |
ContentProvider * | provider, |
|
|
const string & | uri, |
|
|
bool | async ) |
|
inlinevirtual |
Callback to notify that change has occurred in given content provider.
- Parameters
-
provider | Content Provider that changed. |
uri | Uri within Content Provider domain that changed. |
async | Boolean indicating whether changes need to propagate to subscribers immediately, or is it ok to process the queries asynchronously. |
Reimplemented in kanzi::connect::ContentSubscription.
◆ onInvalidated()
virtual void kanzi::connect::ContentProvider::Observer::onInvalidated |
( |
ContentProvider * | provider, |
|
|
const string & | uri, |
|
|
int | reason, |
|
|
int | beginRow, |
|
|
int | endRow ) |
|
inlinevirtual |
Callback to notify invalidation of content provider.
- Parameters
-
provider | Content provider that changed. |
reason | the reason for invalidation. Not currently used. |
beginRow | inclusive start row of the change. Not currently used. |
endRow | inclusive end row of the change. Not currently used. |
Reimplemented in kanzi::connect::ContentSubscription.
The documentation for this class was generated from the following file:
- content_service/content_provider.hpp