ContentProvider::Observer¶
-
class
kanzi::connect::ContentProvider
::
Observer
Allows to monitor changes in Content Provider.
Subclassed by ContentProviderCollection, ContentSubscription
Public Functions
-
inline virtual
~Observer
() Virtual destructor (for SWIG).
-
inline virtual void
onChanged
(ContentProvider*, const string&, bool) 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.
-
inline virtual void
onInvalidated
(ContentProvider*, const string&, int, int, int) 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.
-
inline virtual