tizenconfigurations.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /****************************************************************************
  2. **
  3. ** Copyright (C) 2013 Jarek Pelczar <jpelczar@gmail.com>
  4. ** Copyright (C) 2013 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. #ifndef TIZEN_TIZENCONFIGURATIONS_H
  30. #define TIZEN_TIZENCONFIGURATIONS_H
  31. #include <QSettings>
  32. #include <utils/fileutils.h>
  33. namespace Tizen {
  34. class TizenConfig
  35. {
  36. public:
  37. TizenConfig();
  38. TizenConfig(QSettings& settings);
  39. void save(QSettings& settings) const;
  40. Utils::FileName m_sdkLocation;
  41. Utils::FileName m_sdkDataLocation;
  42. Utils::FileName m_sbiLocation;
  43. Utils::FileName m_sdbLocation;
  44. Utils::FileName m_nativePackagingLocation;
  45. Utils::FileName m_authorCertificateLocation;
  46. QString m_authorCertificatePassword;
  47. int m_sdbPort;
  48. };
  49. class TizenConfigurations : public QObject
  50. {
  51. Q_OBJECT
  52. public:
  53. static TizenConfigurations * instance() { return m_instance; }
  54. TizenConfigurations(QObject *parent = 0);
  55. ~TizenConfigurations();
  56. void updateDevices();
  57. void load();
  58. void save();
  59. inline TizenConfig& tizenConfig() { return m_config; }
  60. signals:
  61. void updated();
  62. public slots:
  63. void updateAutomaticKitList();
  64. private:
  65. static TizenConfigurations * m_instance;
  66. TizenConfig m_config;
  67. };
  68. } // namespace Tizen
  69. #endif // TIZEN_TIZENCONFIGURATIONS_H