|
void | addContentProvider (ContentProviderSharedPtr provider, bool invalidate=true) |
| Adds content provider to collection.
|
|
ContentProviderContainer::const_iterator | beginProviders () const |
| Allows to iterate all contained providers.
|
|
| ContentProviderCollection (WorkQueueInterface *workQueue, AbstractServiceSharedPtr owningService) |
| Constructor.
|
|
ContentProviderContainer::const_iterator | endProviders () const |
| Allows to iterate all contained providers.
|
|
virtual size_t | getSubProviderCount () override |
|
virtual ContentProviderDescriptionSharedPtr | getSubProviderDescription (size_t index) override |
|
virtual void | query (ContentQueryArgumentsSharedPtr args, ContentQuerySharedPtr contentQuery) override |
|
void | removeContentProvider (ContentProviderSharedPtr provider, bool invalidate=true) |
| Removes content provider from this collection.
|
|
virtual | ~ContentProviderCollection () |
|
void | addObserver (Observer *observer) |
| Adds new observer for this instance.
|
|
void | addSubscription (ContentSubscriptionSharedPtr subscription) |
| Adds new subscription to this instance.
|
|
| ContentProvider (WorkQueueInterface *workQueue) |
| Constructor.
|
|
| ContentProvider (WorkQueueInterface *workQueue, AbstractServiceSharedPtr owningService) |
| Constructor.
|
|
vector< ContentSubscriptionSharedPtr > | getAllSubscriptions () const |
| Retrieves all subscriptions for this provider.
|
|
AbstractServiceSharedPtr | getOwningService () |
| Retrieves the service this content provider is bound to.
|
|
AbstractSessionSharedPtr | getOwningSession () const |
| Retrieve the session that owns this content provider.
|
|
const string & | getSchema () const |
| Retrieve the Schema.
|
|
ContentSubscriptionSharedPtr | getSubscription (shared_ptr< ContentServiceConcept::Session > session) const |
| Retrieves content subscription for given session.
|
|
const string & | getUri () const |
| Retrieve the URI.
|
|
bool | hasSchema () const |
| Determines whether this particular content provider has schema defined.
|
|
virtual void | initialize () |
| Called by the Content Service. Initializes this instance.
|
|
void | invalidate (const string &uri, int reason, int beginRow=0, int endRow=-1) |
| Invalidates the content and causes subscribed clients to refresh their data completely.
|
|
void | invalidateEx (const string &uri, int reason, int beginRow=0, int endRow=-1) |
| Invalidates the content and causes subscribed clients to refresh their data completely.
|
|
void | notifyChangedEx (const string &uri=string()) |
| Informs that specific URI is changed.
|
|
void | releaseAllSubscriptions () |
| Releases all subscriptions from this instance.
|
|
void | removeObserver (Observer *observer) |
| Removes observer from this instance.
|
|
void | removeSubscription (const ContentSubscription &subscription) |
| Removes subscription from this instance.
|
|
void | setOwningService (AbstractServiceSharedPtr service) |
| Sets the owning service.
|
|
void | setOwningSession (AbstractSessionSharedPtr session) |
| Store the owning session.
|
|
void | setSchema (const string &schema) |
| Save the Schema (xml).
|
|
void | setUri (const string &uri) |
| Save the URI.
|
|
virtual void | uninitialize () |
| Called by the Content Service. Un-initializes this instance.
|
|
virtual void | work () |
| Called by the Content Service. Allows this instance to perform work such as push data from external threads to content system or procedurally generate data.
|
|
virtual | ~ContentProvider () |
| Destructor.
|
|