Skip to content
GitLab
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
a4bbc6e5
Commit
a4bbc6e5
authored
Jan 17, 2021
by
Alexander Lohnau
💬
Browse files
Add trailing comma to enums
parent
12cc3d43
Changes
10
Hide whitespace changes
Inline
Side-by-side
src/common/database/Database.h
View file @
a4bbc6e5
...
...
@@ -22,12 +22,12 @@ public:
typedef
std
::
shared_ptr
<
Database
>
Ptr
;
enum
Source
{
ResourcesDatabase
ResourcesDatabase
,
};
enum
OpenMode
{
ReadWrite
,
ReadOnly
ReadOnly
,
};
static
Ptr
instance
(
Source
source
,
OpenMode
openMode
);
...
...
src/service/Activities.h
View file @
a4bbc6e5
...
...
@@ -38,7 +38,7 @@ public:
Running
=
2
,
Starting
=
3
,
Stopped
=
4
,
Stopping
=
5
Stopping
=
5
,
};
/**
...
...
src/service/Event.h
View file @
a4bbc6e5
...
...
@@ -31,14 +31,14 @@ public:
FocussedOut
=
5
,
///< resource lost the focus
LastEventType
=
5
,
UserEventType
=
32
UserEventType
=
32
,
};
// These events can't come outside of the activity manager daemon,
// they are intended to provide some additional functionality
// to the daemon plugins
enum
UserType
{
UpdateScore
=
UserEventType
+
1
UpdateScore
=
UserEventType
+
1
,
};
Event
();
...
...
src/service/ksmserver/KSMServer.h
View file @
a4bbc6e5
...
...
@@ -23,7 +23,7 @@ public:
enum
ReturnStatus
{
Started
=
0
,
Stopped
=
1
,
FailedToStop
=
2
FailedToStop
=
2
,
};
explicit
KSMServer
(
QObject
*
parent
=
nullptr
);
...
...
src/service/plugins/runapplication/RunApplicationPlugin.cpp
View file @
a4bbc6e5
...
...
@@ -20,7 +20,7 @@
namespace
{
enum
ActivityState
{
Running
=
2
,
Stopped
=
4
Stopped
=
4
,
};
}
...
...
src/service/plugins/sqlite/StatsPlugin.h
View file @
a4bbc6e5
...
...
@@ -115,7 +115,7 @@ private:
enum
WhatToRemember
{
AllApplications
=
0
,
SpecificApplications
=
1
,
NoApplications
=
2
NoApplications
=
2
,
};
QObject
*
m_activities
;
...
...
src/service/plugins/sqlite/Utils.h
View file @
a4bbc6e5
...
...
@@ -42,7 +42,7 @@ namespace Utils {
enum
ErrorHandling
{
IgnoreError
,
FailOnError
FailOnError
,
};
inline
bool
exec
(
Common
::
Database
&
database
,
ErrorHandling
eh
,
QSqlQuery
&
query
)
...
...
src/utils/member_matcher.h
View file @
a4bbc6e5
...
...
@@ -19,7 +19,7 @@ namespace member_matcher {
LessOrEqual
,
Equal
,
GreaterOrEqual
,
Greater
Greater
,
};
// Member comparison object
...
...
src/utils/ptr_to.h
View file @
a4bbc6e5
...
...
@@ -12,7 +12,7 @@ namespace utils {
enum
{
Const
=
0
,
Mutable
=
1
Mutable
=
1
,
};
template
<
typename
T
,
int
Policy
=
Const
>
...
...
src/utils/qsqlquery_iterator.h
View file @
a4bbc6e5
...
...
@@ -15,7 +15,7 @@ class NextValueIterator {
public:
enum
Type
{
NormalIterator
,
EndIterator
EndIterator
,
};
NextValueIterator
(
ResultSet
&
query
,
Type
type
=
NormalIterator
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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