tizendeployconfiguration.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /**************************************************************************
  2. **
  3. ** Copyright (c) 2013 Tomasz Olszak <olszak.tomasz@gmail.com>
  4. ** Contact: http://www.qt-project.org/legal
  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. #ifndef TIZENDEPLOYCONFIGURATION_H
  30. #define TIZENDEPLOYCONFIGURATION_H
  31. #include <projectexplorer/deployconfiguration.h>
  32. namespace Tizen {
  33. namespace Internal {
  34. const char TIZEN_DEPLOYCONFIGURATION_ID[] = "Qt4ProjectManager.TizenDeployConfiguration";
  35. const char TIZEN_DC_PREFIX[] = "Qt4ProjectManager.TizenDeployConfiguration.";
  36. class TizenDeployConfiguration : public ProjectExplorer::DeployConfiguration
  37. {
  38. Q_OBJECT
  39. friend class TizenDeployConfigurationFactory;
  40. public:
  41. TizenDeployConfiguration(ProjectExplorer::Target *parent, Core::Id id);
  42. protected:
  43. TizenDeployConfiguration(ProjectExplorer::Target *parent, ProjectExplorer::DeployConfiguration *source);
  44. };
  45. class TizenDeployConfigurationFactory : public ProjectExplorer::DeployConfigurationFactory
  46. {
  47. Q_OBJECT
  48. public:
  49. explicit TizenDeployConfigurationFactory(QObject *parent = 0);
  50. bool canCreate(ProjectExplorer::Target *parent, const Core::Id id) const;
  51. ProjectExplorer::DeployConfiguration *create(ProjectExplorer::Target *parent, const Core::Id id);
  52. bool canRestore(ProjectExplorer::Target *parent, const QVariantMap &map) const;
  53. ProjectExplorer::DeployConfiguration *restore(ProjectExplorer::Target *parent, const QVariantMap &map);
  54. bool canClone(ProjectExplorer::Target *parent, ProjectExplorer::DeployConfiguration *source) const;
  55. ProjectExplorer::DeployConfiguration *clone(ProjectExplorer::Target *parent, ProjectExplorer::DeployConfiguration *source);
  56. QList<Core::Id> availableCreationIds(ProjectExplorer::Target *parent) const;
  57. // used to translate the ids to names to display to the user
  58. QString displayNameForId(const Core::Id id) const;
  59. private:
  60. bool canHandle(ProjectExplorer::Target *parent) const;
  61. };
  62. } //namespace Internal
  63. } // namespace Tizen
  64. #endif // TIZENDEPLOYCONFIGURATION_H