~ubuntu-sdk-team/qtcreator-plugin-remotelinux/trunk

« back to all changes in this revision

Viewing changes to src/qnx/blackberryapilevelconfiguration.h

  • Committer: CI bot
  • Author(s): Benjamin Zeller
  • Date: 2014-06-16 10:28:43 UTC
  • mfrom: (4.2.4 remotelinux)
  • Revision ID: ps-jenkins@lists.canonical.com-20140616102843-8juvmjvzwlzsboyw
Migrating to Qt5.3 and QtC 3.1 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**************************************************************************
 
2
**
 
3
** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
 
4
**
 
5
** Contact: BlackBerry (qt@blackberry.com)
 
6
** Contact: KDAB (info@kdab.com)
 
7
**
 
8
** This file is part of Qt Creator.
 
9
**
 
10
** Commercial License Usage
 
11
** Licensees holding valid commercial Qt licenses may use this file in
 
12
** accordance with the commercial license agreement provided with the
 
13
** Software or, alternatively, in accordance with the terms contained in
 
14
** a written agreement between you and Digia.  For licensing terms and
 
15
** conditions see http://qt.digia.com/licensing.  For further information
 
16
** use the contact form at http://qt.digia.com/contact-us.
 
17
**
 
18
** GNU Lesser General Public License Usage
 
19
** Alternatively, this file may be used under the terms of the GNU Lesser
 
20
** General Public License version 2.1 as published by the Free Software
 
21
** Foundation and appearing in the file LICENSE.LGPL included in the
 
22
** packaging of this file.  Please review the following information to
 
23
** ensure the GNU Lesser General Public License version 2.1 requirements
 
24
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
 
25
**
 
26
** In addition, as a special exception, Digia gives you certain additional
 
27
** rights.  These rights are described in the Digia Qt LGPL Exception
 
28
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
 
29
**
 
30
****************************************************************************/
 
31
 
 
32
#ifndef BLACKBERRYCONFIGURATIONS_H
 
33
#define BLACKBERRYCONFIGURATIONS_H
 
34
 
 
35
#include "qnxutils.h"
 
36
#include "blackberryversionnumber.h"
 
37
#include "qnxconstants.h"
 
38
 
 
39
#include <utils/environment.h>
 
40
#include <utils/fileutils.h>
 
41
 
 
42
#include <projectexplorer/abi.h>
 
43
#include <projectexplorer/kit.h>
 
44
 
 
45
#include <QObject>
 
46
#include <QCoreApplication>
 
47
 
 
48
namespace QtSupport { class BaseQtVersion; }
 
49
namespace Debugger { class DebuggerItem; }
 
50
 
 
51
namespace Qnx {
 
52
namespace Internal {
 
53
 
 
54
class QnxAbstractQtVersion;
 
55
class QnxToolChain;
 
56
 
 
57
class BlackBerryApiLevelConfiguration
 
58
{
 
59
    Q_DECLARE_TR_FUNCTIONS(Qnx::Internal::BlackBerryApiLevelConfiguration)
 
60
public:
 
61
    BlackBerryApiLevelConfiguration(const NdkInstallInformation &ndkInstallInfo);
 
62
    BlackBerryApiLevelConfiguration(const Utils::FileName &ndkEnvFile);
 
63
    BlackBerryApiLevelConfiguration(const QVariantMap &data);
 
64
    bool activate();
 
65
    void deactivate();
 
66
    QString ndkPath() const;
 
67
    QString displayName() const;
 
68
    QString targetName() const;
 
69
    QString qnxHost() const;
 
70
    BlackBerryVersionNumber version() const;
 
71
    bool isAutoDetected() const;
 
72
    Utils::FileName autoDetectionSource() const;
 
73
    bool isActive() const;
 
74
    bool isValid() const;
 
75
    Utils::FileName ndkEnvFile() const;
 
76
    Utils::FileName qmake4BinaryFile() const;
 
77
    Utils::FileName qmake5BinaryFile() const;
 
78
    Utils::FileName gccCompiler() const;
 
79
    Utils::FileName deviceDebuger() const;
 
80
    Utils::FileName simulatorDebuger() const;
 
81
    Utils::FileName sysRoot() const;
 
82
    QList<Utils::EnvironmentItem> qnxEnv() const;
 
83
    QVariantMap toMap() const;
 
84
 
 
85
#ifdef WITH_TESTS
 
86
    static void setFakeConfig(bool fakeConfig);
 
87
    static bool fakeConfig();
 
88
#endif
 
89
 
 
90
private:
 
91
    QString m_displayName;
 
92
    QString m_targetName;
 
93
    QString m_qnxHost;
 
94
    BlackBerryVersionNumber m_version;
 
95
    Utils::FileName m_autoDetectionSource;
 
96
    Utils::FileName m_ndkEnvFile;
 
97
    Utils::FileName m_qmake4BinaryFile;
 
98
    Utils::FileName m_qmake5BinaryFile;
 
99
    Utils::FileName m_gccCompiler;
 
100
    Utils::FileName m_deviceDebugger;
 
101
    Utils::FileName m_simulatorDebugger;
 
102
    Utils::FileName m_sysRoot;
 
103
    QList<Utils::EnvironmentItem> m_qnxEnv;
 
104
 
 
105
    void ctor();
 
106
 
 
107
    QnxAbstractQtVersion* createQtVersion(
 
108
            const Utils::FileName &qmakePath, Qnx::QnxArchitecture arch, const QString &versionName);
 
109
    QnxToolChain* createToolChain(
 
110
            ProjectExplorer::Abi abi, const QString &versionName);
 
111
    QVariant createDebuggerItem(
 
112
            QList<ProjectExplorer::Abi> abis, Qnx::QnxArchitecture arch, const QString &versionName);
 
113
    ProjectExplorer::Kit* createKit(
 
114
            QnxAbstractQtVersion* version, QnxToolChain* toolChain,
 
115
            const QVariant &debuggerItemId);
 
116
 
 
117
#ifdef WITH_TESTS
 
118
    static bool m_fakeConfig;
 
119
#endif
 
120
};
 
121
 
 
122
} // namespace Internal
 
123
} // namespace Qnx
 
124
 
 
125
#endif // BLACKBERRYCONFIGURATIONS_H