Skip to content

Commit

Permalink
chore: add license headers to AppLaunchUtils files
Browse files Browse the repository at this point in the history
Add SPDX license headers to AppLaunchUtils implementation files:
- Add GPL-3.0-or-later license header to applaunchutils.cpp
- Add GPL-3.0-or-later license header to applaunchutils.h
- Add GPL-3.0-or-later license header to applaunchutils_p.h
- Fix code formatting in private header

Log: This ensures proper license compliance and consistent code style.
  • Loading branch information
Johnson-zs committed Dec 26, 2024
1 parent 4d2e1cb commit e783e75
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/dfm-base/utils/applaunchutils.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later

#include "applaunchutils.h"
#include "applaunchutils_p.h"

Expand Down
7 changes: 5 additions & 2 deletions src/dfm-base/utils/applaunchutils.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef APPLAUNCHUTILS_H
#define APPLAUNCHUTILS_H

Expand All @@ -21,7 +24,7 @@ class AppLaunchUtils

// 添加启动策略,优先级数字越小优先级越高
void addStrategy(AppLaunchFunc launcher, int priority);

// 启动应用
bool launchApp(const QString &desktopFile, const QStringList &filePaths);

Expand All @@ -34,4 +37,4 @@ class AppLaunchUtils

DFMBASE_END_NAMESPACE

#endif // APPLAUNCHUTILS_H
#endif // APPLAUNCHUTILS_H
8 changes: 6 additions & 2 deletions src/dfm-base/utils/applaunchutils_p.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef APPLAUNCHUTILS_P_H
#define APPLAUNCHUTILS_P_H

Expand All @@ -9,7 +12,8 @@
DFMBASE_BEGIN_NAMESPACE

// DBus service names for V2X
struct DBusServiceNames {
struct DBusServiceNames
{
static constexpr const char *kService = "org.desktopspec.ApplicationManager1";
static constexpr const char *kPathPrefix = "/org/desktopspec/ApplicationManager1";
static constexpr const char *kInterface = "org.desktopspec.ApplicationManager1.Application";
Expand Down Expand Up @@ -44,4 +48,4 @@ class AppLaunchUtilsPrivate

DFMBASE_END_NAMESPACE

#endif // APPLAUNCHUTILS_P_H
#endif // APPLAUNCHUTILS_P_H

0 comments on commit e783e75

Please sign in to comment.