From 2b31746a329e4140f6d1f6c4c20caf060d89de68 Mon Sep 17 00:00:00 2001 From: iaom Date: Mon, 17 Apr 2023 11:15:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0copyright.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notification-client-private.h | 21 ++++++++++++-- libukui-notification/notification-client.cpp | 21 ++++++++++++-- libukui-notification/notification-client.h | 21 ++++++++++++-- .../notification-close-reason.h | 21 ++++++++++++-- .../applications-settings.cpp | 21 ++++++++++++-- .../applications-settings.h | 21 ++++++++++++-- .../notification-global-settings.cpp | 21 ++++++++++++-- .../notification-global-settings.h | 21 ++++++++++++-- .../settings-manager-private.h | 22 +++++++++++++-- .../settings-manager.cpp | 28 ++++++++++++++----- .../notification-settings/settings-manager.h | 21 ++++++++++++-- .../settings-properties-info.cpp | 22 +++++++++++++-- .../settings-properties-info.h | 21 ++++++++++++-- .../settings-properties.h | 22 +++++++++++++-- .../single-application-settings.cpp | 21 ++++++++++++-- .../single-application-settings.h | 21 ++++++++++++-- libukui-notification/popup-notification.cpp | 21 ++++++++++++-- libukui-notification/popup-notification.h | 21 ++++++++++++-- .../ukui-notification_global.h | 21 ++++++++++++-- libukui-notification/utils.h | 21 ++++++++++++-- notification-server/main.cpp | 19 +++++++++++++ .../notification-server-application.cpp | 21 ++++++++++++-- .../notification-server-application.h | 21 ++++++++++++-- .../notification-server-config.h.in | 19 +++++++++++++ notification-server/server-private.h | 21 ++++++++++++-- notification-server/server.h | 21 ++++++++++++-- .../translations/ukui-notification_zh_CN.ts | 19 +++++++++++++ notification-ukcc-plugin/notice-menu.cpp | 18 ++++++++++++ notification-ukcc-plugin/notice-menu.h | 18 ++++++++++++ .../notification-ukcc-plugin.cpp | 18 ++++++++++++ .../notification-ukcc-plugin.h | 18 ++++++++++++ .../translations/bo_CN.ts | 19 +++++++++++++ .../translations/en_US.ts | 19 +++++++++++++ .../translations/zh_CN.ts | 19 +++++++++++++ test/main.cpp | 22 +++++++++++++-- test/notification-client-test.cpp | 21 ++++++++++++-- test/notification-client-test.h | 21 ++++++++++++-- test/notification-settings-test.cpp | 21 ++++++++++++-- test/notification-settings-test.h | 21 ++++++++++++-- 39 files changed, 716 insertions(+), 90 deletions(-) diff --git a/libukui-notification/notification-client-private.h b/libukui-notification/notification-client-private.h index 8f88157..5e4e668 100644 --- a/libukui-notification/notification-client-private.h +++ b/libukui-notification/notification-client-private.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 23-2-3. -// +/* + * 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 UKUI_NOTIFICATION_NOTIFICATION_CLIENT_PRIVATE_H #define UKUI_NOTIFICATION_NOTIFICATION_CLIENT_PRIVATE_H diff --git a/libukui-notification/notification-client.cpp b/libukui-notification/notification-client.cpp index 88a973c..76b2e83 100644 --- a/libukui-notification/notification-client.cpp +++ b/libukui-notification/notification-client.cpp @@ -1,6 +1,21 @@ -// -// Created by zpf on 23-2-2. -// +/* + * 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 "notification-client.h" #include "notification-client-private.h" diff --git a/libukui-notification/notification-client.h b/libukui-notification/notification-client.h index 8a96f5a..f9f5f92 100644 --- a/libukui-notification/notification-client.h +++ b/libukui-notification/notification-client.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 23-2-2. -// +/* + * 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 UKUI_NOTIFICATION_NOTIFICATION_CLIENT_H #define UKUI_NOTIFICATION_NOTIFICATION_CLIENT_H diff --git a/libukui-notification/notification-close-reason.h b/libukui-notification/notification-close-reason.h index 781b2ec..189731b 100644 --- a/libukui-notification/notification-close-reason.h +++ b/libukui-notification/notification-close-reason.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 2023/3/8. -// +/* + * 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 UKUI_NOTIFICATION_NOTIFICATIONCLOSEREASON_H #define UKUI_NOTIFICATION_NOTIFICATIONCLOSEREASON_H diff --git a/libukui-notification/notification-settings/applications-settings.cpp b/libukui-notification/notification-settings/applications-settings.cpp index e87d9b1..f807c28 100644 --- a/libukui-notification/notification-settings/applications-settings.cpp +++ b/libukui-notification/notification-settings/applications-settings.cpp @@ -1,6 +1,21 @@ -// -// Created by zpf on 2023/2/27. -// +/* + * 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 "applications-settings.h" #include diff --git a/libukui-notification/notification-settings/applications-settings.h b/libukui-notification/notification-settings/applications-settings.h index d1781ec..578fef6 100644 --- a/libukui-notification/notification-settings/applications-settings.h +++ b/libukui-notification/notification-settings/applications-settings.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 2023/2/27. -// +/* + * 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 UKUI_NOTIFICATION_APPLICATIONS_SETTINGS_H #define UKUI_NOTIFICATION_APPLICATIONS_SETTINGS_H diff --git a/libukui-notification/notification-settings/notification-global-settings.cpp b/libukui-notification/notification-settings/notification-global-settings.cpp index 6a5513d..1ccc659 100644 --- a/libukui-notification/notification-settings/notification-global-settings.cpp +++ b/libukui-notification/notification-settings/notification-global-settings.cpp @@ -1,6 +1,21 @@ -// -// Created by zpf on 2023/2/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 . + * + * Authors: iaom + */ #include "notification-global-settings.h" #include diff --git a/libukui-notification/notification-settings/notification-global-settings.h b/libukui-notification/notification-settings/notification-global-settings.h index 7a81927..ad0c5c8 100644 --- a/libukui-notification/notification-settings/notification-global-settings.h +++ b/libukui-notification/notification-settings/notification-global-settings.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 2023/2/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 . + * + * Authors: iaom + */ #ifndef UKUI_NOTIFICATION_NOTIFICATION_GLOBAL_SETTINGS_H #define UKUI_NOTIFICATION_NOTIFICATION_GLOBAL_SETTINGS_H diff --git a/libukui-notification/notification-settings/settings-manager-private.h b/libukui-notification/notification-settings/settings-manager-private.h index 543e71d..c669ab1 100644 --- a/libukui-notification/notification-settings/settings-manager-private.h +++ b/libukui-notification/notification-settings/settings-manager-private.h @@ -1,6 +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 NotificationSettingsPrivate_H #define NotificationSettingsPrivate_H diff --git a/libukui-notification/notification-settings/settings-manager.cpp b/libukui-notification/notification-settings/settings-manager.cpp index 9d9bb68..8f4e4ca 100644 --- a/libukui-notification/notification-settings/settings-manager.cpp +++ b/libukui-notification/notification-settings/settings-manager.cpp @@ -1,6 +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 "settings-manager.h" #include "settings-manager-private.h" #include @@ -143,9 +159,7 @@ void SettingsManagerPrivate::updateSettingsFile() QStringList SettingsManagerPrivate::getAppInfo() { - QStringList info = m_applicationInfo->getInfo(UkuiSearch::ApplicationProperties{}).keys(); - qWarning() << info; - return info; + return m_applicationInfo->getInfo(UkuiSearch::ApplicationProperties{}).keys(); } void SettingsManagerPrivate::initSettingsData(QJsonObject &data) @@ -312,7 +326,7 @@ bool SettingsManager::setGlobalSettings(SettingsProperty::Property key, const QV lockFile.lock(); d->save2SettingsFile(d->m_settingsData); lockFile.unlock(); - return false; + return true; } bool SettingsManager::setAppSettings(const QString &appDesktopName, SettingsProperty::Property key, const QVariant &value) diff --git a/libukui-notification/notification-settings/settings-manager.h b/libukui-notification/notification-settings/settings-manager.h index 058179c..e6b45f8 100644 --- a/libukui-notification/notification-settings/settings-manager.h +++ b/libukui-notification/notification-settings/settings-manager.h @@ -1,5 +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 SETTINGS_MANAGER_H #define SETTINGS_MANAGER_H diff --git a/libukui-notification/notification-settings/settings-properties-info.cpp b/libukui-notification/notification-settings/settings-properties-info.cpp index a8b9f95..979642d 100644 --- a/libukui-notification/notification-settings/settings-properties-info.cpp +++ b/libukui-notification/notification-settings/settings-properties-info.cpp @@ -1,6 +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 "settings-properties-info.h" #include #include diff --git a/libukui-notification/notification-settings/settings-properties-info.h b/libukui-notification/notification-settings/settings-properties-info.h index 9b891e5..2f78544 100644 --- a/libukui-notification/notification-settings/settings-properties-info.h +++ b/libukui-notification/notification-settings/settings-properties-info.h @@ -1,6 +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 SETTINGS_PROPERTIES_INFO_H #define SETTINGS_PROPERTIES_INFO_H diff --git a/libukui-notification/notification-settings/settings-properties.h b/libukui-notification/notification-settings/settings-properties.h index 4d2c8cd..1761209 100644 --- a/libukui-notification/notification-settings/settings-properties.h +++ b/libukui-notification/notification-settings/settings-properties.h @@ -1,6 +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 SETTINGS_PROPERTIES #define SETTINGS_PROPERTIES #include diff --git a/libukui-notification/notification-settings/single-application-settings.cpp b/libukui-notification/notification-settings/single-application-settings.cpp index c726f2a..ab56f22 100644 --- a/libukui-notification/notification-settings/single-application-settings.cpp +++ b/libukui-notification/notification-settings/single-application-settings.cpp @@ -1,6 +1,21 @@ -// -// Created by zpf on 2023/2/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 "single-application-settings.h" #include diff --git a/libukui-notification/notification-settings/single-application-settings.h b/libukui-notification/notification-settings/single-application-settings.h index 37f6202..6a08e2f 100644 --- a/libukui-notification/notification-settings/single-application-settings.h +++ b/libukui-notification/notification-settings/single-application-settings.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 2023/2/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 UKUI_NOTIFICATION_SINGLE_APPLICATION_SETTINGS_H #define UKUI_NOTIFICATION_SINGLE_APPLICATION_SETTINGS_H diff --git a/libukui-notification/popup-notification.cpp b/libukui-notification/popup-notification.cpp index 5bf628f..945a29a 100644 --- a/libukui-notification/popup-notification.cpp +++ b/libukui-notification/popup-notification.cpp @@ -1,6 +1,21 @@ -// -// Created by zpf on 23-2-2. -// +/* + * 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 "popup-notification.h" #include diff --git a/libukui-notification/popup-notification.h b/libukui-notification/popup-notification.h index ba5e525..4d652de 100644 --- a/libukui-notification/popup-notification.h +++ b/libukui-notification/popup-notification.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 23-2-2. -// +/* + * 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 UKUI_NOTIFICATION_POPUP_NOTIFICATION_H #define UKUI_NOTIFICATION_POPUP_NOTIFICATION_H diff --git a/libukui-notification/ukui-notification_global.h b/libukui-notification/ukui-notification_global.h index 83887e2..be0e9f3 100644 --- a/libukui-notification/ukui-notification_global.h +++ b/libukui-notification/ukui-notification_global.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 23-2-2. -// +/* + * 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 UKUINOTIFICATION_GLOBAL_H #define UKUINOTIFICATION_GLOBAL_H diff --git a/libukui-notification/utils.h b/libukui-notification/utils.h index 308f4db..a03d5f7 100644 --- a/libukui-notification/utils.h +++ b/libukui-notification/utils.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 2023/2/13. -// +/* + * 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 UKUI_NOTIFICATION_UTILS_H #define UKUI_NOTIFICATION_UTILS_H diff --git a/notification-server/main.cpp b/notification-server/main.cpp index a2b8c65..4aecda6 100644 --- a/notification-server/main.cpp +++ b/notification-server/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 #include diff --git a/notification-server/notification-server-application.cpp b/notification-server/notification-server-application.cpp index 5b1907c..c923e18 100644 --- a/notification-server/notification-server-application.cpp +++ b/notification-server/notification-server-application.cpp @@ -1,6 +1,21 @@ -// -// Created by zpf on 23-2-1. -// +/* + * 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 diff --git a/notification-server/notification-server-application.h b/notification-server/notification-server-application.h index 8cb1d3c..33f7295 100644 --- a/notification-server/notification-server-application.h +++ b/notification-server/notification-server-application.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 23-2-1. -// +/* + * 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 UKUI_NOTIFICATION_NOTIFICATION_SERVER_APPLICATION_H #define UKUI_NOTIFICATION_NOTIFICATION_SERVER_APPLICATION_H diff --git a/notification-server/notification-server-config.h.in b/notification-server/notification-server-config.h.in index 6826fe0..610fa0b 100644 --- a/notification-server/notification-server-config.h.in +++ b/notification-server/notification-server-config.h.in @@ -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 NOTIFICATION_SERVER_CONFIG_H_IN #define NOTIFICATION_SERVER_CONFIG_H_IN diff --git a/notification-server/server-private.h b/notification-server/server-private.h index 49e3fa4..1975480 100644 --- a/notification-server/server-private.h +++ b/notification-server/server-private.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 23-1-31. -// +/* + * 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 UKUI_NOTIFICATION_SERVER_PRIVATE_H #define UKUI_NOTIFICATION_SERVER_PRIVATE_H diff --git a/notification-server/server.h b/notification-server/server.h index 0a54cb0..716f221 100644 --- a/notification-server/server.h +++ b/notification-server/server.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 23-1-31. -// +/* + * 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 UKUI_NOTIFICATION_SERVER_H #define UKUI_NOTIFICATION_SERVER_H diff --git a/notification-server/translations/ukui-notification_zh_CN.ts b/notification-server/translations/ukui-notification_zh_CN.ts index e5ca8aa..266e5c9 100644 --- a/notification-server/translations/ukui-notification_zh_CN.ts +++ b/notification-server/translations/ukui-notification_zh_CN.ts @@ -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 + */ + diff --git a/notification-ukcc-plugin/notice-menu.cpp b/notification-ukcc-plugin/notice-menu.cpp index a1c2338..b06b53b 100644 --- a/notification-ukcc-plugin/notice-menu.cpp +++ b/notification-ukcc-plugin/notice-menu.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 "notice-menu.h" #include #include diff --git a/notification-ukcc-plugin/notice-menu.h b/notification-ukcc-plugin/notice-menu.h index 0f4d598..27ce6a9 100644 --- a/notification-ukcc-plugin/notice-menu.h +++ b/notification-ukcc-plugin/notice-menu.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 . + * + */ + #ifndef NOTICEMENU_H #define NOTICEMENU_H diff --git a/notification-ukcc-plugin/notification-ukcc-plugin.cpp b/notification-ukcc-plugin/notification-ukcc-plugin.cpp index 425028f..167fbe3 100644 --- a/notification-ukcc-plugin/notification-ukcc-plugin.cpp +++ b/notification-ukcc-plugin/notification-ukcc-plugin.cpp @@ -1,4 +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 . + * + */ + #include "notification-ukcc-plugin.h" #include "notice-menu.h" #include diff --git a/notification-ukcc-plugin/notification-ukcc-plugin.h b/notification-ukcc-plugin/notification-ukcc-plugin.h index e56f248..1b4fa8f 100644 --- a/notification-ukcc-plugin/notification-ukcc-plugin.h +++ b/notification-ukcc-plugin/notification-ukcc-plugin.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 . + * + */ + #ifndef NOTIFICATION_UKCC_PLUGIN_H #define NOTIFICATION_UKCC_PLUGIN_H diff --git a/notification-ukcc-plugin/translations/bo_CN.ts b/notification-ukcc-plugin/translations/bo_CN.ts index be1a4e5..40e37c9 100644 --- a/notification-ukcc-plugin/translations/bo_CN.ts +++ b/notification-ukcc-plugin/translations/bo_CN.ts @@ -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 + */ + diff --git a/notification-ukcc-plugin/translations/en_US.ts b/notification-ukcc-plugin/translations/en_US.ts index eee95e1..d6a2553 100644 --- a/notification-ukcc-plugin/translations/en_US.ts +++ b/notification-ukcc-plugin/translations/en_US.ts @@ -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 + */ + diff --git a/notification-ukcc-plugin/translations/zh_CN.ts b/notification-ukcc-plugin/translations/zh_CN.ts index e4dcd86..d3aa435 100644 --- a/notification-ukcc-plugin/translations/zh_CN.ts +++ b/notification-ukcc-plugin/translations/zh_CN.ts @@ -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 + */ + diff --git a/test/main.cpp b/test/main.cpp index 732e168..e86dcb3 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -1,6 +1,22 @@ -// -// Created by zpf on 2023/2/7. -// +/* + * 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 #include "notification-client-test.h" diff --git a/test/notification-client-test.cpp b/test/notification-client-test.cpp index 1027907..2896aad 100644 --- a/test/notification-client-test.cpp +++ b/test/notification-client-test.cpp @@ -1,6 +1,21 @@ -// -// Created by zpf on 2023/2/7. -// +/* + * 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 "notification-client-test.h" #include diff --git a/test/notification-client-test.h b/test/notification-client-test.h index 20bf94e..85cb87a 100644 --- a/test/notification-client-test.h +++ b/test/notification-client-test.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 2023/2/7. -// +/* + * 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 UKUI_NOTIFICATION_NOTIFICATION_CLIENT_TEST_H #define UKUI_NOTIFICATION_NOTIFICATION_CLIENT_TEST_H diff --git a/test/notification-settings-test.cpp b/test/notification-settings-test.cpp index 30cce2a..1e79eb1 100644 --- a/test/notification-settings-test.cpp +++ b/test/notification-settings-test.cpp @@ -1,6 +1,21 @@ -// -// Created by zpf on 2023/3/16. -// +/* + * 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 "notification-settings-test.h" #include "popup-notification.h" diff --git a/test/notification-settings-test.h b/test/notification-settings-test.h index 67ba939..e7a9960 100644 --- a/test/notification-settings-test.h +++ b/test/notification-settings-test.h @@ -1,6 +1,21 @@ -// -// Created by zpf on 2023/3/16. -// +/* + * 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 UKUI_NOTIFICATION_NOTIFICATION_SETTINGS_TEST_H #define UKUI_NOTIFICATION_NOTIFICATION_SETTINGS_TEST_H