chore: add license header to remaining files
Also remove some unused imports
This commit is contained in:
		| @@ -1,16 +1,36 @@ | |||||||
| /* Copyright 2013-2021 MultiMC Contributors | // SPDX-License-Identifier: GPL-3.0-only | ||||||
|  | /* | ||||||
|  |  *  PolyMC - Minecraft Launcher | ||||||
|  |  *  Copyright (c) 2022 flowln <flowlnlnln@gmail.com> | ||||||
|  * |  * | ||||||
|  * Licensed under the Apache License, Version 2.0 (the "License"); |  *  This program is free software: you can redistribute it and/or modify | ||||||
|  * you may not use this file except in compliance with the License. |  *  it under the terms of the GNU General Public License as published by | ||||||
|  * You may obtain a copy of the License at |  *  the Free Software Foundation, version 3. | ||||||
|  * |  * | ||||||
|  *     http://www.apache.org/licenses/LICENSE-2.0 |  *  This program is distributed in the hope that it will be useful, | ||||||
|  |  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  *  GNU General Public License for more details. | ||||||
|  * |  * | ||||||
|  * Unless required by applicable law or agreed to in writing, software |  *  You should have received a copy of the GNU General Public License | ||||||
|  * distributed under the License is distributed on an "AS IS" BASIS, |  *  along with this program.  If not, see <https://www.gnu.org/licenses/>. | ||||||
|  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |  * | ||||||
|  * See the License for the specific language governing permissions and |  * This file incorporates work covered by the following copyright and | ||||||
|  * limitations under the License. |  * permission notice: | ||||||
|  |  * | ||||||
|  |  *      Copyright 2013-2021 MultiMC Contributors | ||||||
|  |  * | ||||||
|  |  *      Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  |  *      you may not use this file except in compliance with the License. | ||||||
|  |  *      You may obtain a copy of the License at | ||||||
|  |  * | ||||||
|  |  *          http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  |  * | ||||||
|  |  *      Unless required by applicable law or agreed to in writing, software | ||||||
|  |  *      distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  |  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  |  *      See the License for the specific language governing permissions and | ||||||
|  |  *      limitations under the License. | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include "InstanceImportTask.h" | #include "InstanceImportTask.h" | ||||||
|   | |||||||
| @@ -1,16 +1,36 @@ | |||||||
| /* Copyright 2013-2021 MultiMC Contributors | // SPDX-License-Identifier: GPL-3.0-only | ||||||
|  | /* | ||||||
|  |  *  PolyMC - Minecraft Launcher | ||||||
|  |  *  Copyright (c) 2022 flowln <flowlnlnln@gmail.com> | ||||||
|  * |  * | ||||||
|  * Licensed under the Apache License, Version 2.0 (the "License"); |  *  This program is free software: you can redistribute it and/or modify | ||||||
|  * you may not use this file except in compliance with the License. |  *  it under the terms of the GNU General Public License as published by | ||||||
|  * You may obtain a copy of the License at |  *  the Free Software Foundation, version 3. | ||||||
|  * |  * | ||||||
|  *     http://www.apache.org/licenses/LICENSE-2.0 |  *  This program is distributed in the hope that it will be useful, | ||||||
|  |  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  *  GNU General Public License for more details. | ||||||
|  * |  * | ||||||
|  * Unless required by applicable law or agreed to in writing, software |  *  You should have received a copy of the GNU General Public License | ||||||
|  * distributed under the License is distributed on an "AS IS" BASIS, |  *  along with this program.  If not, see <https://www.gnu.org/licenses/>. | ||||||
|  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |  * | ||||||
|  * See the License for the specific language governing permissions and |  * This file incorporates work covered by the following copyright and | ||||||
|  * limitations under the License. |  * permission notice: | ||||||
|  |  * | ||||||
|  |  *      Copyright 2013-2021 MultiMC Contributors | ||||||
|  |  * | ||||||
|  |  *      Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  |  *      you may not use this file except in compliance with the License. | ||||||
|  |  *      You may obtain a copy of the License at | ||||||
|  |  * | ||||||
|  |  *          http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  |  * | ||||||
|  |  *      Unless required by applicable law or agreed to in writing, software | ||||||
|  |  *      distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  |  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  |  *      See the License for the specific language governing permissions and | ||||||
|  |  *      limitations under the License. | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include <QFileInfo> | #include <QFileInfo> | ||||||
|   | |||||||
| @@ -1,3 +1,38 @@ | |||||||
|  | // SPDX-License-Identifier: GPL-3.0-only | ||||||
|  | /* | ||||||
|  |  *  PolyMC - Minecraft Launcher | ||||||
|  |  *  Copyright (c) 2022 flowln <flowlnlnln@gmail.com> | ||||||
|  |  * | ||||||
|  |  *  This program is free software: you can redistribute it and/or modify | ||||||
|  |  *  it under the terms of the GNU General Public License as published by | ||||||
|  |  *  the Free Software Foundation, version 3. | ||||||
|  |  * | ||||||
|  |  *  This program is distributed in the hope that it will be useful, | ||||||
|  |  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  *  GNU General Public License for more details. | ||||||
|  |  * | ||||||
|  |  *  You should have received a copy of the GNU General Public License | ||||||
|  |  *  along with this program.  If not, see <https://www.gnu.org/licenses/>. | ||||||
|  |  * | ||||||
|  |  * This file incorporates work covered by the following copyright and | ||||||
|  |  * permission notice: | ||||||
|  |  * | ||||||
|  |  *      Copyright 2013-2021 MultiMC Contributors | ||||||
|  |  * | ||||||
|  |  *      Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  |  *      you may not use this file except in compliance with the License. | ||||||
|  |  *      You may obtain a copy of the License at | ||||||
|  |  * | ||||||
|  |  *          http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  |  * | ||||||
|  |  *      Unless required by applicable law or agreed to in writing, software | ||||||
|  |  *      distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  |  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  |  *      See the License for the specific language governing permissions and | ||||||
|  |  *      limitations under the License. | ||||||
|  |  */ | ||||||
|  |  | ||||||
| #include "ImgurAlbumCreation.h" | #include "ImgurAlbumCreation.h" | ||||||
|  |  | ||||||
| #include <QNetworkRequest> | #include <QNetworkRequest> | ||||||
|   | |||||||
| @@ -1,7 +1,42 @@ | |||||||
|  | // SPDX-License-Identifier: GPL-3.0-only | ||||||
|  | /* | ||||||
|  |  *  PolyMC - Minecraft Launcher | ||||||
|  |  *  Copyright (c) 2022 flowln <flowlnlnln@gmail.com> | ||||||
|  |  * | ||||||
|  |  *  This program is free software: you can redistribute it and/or modify | ||||||
|  |  *  it under the terms of the GNU General Public License as published by | ||||||
|  |  *  the Free Software Foundation, version 3. | ||||||
|  |  * | ||||||
|  |  *  This program is distributed in the hope that it will be useful, | ||||||
|  |  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  *  GNU General Public License for more details. | ||||||
|  |  * | ||||||
|  |  *  You should have received a copy of the GNU General Public License | ||||||
|  |  *  along with this program.  If not, see <https://www.gnu.org/licenses/>. | ||||||
|  |  * | ||||||
|  |  * This file incorporates work covered by the following copyright and | ||||||
|  |  * permission notice: | ||||||
|  |  * | ||||||
|  |  *      Copyright 2013-2021 MultiMC Contributors | ||||||
|  |  * | ||||||
|  |  *      Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  |  *      you may not use this file except in compliance with the License. | ||||||
|  |  *      You may obtain a copy of the License at | ||||||
|  |  * | ||||||
|  |  *          http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  |  * | ||||||
|  |  *      Unless required by applicable law or agreed to in writing, software | ||||||
|  |  *      distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  |  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  |  *      See the License for the specific language governing permissions and | ||||||
|  |  *      limitations under the License. | ||||||
|  |  */ | ||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include "net/NetAction.h" | #include "net/NetAction.h" | ||||||
| #include "Screenshot.h" | #include "Screenshot.h" | ||||||
| #include "QObjectPtr.h" |  | ||||||
|  |  | ||||||
| typedef shared_qobject_ptr<class ImgurAlbumCreation> ImgurAlbumCreationPtr; | typedef shared_qobject_ptr<class ImgurAlbumCreation> ImgurAlbumCreationPtr; | ||||||
| class ImgurAlbumCreation : public NetAction | class ImgurAlbumCreation : public NetAction | ||||||
|   | |||||||
| @@ -1,3 +1,38 @@ | |||||||
|  | // SPDX-License-Identifier: GPL-3.0-only | ||||||
|  | /* | ||||||
|  |  *  PolyMC - Minecraft Launcher | ||||||
|  |  *  Copyright (c) 2022 flowln <flowlnlnln@gmail.com> | ||||||
|  |  * | ||||||
|  |  *  This program is free software: you can redistribute it and/or modify | ||||||
|  |  *  it under the terms of the GNU General Public License as published by | ||||||
|  |  *  the Free Software Foundation, version 3. | ||||||
|  |  * | ||||||
|  |  *  This program is distributed in the hope that it will be useful, | ||||||
|  |  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  *  GNU General Public License for more details. | ||||||
|  |  * | ||||||
|  |  *  You should have received a copy of the GNU General Public License | ||||||
|  |  *  along with this program.  If not, see <https://www.gnu.org/licenses/>. | ||||||
|  |  * | ||||||
|  |  * This file incorporates work covered by the following copyright and | ||||||
|  |  * permission notice: | ||||||
|  |  * | ||||||
|  |  *      Copyright 2013-2021 MultiMC Contributors | ||||||
|  |  * | ||||||
|  |  *      Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  |  *      you may not use this file except in compliance with the License. | ||||||
|  |  *      You may obtain a copy of the License at | ||||||
|  |  * | ||||||
|  |  *          http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  |  * | ||||||
|  |  *      Unless required by applicable law or agreed to in writing, software | ||||||
|  |  *      distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  |  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  |  *      See the License for the specific language governing permissions and | ||||||
|  |  *      limitations under the License. | ||||||
|  |  */ | ||||||
|  |  | ||||||
| #include "ImgurUpload.h" | #include "ImgurUpload.h" | ||||||
| #include "BuildConfig.h" | #include "BuildConfig.h" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,40 @@ | |||||||
|  | // SPDX-License-Identifier: GPL-3.0-only | ||||||
|  | /* | ||||||
|  |  *  PolyMC - Minecraft Launcher | ||||||
|  |  *  Copyright (c) 2022 flowln <flowlnlnln@gmail.com> | ||||||
|  |  * | ||||||
|  |  *  This program is free software: you can redistribute it and/or modify | ||||||
|  |  *  it under the terms of the GNU General Public License as published by | ||||||
|  |  *  the Free Software Foundation, version 3. | ||||||
|  |  * | ||||||
|  |  *  This program is distributed in the hope that it will be useful, | ||||||
|  |  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  *  GNU General Public License for more details. | ||||||
|  |  * | ||||||
|  |  *  You should have received a copy of the GNU General Public License | ||||||
|  |  *  along with this program.  If not, see <https://www.gnu.org/licenses/>. | ||||||
|  |  * | ||||||
|  |  * This file incorporates work covered by the following copyright and | ||||||
|  |  * permission notice: | ||||||
|  |  * | ||||||
|  |  *      Copyright 2013-2021 MultiMC Contributors | ||||||
|  |  * | ||||||
|  |  *      Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  |  *      you may not use this file except in compliance with the License. | ||||||
|  |  *      You may obtain a copy of the License at | ||||||
|  |  * | ||||||
|  |  *          http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  |  * | ||||||
|  |  *      Unless required by applicable law or agreed to in writing, software | ||||||
|  |  *      distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  |  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  |  *      See the License for the specific language governing permissions and | ||||||
|  |  *      limitations under the License. | ||||||
|  |  */ | ||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
| #include "QObjectPtr.h" |  | ||||||
| #include "net/NetAction.h" | #include "net/NetAction.h" | ||||||
| #include "Screenshot.h" | #include "Screenshot.h" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,16 +1,36 @@ | |||||||
| /* Copyright 2013-2021 MultiMC Contributors | // SPDX-License-Identifier: GPL-3.0-only | ||||||
|  | /* | ||||||
|  |  *  PolyMC - Minecraft Launcher | ||||||
|  |  *  Copyright (c) 2022 flowln <flowlnlnln@gmail.com> | ||||||
|  * |  * | ||||||
|  * Licensed under the Apache License, Version 2.0 (the "License"); |  *  This program is free software: you can redistribute it and/or modify | ||||||
|  * you may not use this file except in compliance with the License. |  *  it under the terms of the GNU General Public License as published by | ||||||
|  * You may obtain a copy of the License at |  *  the Free Software Foundation, version 3. | ||||||
|  * |  * | ||||||
|  *     http://www.apache.org/licenses/LICENSE-2.0 |  *  This program is distributed in the hope that it will be useful, | ||||||
|  |  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  *  GNU General Public License for more details. | ||||||
|  * |  * | ||||||
|  * Unless required by applicable law or agreed to in writing, software |  *  You should have received a copy of the GNU General Public License | ||||||
|  * distributed under the License is distributed on an "AS IS" BASIS, |  *  along with this program.  If not, see <https://www.gnu.org/licenses/>. | ||||||
|  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |  * | ||||||
|  * See the License for the specific language governing permissions and |  * This file incorporates work covered by the following copyright and | ||||||
|  * limitations under the License. |  * permission notice: | ||||||
|  |  * | ||||||
|  |  *      Copyright 2013-2021 MultiMC Contributors | ||||||
|  |  * | ||||||
|  |  *      Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  |  *      you may not use this file except in compliance with the License. | ||||||
|  |  *      You may obtain a copy of the License at | ||||||
|  |  * | ||||||
|  |  *          http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  |  * | ||||||
|  |  *      Unless required by applicable law or agreed to in writing, software | ||||||
|  |  *      distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  |  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  |  *      See the License for the specific language governing permissions and | ||||||
|  |  *      limitations under the License. | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include "Task.h" | #include "Task.h" | ||||||
|   | |||||||
| @@ -1,24 +1,40 @@ | |||||||
| /* Copyright 2013-2021 MultiMC Contributors | // SPDX-License-Identifier: GPL-3.0-only | ||||||
|  | /* | ||||||
|  |  *  PolyMC - Minecraft Launcher | ||||||
|  |  *  Copyright (c) 2022 flowln <flowlnlnln@gmail.com> | ||||||
|  * |  * | ||||||
|  * Licensed under the Apache License, Version 2.0 (the "License"); |  *  This program is free software: you can redistribute it and/or modify | ||||||
|  * you may not use this file except in compliance with the License. |  *  it under the terms of the GNU General Public License as published by | ||||||
|  * You may obtain a copy of the License at |  *  the Free Software Foundation, version 3. | ||||||
|  * |  * | ||||||
|  *     http://www.apache.org/licenses/LICENSE-2.0 |  *  This program is distributed in the hope that it will be useful, | ||||||
|  |  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  *  GNU General Public License for more details. | ||||||
|  * |  * | ||||||
|  * Unless required by applicable law or agreed to in writing, software |  *  You should have received a copy of the GNU General Public License | ||||||
|  * distributed under the License is distributed on an "AS IS" BASIS, |  *  along with this program.  If not, see <https://www.gnu.org/licenses/>. | ||||||
|  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |  * | ||||||
|  * See the License for the specific language governing permissions and |  * This file incorporates work covered by the following copyright and | ||||||
|  * limitations under the License. |  * permission notice: | ||||||
|  |  * | ||||||
|  |  *      Copyright 2013-2021 MultiMC Contributors | ||||||
|  |  * | ||||||
|  |  *      Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  |  *      you may not use this file except in compliance with the License. | ||||||
|  |  *      You may obtain a copy of the License at | ||||||
|  |  * | ||||||
|  |  *          http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  |  * | ||||||
|  |  *      Unless required by applicable law or agreed to in writing, software | ||||||
|  |  *      distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  |  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  |  *      See the License for the specific language governing permissions and | ||||||
|  |  *      limitations under the License. | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <QObject> |  | ||||||
| #include <QString> |  | ||||||
| #include <QStringList> |  | ||||||
|  |  | ||||||
| #include "QObjectPtr.h" | #include "QObjectPtr.h" | ||||||
|  |  | ||||||
| class Task : public QObject { | class Task : public QObject { | ||||||
|   | |||||||
| @@ -1,3 +1,38 @@ | |||||||
|  | // SPDX-License-Identifier: GPL-3.0-only | ||||||
|  | /* | ||||||
|  |  *  PolyMC - Minecraft Launcher | ||||||
|  |  *  Copyright (c) 2022 flowln <flowlnlnln@gmail.com> | ||||||
|  |  * | ||||||
|  |  *  This program is free software: you can redistribute it and/or modify | ||||||
|  |  *  it under the terms of the GNU General Public License as published by | ||||||
|  |  *  the Free Software Foundation, version 3. | ||||||
|  |  * | ||||||
|  |  *  This program is distributed in the hope that it will be useful, | ||||||
|  |  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  *  GNU General Public License for more details. | ||||||
|  |  * | ||||||
|  |  *  You should have received a copy of the GNU General Public License | ||||||
|  |  *  along with this program.  If not, see <https://www.gnu.org/licenses/>. | ||||||
|  |  * | ||||||
|  |  * This file incorporates work covered by the following copyright and | ||||||
|  |  * permission notice: | ||||||
|  |  * | ||||||
|  |  *      Copyright 2013-2021 MultiMC Contributors | ||||||
|  |  * | ||||||
|  |  *      Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
|  |  *      you may not use this file except in compliance with the License. | ||||||
|  |  *      You may obtain a copy of the License at | ||||||
|  |  * | ||||||
|  |  *          http://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  |  * | ||||||
|  |  *      Unless required by applicable law or agreed to in writing, software | ||||||
|  |  *      distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  |  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  |  *      See the License for the specific language governing permissions and | ||||||
|  |  *      limitations under the License. | ||||||
|  |  */ | ||||||
|  |  | ||||||
| #include "TranslationsModel.h" | #include "TranslationsModel.h" | ||||||
|  |  | ||||||
| #include <QCoreApplication> | #include <QCoreApplication> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 flow
					flow