forked from qt-creator/qt-creator
AndroidSdkDownloader: Do some reformatting
Use #pragma once. Use Android::Internal namespace. Change-Id: Ic5ceef259fb2c333448f2ed48a10645d6945c029 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -16,12 +16,9 @@
|
|||||||
|
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace {
|
namespace { Q_LOGGING_CATEGORY(sdkDownloaderLog, "qtc.android.sdkDownloader", QtWarningMsg) }
|
||||||
Q_LOGGING_CATEGORY(sdkDownloaderLog, "qtc.android.sdkDownloader", QtWarningMsg)
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Android {
|
namespace Android::Internal {
|
||||||
namespace Internal {
|
|
||||||
/**
|
/**
|
||||||
* @class SdkDownloader
|
* @class SdkDownloader
|
||||||
* @brief Download Android SDK tools package from within Qt Creator.
|
* @brief Download Android SDK tools package from within Qt Creator.
|
||||||
@@ -194,5 +191,4 @@ void AndroidSdkDownloader::downloadFinished(QNetworkReply *reply)
|
|||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Internal
|
} // namespace Android::Internal
|
||||||
} // Android
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
// Copyright (C) 2020 The Qt Company Ltd.
|
// Copyright (C) 2020 The Qt Company Ltd.
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
#ifndef ANDROIDSDKDOWNLOADER_H
|
#pragma once
|
||||||
#define ANDROIDSDKDOWNLOADER_H
|
|
||||||
|
|
||||||
#include "androidconfigurations.h"
|
#include "androidconfigurations.h"
|
||||||
|
|
||||||
@@ -15,8 +14,7 @@ class Archive;
|
|||||||
class FilePath;
|
class FilePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Android {
|
namespace Android::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class AndroidSdkDownloader : public QObject
|
class AndroidSdkDownloader : public QObject
|
||||||
{
|
{
|
||||||
@@ -57,7 +55,4 @@ private:
|
|||||||
std::unique_ptr<Utils::Archive> m_archive;
|
std::unique_ptr<Utils::Archive> m_archive;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Internal
|
} // namespace Android::Internal
|
||||||
} // Android
|
|
||||||
|
|
||||||
#endif // ANDROIDSDKDOWNLOADER_H
|
|
||||||
|
|||||||
Reference in New Issue
Block a user