tizendevice.cpp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /****************************************************************************
  2. **
  3. ** Copyright (C) 2013 Jarek Pelczar <jpelczar@gmail.com>
  4. ** Copyright (C) 2014 Tomasz Olszak <olszak.tomasz@gmail.com>
  5. **
  6. ** This file is part of Qt Creator.
  7. **
  8. ** Commercial License Usage
  9. ** Licensees holding valid commercial Qt licenses may use this file in
  10. ** accordance with the commercial license agreement provided with the
  11. ** Software or, alternatively, in accordance with the terms contained in
  12. ** a written agreement between you and Digia. For licensing terms and
  13. ** conditions see http://qt.digia.com/licensing. For further information
  14. ** use the contact form at http://qt.digia.com/contact-us.
  15. **
  16. ** GNU Lesser General Public License Usage
  17. ** Alternatively, this file may be used under the terms of the GNU Lesser
  18. ** General Public License version 2.1 as published by the Free Software
  19. ** Foundation and appearing in the file LICENSE.LGPL included in the
  20. ** packaging of this file. Please review the following information to
  21. ** ensure the GNU Lesser General Public License version 2.1 requirements
  22. ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
  23. **
  24. ** In addition, as a special exception, Digia gives you certain additional
  25. ** rights. These rights are described in the Digia Qt LGPL Exception
  26. ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
  27. **
  28. ****************************************************************************/
  29. #include "tizendevice.h"
  30. #include "tizenconstants.h"
  31. #include "tizensignaloperation.h"
  32. #include <QCoreApplication>
  33. using namespace ProjectExplorer;
  34. namespace Tizen {
  35. namespace Internal {
  36. TizenDevice::TizenDevice()
  37. : IDevice(Core::Id(Constants::TIZEN_DEVICE_TYPE),
  38. IDevice::AutoDetected,
  39. IDevice::Hardware,
  40. Core::Id(Constants::TIZEN_DEVICE_ID))
  41. {
  42. }
  43. TizenDevice::TizenDevice(Core::Id serial)
  44. : IDevice(Core::Id(Constants::TIZEN_DEVICE_TYPE),
  45. IDevice::AutoDetected,
  46. IDevice::Hardware,
  47. serial)
  48. {
  49. }
  50. TizenDevice::TizenDevice(const TizenDevice &other)
  51. : IDevice(other)
  52. {
  53. }
  54. IDevice::DeviceInfo TizenDevice::deviceInformation() const
  55. {
  56. return IDevice::DeviceInfo();
  57. }
  58. QString TizenDevice::displayType() const
  59. {
  60. return QCoreApplication::translate("Tizen::Internal::TizenDevice", "Tizen");
  61. }
  62. IDeviceWidget *TizenDevice::createWidget()
  63. {
  64. return 0;
  65. }
  66. QList<Core::Id> TizenDevice::actionIds() const
  67. {
  68. return QList<Core::Id>();
  69. }
  70. QString TizenDevice::displayNameForActionId(Core::Id actionId) const
  71. {
  72. Q_UNUSED(actionId)
  73. return QString();
  74. }
  75. void TizenDevice::executeAction(Core::Id actionId, QWidget *parent)
  76. {
  77. Q_UNUSED(actionId)
  78. Q_UNUSED(parent)
  79. }
  80. bool TizenDevice::canAutoDetectPorts() const
  81. {
  82. return false;
  83. }
  84. DeviceProcessSignalOperation::Ptr TizenDevice::signalOperation() const
  85. {
  86. return DeviceProcessSignalOperation::Ptr(new TizenSignalOperation());
  87. }
  88. IDevice::Ptr TizenDevice::clone() const
  89. {
  90. return IDevice::Ptr(new TizenDevice(*this));
  91. }
  92. QString TizenDevice::qmlProfilerHost() const
  93. {
  94. return QLatin1String("localhost");
  95. }
  96. } // namespace Internal
  97. } // namespace Tizen