Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Activity manager service
Commits
f3ed87e0
Commit
f3ed87e0
authored
Mar 03, 2021
by
Ivan Čukić
👁
Browse files
Remove macro string magic
parent
8d388741
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/common/dbus/common.h
View file @
f3ed87e0
...
...
@@ -14,11 +14,11 @@
QStringLiteral("org.kde.ActivityManager")
#define KAMD_DBUS_OBJECT_PATH(A) \
(sizeof(
#
A) > 2 ? QLatin1String("/ActivityManager/"
#
A) \
: QLatin1String("/ActivityManager"))
(sizeof(A) > 2 ? QLatin1String("/ActivityManager/" A)
\
: QLatin1String("/ActivityManager"))
#define KAMD_DBUS_OBJECT(A) \
QLatin1String("org.kde.ActivityManager."
#
A)
QLatin1String("org.kde.ActivityManager." A)
#define KAMD_DBUS_INTERFACE(OBJECT_PATH, OBJECT, PARENT) \
QDBusInterface(KAMD_DBUS_SERVICE, \
...
...
src/service/Activities.cpp
View file @
f3ed87e0
...
...
@@ -481,7 +481,7 @@ Activities::Activities(QObject *parent)
new
ActivitiesAdaptor
(
this
);
QDBusConnection
::
sessionBus
().
registerObject
(
KAMD_DBUS_OBJECT_PATH
(
Activities
),
this
);
KAMD_DBUS_OBJECT_PATH
(
"
Activities
"
),
this
);
// Initializing config
...
...
src/service/Features.cpp
View file @
f3ed87e0
...
...
@@ -27,7 +27,7 @@ Features::Features(QObject *parent)
{
new
FeaturesAdaptor
(
this
);
QDBusConnection
::
sessionBus
().
registerObject
(
KAMD_DBUS_OBJECT_PATH
(
Features
),
this
);
KAMD_DBUS_OBJECT_PATH
(
"
Features
"
),
this
);
}
Features
::~
Features
()
...
...
src/service/Resources.cpp
View file @
f3ed87e0
...
...
@@ -257,7 +257,7 @@ Resources::Resources(QObject *parent)
new
ResourcesAdaptor
(
this
);
QDBusConnection
::
sessionBus
().
registerObject
(
KAMD_DBUS_OBJECT_PATH
(
Resources
),
this
);
KAMD_DBUS_OBJECT_PATH
(
"
Resources
"
),
this
);
connect
(
KWindowSystem
::
self
(),
&
KWindowSystem
::
windowRemoved
,
d
.
operator
->
(),
&
Resources
::
Private
::
windowClosed
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment