RAMSES Documentation  27.0.130
Information for RAMSES users and developers
DcsmProvider.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // Copyright (C) 2019 BMW AG
3 // -------------------------------------------------------------------------
4 // This Source Code Form is subject to the terms of the Mozilla Public
5 // License, v. 2.0. If a copy of the MPL was not distributed with this
6 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
7 // -------------------------------------------------------------------------
8 
9 #ifndef RAMSES_DCSMPROVIDER_H
10 #define RAMSES_DCSMPROVIDER_H
11 
18 
19 namespace ramses
20 {
21  class DcsmProviderImpl;
22 
28  {
29  public:
52 
72 
90 
110 
127 
137 
158 
172  status_t enableFocusRequest(ContentID contentID, int32_t focusRequest);
173 
184  status_t disableFocusRequest(ContentID contentID, int32_t focusRequest);
185 
203 
221 
225  explicit DcsmProvider(DcsmProviderImpl&);
226 
231 
235  class DcsmProviderImpl& impl;
236 
240  DcsmProvider() = delete;
241 
246  DcsmProvider(const DcsmProvider& other) = delete;
247 
253  DcsmProvider& operator=(const DcsmProvider& other) = delete;
254  };
255 }
256 
257 #endif
#define RAMSES_API
Definition: APIExport.h:35
Class to create DCSM metadata object to be used in DcsmProvider.
Definition: DcsmMetadataCreator.h:30
Class used to offer ramses content and meta infos to a consumer and synchronize actions between clien...
Definition: DcsmProvider.h:28
DcsmProvider()=delete
Deleted default constructor.
DcsmProvider(const DcsmProvider &other)=delete
Deleted copy constructor.
status_t dispatchEvents(IDcsmProviderEventHandlerExtended &handler)
Calls a callback function for every internal event including the content status event.
status_t updateContentMetadata(ContentID contentID, const DcsmMetadataCreator &metadata)
Send metadata updates to consumers content is assigned to. The content is earliest sent to consumer o...
status_t dispatchEvents(IDcsmProviderEventHandler &handler)
Calls a callback function for every internal event except the content status event,...
~DcsmProvider()
Destructor of DcsmProvider.
DcsmProvider & operator=(const DcsmProvider &other)=delete
Deleted copy assignment.
status_t offerContentWithMetadata(ContentID contentID, Category category, waylandIviSurfaceId_t surfaceId, EDcsmOfferingMode mode, const DcsmMetadataCreator &metadata)
Same behavior as offerContent() but additionally send provided metadata to consumers that assigned co...
class DcsmProviderImpl & impl
Definition: DcsmProvider.h:235
status_t offerContent(ContentID contentID, Category category, sceneId_t scene, EDcsmOfferingMode mode)
Assigns a ramses scene ID to a contentID and category and offers that content to listening consumers....
status_t offerContentWithMetadata(ContentID contentID, Category category, sceneId_t scene, EDcsmOfferingMode mode, const DcsmMetadataCreator &metadata)
Same behavior as offerContent() but additionally send provided metadata to consumers that assigned co...
DcsmProvider(DcsmProviderImpl &)
Constructor of DcsmProvider.
status_t requestStopOfferContent(ContentID contentID)
Request to stop offering a content. A successful request will trigger a call to stopOfferAccepted in ...
status_t enableFocusRequest(ContentID contentID, int32_t focusRequest)
Requests an assigned DcsmConsumer to switch to/focus this content within a category....
status_t offerContent(ContentID contentID, Category category, waylandIviSurfaceId_t surfaceId, EDcsmOfferingMode mode)
Assigns a Wayland IVI Surface ID to a contentID and category and offers that content to listening con...
status_t markContentReady(ContentID contentID)
Marks the content ready for displaying. This function might be called any time after offerContent()....
status_t disableFocusRequest(ContentID contentID, int32_t focusRequest)
No longer request an assigned DcsmConsumer to focus this content for given focusrequest within a cate...
An Interface for a class, whose functions are called as reaction to a DcsmConsumer message after call...
Definition: IDcsmProviderEventHandler.h:116
An Interface for a class, whose functions are called as reaction to DcsmConsumer communication after ...
Definition: IDcsmProviderEventHandler.h:24
The StatusObject provides status message handling.
Definition: StatusObject.h:22
Helper class to create strongly typed values out of various types.
Definition: StronglyTypedValue.h:23
The RAMSES namespace contains all client side objects and functions used to implement RAMSES applicat...
Definition: AnimatedProperty.h:15
uint32_t status_t
Status is a handle to the result of an API call.
Definition: RamsesFrameworkTypes.h:26
EDcsmOfferingMode
Definition: EDcsmOfferingMode.h:20