SocketCanDriver.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. Copyright (c) 2015, 2016 Hubert Denkmair
  3. This file is part of cangaroo.
  4. cangaroo is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 2 of the License, or
  7. (at your option) any later version.
  8. cangaroo is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with cangaroo. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #pragma once
  16. #include <QString>
  17. #include <core/Backend.h>
  18. #include <driver/CanDriver.h>
  19. class SocketCanInterface;
  20. class SetupDialogInterfacePage;
  21. class GenericCanSetupPage;
  22. class SocketCanDriver: public CanDriver {
  23. public:
  24. SocketCanDriver(Backend &backend);
  25. virtual ~SocketCanDriver();
  26. virtual QString getName();
  27. virtual bool update();
  28. private:
  29. SocketCanInterface *createOrUpdateInterface(int index, QString name);
  30. GenericCanSetupPage *setupPage;
  31. };