virtual void recallTrackList() { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,recallTrackList); }
* */ #ifndef APPLIB_TEST_PROFILE_PROXY_HPP #define APPLIB_TEST_PROFILE_PROXY_HPP #include <string> //profile proxy header, must be included #include "ProfileProxy.hpp" //abstract profile API class header, must be included #include "IAppLibTestProfileAPI.hpp" #define CURRENT_PROFILE_API IAppLibTestProfile_API #define CURRENT_PROFILE_PROXY AppLibTestProfileProxy #define CURRENT_PROFILE_PROXY_API_UID "AppLibTest_PAPI_UID" IVILINK_PROFILE_PROXY_BEGIN(CURRENT_PROFILE_PROXY, CURRENT_PROFILE_API, CURRENT_PROFILE_PROXY_API_UID) virtual void sendData(std::string data) { // macro calls CURRENT_PROFILE_API->sendData(data), if the function exists IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,sendData, data) } IVILINK_PROFILE_PROXY_END #endif // APPLIB_TEST_PROFILE_PROXY_HPP
#define CURRENT_PROFILE_API IBasicSampleProfile_API #define CURRENT_PROFILE_PROXY CBasicSampleProfileProxy #define CURRENT_PROFILE_PROXY_API_UID "BasicSampleProfile_PAPI_UID" IVILINK_PROFILE_PROXY_BEGIN(CURRENT_PROFILE_PROXY, CURRENT_PROFILE_API, CURRENT_PROFILE_PROXY_API_UID) /** * Sending the summands * @param a, b - operands * @return none */ virtual void sendOperands(int a, int b) { // macro calls CURRENT_PROFILE_API->sendOperands(a,b), if the function exists IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,sendOperands, a, b) } /** * Sending the obtained result * @param a - result of operation * @return none */ virtual void sendResult(int a) { // macro calls CURRENT_PROFILE_API->sendResult(a), if the function exists IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,sendResult,a) } IVILINK_PROFILE_PROXY_END
#define CMEDIASOURCESERVERPROFILEPROXY_HPP #include <iostream> #include "IMediaSourceServerProfileAPI.hpp" #include "ProfileProxy.hpp" #define CURRENT_PROFILE_API IMediaSourceServerProfile_API #define CURRENT_PROFILE_PROXY CMediaSourceServerProfileProxy #define CURRENT_PROFILE_PROXY_API_UID "MediaSourceServerProfile_API_UID" IVILINK_PROFILE_PROXY_BEGIN(CURRENT_PROFILE_PROXY, CURRENT_PROFILE_API, CURRENT_PROFILE_PROXY_API_UID) virtual void sendTrackList(std::string const& trackList) { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,sendTrackList, trackList) } virtual void recallTrackList() { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,recallTrackList); } virtual void trackListChanged() { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,trackListChanged) } IVILINK_PROFILE_PROXY_END #endif /* CMEDIASOURCESERVERPROFILEPROXY_HPP */
* You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ #ifndef CNOTIFICATIONSPROFILEPROXY_HPP_ #define CNOTIFICATIONSPROFILEPROXY_HPP_ //abstract profile API class header, must be included #include "INotificationsProfileAPI.hpp" //profile proxy header, must be included #include "CProfileProxy.hpp" #define CURRENT_PROFILE_API INotificationsProfileAPI #define CURRENT_PROFILE_PROXY CNotificationsProfileProxy #define CURRENT_PROFILE_PROXY_API_UID "NotificationsProfile_PAPI_UID" IVILINK_PROFILE_PROXY_BEGIN(CURRENT_PROFILE_PROXY, CURRENT_PROFILE_API, CURRENT_PROFILE_PROXY_API_UID) virtual void sendString(const std::string & outgoingString) { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API, sendString, outgoingString) } IVILINK_PROFILE_PROXY_END #endif /* CBASICSAMPLEPROFILEPROXY_HPP_ */
virtual void sendStreamingInfo() { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,sendStreamingInfo); }
virtual void stop() { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,stop); }
IVILINK_PROFILE_PROXY_BEGIN(CURRENT_PROFILE_PROXY, CURRENT_PROFILE_API, CURRENT_PROFILE_PROXY_API_UID) virtual void serverStop() { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,serverStop); } virtual void stop() { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,stop); } virtual void play(std::string const& trackName, std::string const& trackUid, std::string const& avform) { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,play, trackName, trackUid, avform) } virtual void resume() { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,resume) } virtual void pause() { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,pause) } virtual void toggle() { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,toggle)
#ifndef CSEATCLIENTPROXY_HPP_ #define CSEATCLIENTPROXY_HPP_ #include "samples/linux/Profiles/ProfileAPI/ISeatClientProfile.hpp" #include "framework/public/appLib/CProfileProxy.hpp" #define CURRENT_PROFILE_API ISeatClientProfile #define CURRENT_PROFILE_PROXY CSeatClientProxy #define CURRENT_PROFILE_PROXY_API_UID "SeatClientProfile_API_UID" IVILINK_PROFILE_PROXY_BEGIN(CURRENT_PROFILE_PROXY, CURRENT_PROFILE_API, CURRENT_PROFILE_PROXY_API_UID) virtual void moveRequest(EMoveEvent event) { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,moveRequest, event) } virtual void tabRequest(EPersonEvent event) { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,tabRequest, event) } virtual void heaterRequest(EPersonEvent event) { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,heaterRequest, event) } virtual void initRequest() { IVILINK_PROXY_VOID_FUNCTION(CURRENT_PROFILE_API,initRequest)