From 696fe0d88a30ad817ae6ecbe819396169eb08fe2 Mon Sep 17 00:00:00 2001 From: iaom Date: Tue, 30 Jan 2024 14:35:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E7=BC=BA=E5=A4=B1=E7=9A=84co?= =?UTF-8?q?pyright?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../provider/data/search.qml | 17 +++++ frontend/search-app-widget-plugin/search.h | 1 - libsearch/appdata/app-info-table.cpp | 18 +++++ .../appdata/application-info-storage.cpp | 69 ------------------- libsearch/appdata/application-info-storage.h | 41 ----------- libsearch/appdata/application-info.cpp | 18 +++++ .../appdata/application-property-helper.cpp | 19 +++++ libsearch/common.h | 21 +++++- libsearch/global-settings-private.h | 17 +++++ libsearch/libukui-search-headers.pri | 11 --- libsearch/log-utils.cpp | 19 +++++ libsearch/log-utils.h | 19 +++++ .../searchinterface/result-item-private.h | 18 +++++ libsearch/searchinterface/result-item.cpp | 18 +++++ .../searchinterface/search-controller.cpp | 18 +++++ libsearch/searchinterface/search-controller.h | 18 +++++ .../search-result-property-info.cpp | 18 +++++ .../search-result-property-info.h | 18 +++++ .../searchinterface/search-result-property.h | 1 - .../ukui-search-task-private.h | 18 +++++ .../searchinterface/ukui-search-task.cpp | 18 +++++ .../settingsearch/settings-search-plugin.cpp | 17 +++++ .../settingsearch/settings-search-plugin.h | 17 +++++ libsearch/websearch/web-search-plugin.cpp | 17 +++++ libsearch/websearch/web-search-plugin.h | 17 +++++ tests/file-system-watcher-test.cpp | 19 +++++ tests/file-system-watcher-test.h | 19 +++++ tests/main.cpp | 19 +++++ 28 files changed, 416 insertions(+), 124 deletions(-) delete mode 100644 libsearch/appdata/application-info-storage.cpp delete mode 100644 libsearch/appdata/application-info-storage.h delete mode 100644 libsearch/libukui-search-headers.pri diff --git a/frontend/search-app-widget-plugin/provider/data/search.qml b/frontend/search-app-widget-plugin/provider/data/search.qml index f0d6c63..23050bb 100755 --- a/frontend/search-app-widget-plugin/provider/data/search.qml +++ b/frontend/search-app-widget-plugin/provider/data/search.qml @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + */ import QtQuick 2.6 import QtQuick.Window 2.2 import QtQuick.Controls 2.5 diff --git a/frontend/search-app-widget-plugin/search.h b/frontend/search-app-widget-plugin/search.h index 166130d..64aacec 100644 --- a/frontend/search-app-widget-plugin/search.h +++ b/frontend/search-app-widget-plugin/search.h @@ -15,7 +15,6 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * - * */ #ifndef SEARCH_H #define SEARCH_H diff --git a/libsearch/appdata/app-info-table.cpp b/libsearch/appdata/app-info-table.cpp index 0a8bd78..2a5f968 100644 --- a/libsearch/appdata/app-info-table.cpp +++ b/libsearch/appdata/app-info-table.cpp @@ -1,3 +1,21 @@ +/* + * + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + */ #include "app-info-table.h" #include "app-info-table-private.h" #include "app-info-dbus-argument.h" diff --git a/libsearch/appdata/application-info-storage.cpp b/libsearch/appdata/application-info-storage.cpp deleted file mode 100644 index 534b0c2..0000000 --- a/libsearch/appdata/application-info-storage.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include "application-info-storage.h" -#include -using namespace UkuiSearch; -namespace UkuiSearch { -class ApplicationInfoStoragePrivate -{ - friend class ApplicationInfoStorage; -private: - Properties m_properties; - ApplicationInfoMap m_data; -}; -} -ApplicationInfoStorage::ApplicationInfoStorage(): d(new ApplicationInfoStoragePrivate) -{ -} - -ApplicationInfoStorage::ApplicationInfoStorage(Properties properties): d(new ApplicationInfoStoragePrivate) -{ - d->m_properties = properties; -} - -ApplicationInfoStorage::ApplicationInfoStorage(const ApplicationInfoStorage &other): d(new ApplicationInfoStoragePrivate(*other.d)) -{ -} - -ApplicationInfoStorage::~ApplicationInfoStorage() -{ - if(d) { - delete d; - d = nullptr; - } -} - -ApplicationInfoStorage &ApplicationInfoStorage::operator=(const ApplicationInfoStorage &rhs) -{ - *d = *rhs.d; - return *this; -} - -QStringList ApplicationInfoStorage::applicationKeys() const -{ - return d->m_data.keys(); -} - -Properties &ApplicationInfoStorage::applicationInfoKeys() const -{ - return d->m_properties; -} - -QVariant ApplicationInfoStorage::ApplicationInfo(const QString &desktopFile, ApplicationProperty::Property property) -{ - return d->m_data.value(desktopFile).value(property); -} - -ApplicationInfoMap &ApplicationInfoStorage::allData() -{ - return d->m_data; -} - -void ApplicationInfoStorage::addData(const QString &desktopFile, ApplicationProperty::Property property, const QVariant &value) -{ - if(d->m_data.contains(desktopFile)) { - QMap info = d->m_data.value(desktopFile); - info.insert(property, value); - d->m_data.insert(desktopFile, info); - } else { - d->m_data.insert(desktopFile, QMap{{property, value}}); - } -} diff --git a/libsearch/appdata/application-info-storage.h b/libsearch/appdata/application-info-storage.h deleted file mode 100644 index bf6a56c..0000000 --- a/libsearch/appdata/application-info-storage.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef APPLICATIONINFOSTORAGE_H -#define APPLICATIONINFOSTORAGE_H - -#include -#include "application-property.h" -namespace UkuiSearch { -class ApplicationInfoStoragePrivate; -class ApplicationInfoStorage -{ -public: - ApplicationInfoStorage(); - ApplicationInfoStorage(Properties properties); - ApplicationInfoStorage(const ApplicationInfoStorage &other); - ~ApplicationInfoStorage(); - - ApplicationInfoStorage & operator=(const ApplicationInfoStorage &rhs); - /** - * @brief 查询当前容器内包含的应用列表 - * @return 所有desktop路径的QStringlist - */ - QStringList applicationKeys() const; - /** - * @brief 查询当前容器包含的信息种类 - * @return QVector - */ - Properties &applicationInfoKeys() const; - /** - * @brief 查询某个应用的某个信息 - * @param desktopFile - * @param info - * @return 以info的数据类型格式返回特定信息 - */ - QVariant ApplicationInfo(const QString &desktopFile, ApplicationProperty::Property property); - ApplicationInfoMap &allData(); - void addData(const QString &desktopFile, ApplicationProperty::Property property, const QVariant &value); - -private: - ApplicationInfoStoragePrivate *d = nullptr; -}; -} -#endif // APPLICATIONINFOSTORAGE_H diff --git a/libsearch/appdata/application-info.cpp b/libsearch/appdata/application-info.cpp index b15c4c0..369a8bc 100644 --- a/libsearch/appdata/application-info.cpp +++ b/libsearch/appdata/application-info.cpp @@ -1,3 +1,21 @@ +/* + * + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + */ #include "application-info.h" #include "app-info-table.h" diff --git a/libsearch/appdata/application-property-helper.cpp b/libsearch/appdata/application-property-helper.cpp index be10cf9..51c4bcf 100644 --- a/libsearch/appdata/application-property-helper.cpp +++ b/libsearch/appdata/application-property-helper.cpp @@ -1,3 +1,22 @@ +/* + * + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * Authors: iaom + */ #include "application-property-helper.h" #include using namespace UkuiSearch; diff --git a/libsearch/common.h b/libsearch/common.h index 0528ed4..6ec2a39 100644 --- a/libsearch/common.h +++ b/libsearch/common.h @@ -1,4 +1,23 @@ -#pragma once +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * Authors: iaom + * + */ +#pragma once #include #include diff --git a/libsearch/global-settings-private.h b/libsearch/global-settings-private.h index ffbc430..eef3d1e 100644 --- a/libsearch/global-settings-private.h +++ b/libsearch/global-settings-private.h @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + */ #ifndef GLOBALSETTINGSPRIVATE_H #define GLOBALSETTINGSPRIVATE_H diff --git a/libsearch/libukui-search-headers.pri b/libsearch/libukui-search-headers.pri deleted file mode 100644 index cbfc3f9..0000000 --- a/libsearch/libukui-search-headers.pri +++ /dev/null @@ -1,11 +0,0 @@ -INCLUDEPATH += $$PWD -INCLUDEPATH += $$PWD/plugininterface -INCLUDEPATH += $$PWD/index -INCLUDEPATH += $$PWD/parser -INCLUDEPATH += $$PWD/pluginmanage -INCLUDEPATH += $$PWD/settingsearch -INCLUDEPATH += $$PWD/appsearch -INCLUDEPATH += $$PWD/searchinterface -INCLUDEPATH += $$PWD/dirwatcher -INCLUDEPATH += $$PWD/filesystemwatcher - diff --git a/libsearch/log-utils.cpp b/libsearch/log-utils.cpp index c5854d1..8d1e2e0 100644 --- a/libsearch/log-utils.cpp +++ b/libsearch/log-utils.cpp @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * Authors: iaom + * + */ #include "log-utils.h" #include #include diff --git a/libsearch/log-utils.h b/libsearch/log-utils.h index a1c465f..1e4aca6 100644 --- a/libsearch/log-utils.h +++ b/libsearch/log-utils.h @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * Authors: iaom + * + */ #ifndef LOGUTILS_H #define LOGUTILS_H #include diff --git a/libsearch/searchinterface/result-item-private.h b/libsearch/searchinterface/result-item-private.h index 4bcf5ee..a3ebf67 100644 --- a/libsearch/searchinterface/result-item-private.h +++ b/libsearch/searchinterface/result-item-private.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * * Authors: iaom + */ #ifndef RESULTITEMPRIVATE_H #define RESULTITEMPRIVATE_H #include "result-item.h" diff --git a/libsearch/searchinterface/result-item.cpp b/libsearch/searchinterface/result-item.cpp index 65e9a6c..dc1bdbe 100644 --- a/libsearch/searchinterface/result-item.cpp +++ b/libsearch/searchinterface/result-item.cpp @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * * Authors: iaom + */ #include "result-item.h" using namespace UkuiSearch; namespace UkuiSearch { diff --git a/libsearch/searchinterface/search-controller.cpp b/libsearch/searchinterface/search-controller.cpp index effa6e2..6851eda 100644 --- a/libsearch/searchinterface/search-controller.cpp +++ b/libsearch/searchinterface/search-controller.cpp @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * * Authors: iaom + */ #include "search-controller.h" #include #include diff --git a/libsearch/searchinterface/search-controller.h b/libsearch/searchinterface/search-controller.h index 73c3bdc..64e4d37 100644 --- a/libsearch/searchinterface/search-controller.h +++ b/libsearch/searchinterface/search-controller.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * * Authors: iaom + */ #ifndef SEARCHCONTROLLER_H #define SEARCHCONTROLLER_H diff --git a/libsearch/searchinterface/search-result-property-info.cpp b/libsearch/searchinterface/search-result-property-info.cpp index cac4f81..b64ac18 100644 --- a/libsearch/searchinterface/search-result-property-info.cpp +++ b/libsearch/searchinterface/search-result-property-info.cpp @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * * Authors: iaom + */ #include "search-result-property-info.h" #include #include diff --git a/libsearch/searchinterface/search-result-property-info.h b/libsearch/searchinterface/search-result-property-info.h index f6fb5ef..874b71d 100644 --- a/libsearch/searchinterface/search-result-property-info.h +++ b/libsearch/searchinterface/search-result-property-info.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * Authors: iaom + */ #ifndef SEARCHRESULTPROPERTYINFO_H #define SEARCHRESULTPROPERTYINFO_H #include "search-result-property.h" diff --git a/libsearch/searchinterface/search-result-property.h b/libsearch/searchinterface/search-result-property.h index 6402210..6d14ca8 100644 --- a/libsearch/searchinterface/search-result-property.h +++ b/libsearch/searchinterface/search-result-property.h @@ -1,5 +1,4 @@ /* - * * Copyright (C) 2023, KylinSoft Co., Ltd. * * This program is free software: you can redistribute it and/or modify diff --git a/libsearch/searchinterface/ukui-search-task-private.h b/libsearch/searchinterface/ukui-search-task-private.h index a622446..6519525 100644 --- a/libsearch/searchinterface/ukui-search-task-private.h +++ b/libsearch/searchinterface/ukui-search-task-private.h @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * * Authors: iaom + */ #ifndef UKUISEARCHPRIVATE_H #define UKUISEARCHPRIVATE_H diff --git a/libsearch/searchinterface/ukui-search-task.cpp b/libsearch/searchinterface/ukui-search-task.cpp index 2158097..de15d97 100644 --- a/libsearch/searchinterface/ukui-search-task.cpp +++ b/libsearch/searchinterface/ukui-search-task.cpp @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * * Authors: iaom + */ #include "ukui-search-task.h" #include "search-task-plugin-manager.h" #include diff --git a/libsearch/settingsearch/settings-search-plugin.cpp b/libsearch/settingsearch/settings-search-plugin.cpp index 3de80dc..8cf7306 100644 --- a/libsearch/settingsearch/settings-search-plugin.cpp +++ b/libsearch/settingsearch/settings-search-plugin.cpp @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + */ #include #include #include diff --git a/libsearch/settingsearch/settings-search-plugin.h b/libsearch/settingsearch/settings-search-plugin.h index 61721ab..3209860 100644 --- a/libsearch/settingsearch/settings-search-plugin.h +++ b/libsearch/settingsearch/settings-search-plugin.h @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + */ #ifndef SETTINGSSEARCHPLUGIN_H #define SETTINGSSEARCHPLUGIN_H diff --git a/libsearch/websearch/web-search-plugin.cpp b/libsearch/websearch/web-search-plugin.cpp index 47916a0..3462f8f 100644 --- a/libsearch/websearch/web-search-plugin.cpp +++ b/libsearch/websearch/web-search-plugin.cpp @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + */ #include "web-search-plugin.h" #include "global-settings.h" #include diff --git a/libsearch/websearch/web-search-plugin.h b/libsearch/websearch/web-search-plugin.h index 1abdb34..6594cb7 100644 --- a/libsearch/websearch/web-search-plugin.h +++ b/libsearch/websearch/web-search-plugin.h @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + */ #ifndef WEBSEARCHPLUGIN_H #define WEBSEARCHPLUGIN_H diff --git a/tests/file-system-watcher-test.cpp b/tests/file-system-watcher-test.cpp index a38840e..a8d4e1b 100644 --- a/tests/file-system-watcher-test.cpp +++ b/tests/file-system-watcher-test.cpp @@ -1,3 +1,22 @@ +/* + * + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * * Authors: iaom + */ #include "file-system-watcher-test.h" #include using namespace UkuiSearch; diff --git a/tests/file-system-watcher-test.h b/tests/file-system-watcher-test.h index 6497c6a..bc7c54f 100644 --- a/tests/file-system-watcher-test.h +++ b/tests/file-system-watcher-test.h @@ -1,3 +1,22 @@ +/* + * + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * * Authors: iaom + */ #ifndef FILESYSTEMWATCHERTEST_H #define FILESYSTEMWATCHERTEST_H diff --git a/tests/main.cpp b/tests/main.cpp index 8325fb9..2155c15 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -1,3 +1,22 @@ +/* + * + * Copyright (C) 2023, KylinSoft Co., Ltd. + * + * 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, either version 3 of the License, or + * (at your option) any later version. + * + * 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 . + * + * * Authors: iaom + */ #include #include "file-system-watcher-test.h"