AndroidAuto.h 966 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef ANDROIDAUTO_H
  2. #define ANDROIDAUTO_H
  3. class AndroidAutoPrivate;
  4. class IUserAutoCbs;
  5. class AndroidAuto
  6. {
  7. public:
  8. AndroidAuto();
  9. virtual ~AndroidAuto();
  10. void setConfig(const char* key, const char* value);
  11. void setConfig(const char* key, int value);
  12. const char* getConfigString(const char* key, const char* defaultValue);
  13. int getConfigInt(const char* key, int defaultValue);
  14. void registerCallbacks(IUserAutoCbs *cbs);
  15. //void startSession();
  16. void startSession(bool isWifi = true);
  17. void getVideoFocus();
  18. void releaseVideoFocus();
  19. void getAudioFocus();
  20. void releaseAudioFocus();
  21. void setBTParingStatus(bool paired, const char *pinCode, int status);
  22. void sendTouchEvent(unsigned int x, unsigned int y, int action);
  23. void sendKeyEvent(unsigned int keycode, int press);
  24. void sendKnobEvent(unsigned int keycode, int delta);
  25. private:
  26. AndroidAutoPrivate* mHandle;
  27. };
  28. #endif // ANDROIDAUTO_H