CarplayLinkCbsImpl.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef CARPLAYLINKCBSIMPL_H
  2. #define CARPLAYLINKCBSIMPL_H
  3. #include "carplayWrapper.h"
  4. class CarplayLink;
  5. class CarplayLinkCbsImpl : public ICarplayCallbacks
  6. {
  7. public:
  8. CarplayLinkCbsImpl(CarplayLink *handle) : mHandle(handle) {
  9. mEntityScreen = 0;
  10. mEntityPhoneCall = -1;
  11. printf("%s:%s:%d\r\n",__FILE__,__func__,__LINE__);
  12. }
  13. ~CarplayLinkCbsImpl() {
  14. printf("%s:%s:%d\r\n",__FILE__,__func__,__LINE__);
  15. }
  16. void iap2LinkStatus(int status);
  17. int iap2WriteData(char *buf, int len);
  18. void carplaySessionStart();
  19. void carplaySessionStop();
  20. int switchUsbModeCB(UsbMode mode);
  21. void appleTimeUpdateCB(long long time, int zone_offset);
  22. void appleLanguageUpdateCB(const char *lang);
  23. void NotifyDeviceNameCB(const char *name, int name_len);
  24. void carplayExitCB();
  25. void returnNativeUICB();
  26. void modesChangeCB(CarPlayModeState *modes);
  27. void disableBluetoothCB();
  28. void caplayDuckAudioCB(double inDurationSecs, double inVolume);
  29. void caplayUnduckAudioCB(double inDurationSecs);
  30. private:
  31. CarplayLink* mHandle;
  32. CarplayEntity mEntityScreen;
  33. CarplayEntity mEntityPhoneCall;
  34. };
  35. #endif // CARPLAYLINKCBSIMPL_H