Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KMail
Commits
0180165e
Commit
0180165e
authored
Oct 08, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Const'ify variable/pointer
parent
3241e03c
Pipeline
#36780
passed with stage
in 39 minutes and 55 seconds
Changes
13
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
12 additions
and
15 deletions
+12
-15
agents/archivemailagent/archivemailagent.cpp
agents/archivemailagent/archivemailagent.cpp
+1
-1
agents/archivemailagent/archivemailagent.h
agents/archivemailagent/archivemailagent.h
+1
-1
agents/followupreminderagent/followupreminderagent.cpp
agents/followupreminderagent/followupreminderagent.cpp
+1
-1
agents/followupreminderagent/followupreminderagent.h
agents/followupreminderagent/followupreminderagent.h
+1
-1
agents/followupreminderagent/jobs/followupreminderfinishtaskjob.h
...ollowupreminderagent/jobs/followupreminderfinishtaskjob.h
+1
-1
agents/followupreminderagent/jobs/followupremindershowmessagejob.h
...llowupreminderagent/jobs/followupremindershowmessagejob.h
+1
-1
agents/mailfilteragent/filterlogdialog.cpp
agents/mailfilteragent/filterlogdialog.cpp
+0
-3
agents/sendlateragent/sendlateragent.cpp
agents/sendlateragent/sendlateragent.cpp
+1
-1
agents/sendlateragent/sendlateragent.h
agents/sendlateragent/sendlateragent.h
+1
-1
agents/sendlateragent/sendlaterconfiguredialog.cpp
agents/sendlateragent/sendlaterconfiguredialog.cpp
+1
-1
agents/sendlateragent/sendlaterconfiguredialog.h
agents/sendlateragent/sendlaterconfiguredialog.h
+1
-1
agents/sendlateragent/sendlaterremovemessagejob.h
agents/sendlateragent/sendlaterremovemessagejob.h
+1
-1
agents/unifiedmailboxagent/settingsdialog.h
agents/unifiedmailboxagent/settingsdialog.h
+1
-1
No files found.
agents/archivemailagent/archivemailagent.cpp
View file @
0180165e
...
...
@@ -24,6 +24,7 @@
ArchiveMailAgent
::
ArchiveMailAgent
(
const
QString
&
id
)
:
Akonadi
::
AgentBase
(
id
)
,
mArchiveManager
(
new
ArchiveMailManager
(
this
))
{
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"archivemailagent"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"akonadi_archivemail_agentrc"
)
<<
QStringLiteral
(
"akonadi_archivemail_agent.notifyrc"
));
...
...
@@ -31,7 +32,6 @@ ArchiveMailAgent::ArchiveMailAgent(const QString &id)
connect
(
this
,
&
Akonadi
::
AgentBase
::
reloadConfiguration
,
this
,
&
ArchiveMailAgent
::
reload
);
mArchiveManager
=
new
ArchiveMailManager
(
this
);
connect
(
mArchiveManager
,
&
ArchiveMailManager
::
needUpdateConfigDialogBox
,
this
,
&
ArchiveMailAgent
::
needUpdateConfigDialogBox
);
Akonadi
::
Monitor
*
collectionMonitor
=
new
Akonadi
::
Monitor
(
this
);
...
...
agents/archivemailagent/archivemailagent.h
View file @
0180165e
...
...
@@ -45,7 +45,7 @@ protected:
private:
void
mailCollectionRemoved
(
const
Akonadi
::
Collection
&
collection
);
QTimer
*
mTimer
=
nullptr
;
ArchiveMailManager
*
mArchiveManager
=
nullptr
;
ArchiveMailManager
*
const
mArchiveManager
;
};
#endif
/* ARCHIVEMAILAGENT_H */
agents/followupreminderagent/followupreminderagent.cpp
View file @
0180165e
...
...
@@ -27,6 +27,7 @@
FollowUpReminderAgent
::
FollowUpReminderAgent
(
const
QString
&
id
)
:
Akonadi
::
AgentBase
(
id
)
,
mManager
(
new
FollowUpReminderManager
(
this
))
{
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"followupreminderagent"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"akonadi_followupreminder_agentrc"
)
<<
QStringLiteral
(
"akonadi_followupreminder_agent.notifyrc"
));
...
...
@@ -36,7 +37,6 @@ FollowUpReminderAgent::FollowUpReminderAgent(const QString &id)
QDBusConnection
::
sessionBus
().
registerObject
(
QStringLiteral
(
"/FollowUpReminder"
),
this
,
QDBusConnection
::
ExportAdaptors
);
const
QString
service
=
Akonadi
::
ServerManager
::
self
()
->
agentServiceName
(
Akonadi
::
ServerManager
::
Agent
,
QStringLiteral
(
"akonadi_followupreminder_agent"
));
QDBusConnection
::
sessionBus
().
registerService
(
service
);
mManager
=
new
FollowUpReminderManager
(
this
);
setNeedsNetwork
(
true
);
changeRecorder
()
->
setMimeTypeMonitored
(
KMime
::
Message
::
mimeType
());
...
...
agents/followupreminderagent/followupreminderagent.h
View file @
0180165e
...
...
@@ -29,7 +29,7 @@ protected:
void
itemAdded
(
const
Akonadi
::
Item
&
item
,
const
Akonadi
::
Collection
&
collection
)
override
;
private:
FollowUpReminderManager
*
mManager
=
nullptr
;
FollowUpReminderManager
*
const
mManager
;
QTimer
*
mTimer
=
nullptr
;
};
...
...
agents/followupreminderagent/jobs/followupreminderfinishtaskjob.h
View file @
0180165e
...
...
@@ -28,7 +28,7 @@ private:
void
slotItemFetchJobDone
(
KJob
*
job
);
void
slotItemModifiedResult
(
KJob
*
job
);
void
closeTodo
();
Akonadi
::
Item
::
Id
mTodoId
;
const
Akonadi
::
Item
::
Id
mTodoId
;
};
#endif // FOLLOWUPREMINDERFINISHTASKJOB_H
agents/followupreminderagent/jobs/followupremindershowmessagejob.h
View file @
0180165e
...
...
@@ -21,7 +21,7 @@ public:
private:
Q_DISABLE_COPY
(
FollowUpReminderShowMessageJob
)
Akonadi
::
Item
::
Id
mId
;
const
Akonadi
::
Item
::
Id
mId
;
};
#endif // FOLLOWUPREMINDERSHOWMESSAGEJOB_H
agents/mailfilteragent/filterlogdialog.cpp
View file @
0180165e
...
...
@@ -102,9 +102,6 @@ FilterLogDialog::FilterLogDialog(QWidget *parent)
mLogPatternDescBox
->
setChecked
(
FilterLog
::
instance
()
->
isContentTypeEnabled
(
FilterLog
::
PatternDescription
));
connect
(
mLogPatternDescBox
,
&
QCheckBox
::
clicked
,
this
,
&
FilterLogDialog
::
slotChangeLogDetail
);
// TODO
//QWhatsThis::add( mLogPatternDescBox,
// i18n( "" ) );
mLogRuleEvaluationBox
=
new
QCheckBox
(
i18n
(
"Log filter &rule evaluation"
));
layout
->
addWidget
(
mLogRuleEvaluationBox
);
...
...
agents/sendlateragent/sendlateragent.cpp
View file @
0180165e
...
...
@@ -35,12 +35,12 @@
SendLaterAgent
::
SendLaterAgent
(
const
QString
&
id
)
:
Akonadi
::
AgentBase
(
id
)
,
mManager
(
new
SendLaterManager
(
this
))
{
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"sendlateragent"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"akonadi_sendlater_agentrc"
)
<<
QStringLiteral
(
"akonadi_sendlater_agent.notifyrc"
));
migrate
.
migrate
();
mManager
=
new
SendLaterManager
(
this
);
connect
(
mManager
,
&
SendLaterManager
::
needUpdateConfigDialogBox
,
this
,
&
SendLaterAgent
::
needUpdateConfigDialogBox
);
new
SendLaterAgentAdaptor
(
this
);
QDBusConnection
::
sessionBus
().
registerObject
(
QStringLiteral
(
"/SendLaterAgent"
),
this
,
QDBusConnection
::
ExportAdaptors
);
...
...
agents/sendlateragent/sendlateragent.h
View file @
0180165e
...
...
@@ -45,7 +45,7 @@ private:
void
slotSendNow
(
Akonadi
::
Item
::
Id
id
);
void
slotStartAgent
();
bool
mAgentInitialized
=
false
;
SendLaterManager
*
mManager
=
nullptr
;
SendLaterManager
*
const
mManager
;
};
#endif // SENDLATERAGENT_H
agents/sendlateragent/sendlaterconfiguredialog.cpp
View file @
0180165e
...
...
@@ -20,6 +20,7 @@
SendLaterConfigureDialog
::
SendLaterConfigureDialog
(
QWidget
*
parent
)
:
QDialog
(
parent
)
,
mWidget
(
new
SendLaterWidget
(
this
))
{
setWindowTitle
(
i18nc
(
"@title:window"
,
"Configure"
));
setWindowIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"kmail"
)));
...
...
@@ -30,7 +31,6 @@ SendLaterConfigureDialog::SendLaterConfigureDialog(QWidget *parent)
okButton
->
setShortcut
(
Qt
::
CTRL
|
Qt
::
Key_Return
);
connect
(
buttonBox
,
&
QDialogButtonBox
::
rejected
,
this
,
&
SendLaterConfigureDialog
::
reject
);
mWidget
=
new
SendLaterWidget
(
this
);
mWidget
->
setObjectName
(
QStringLiteral
(
"sendlaterwidget"
));
connect
(
mWidget
,
&
SendLaterWidget
::
sendNow
,
this
,
&
SendLaterConfigureDialog
::
sendNow
);
mainLayout
->
addWidget
(
mWidget
);
...
...
agents/sendlateragent/sendlaterconfiguredialog.h
View file @
0180165e
...
...
@@ -29,7 +29,7 @@ private:
void
slotSave
();
void
readConfig
();
void
writeConfig
();
SendLaterWidget
*
mWidget
=
nullptr
;
SendLaterWidget
*
const
mWidget
;
};
#endif // SENDLATERCONFIGUREDIALOG_H
agents/sendlateragent/sendlaterremovemessagejob.h
View file @
0180165e
...
...
@@ -25,7 +25,7 @@ private:
Q_DISABLE_COPY
(
SendLaterRemoveMessageJob
)
void
slotItemDeleteDone
(
KJob
*
job
);
void
deleteItem
();
QVector
<
Akonadi
::
Item
::
Id
>
mListItems
;
const
QVector
<
Akonadi
::
Item
::
Id
>
mListItems
;
int
mIndex
=
0
;
};
...
...
agents/unifiedmailboxagent/settingsdialog.h
View file @
0180165e
...
...
@@ -32,7 +32,7 @@ private:
QStandardItemModel
*
mBoxModel
=
nullptr
;
UnifiedMailboxManager
&
mBoxManager
;
MailKernel
*
const
mKernel
;
KSharedConfigPtr
mConfig
;
const
KSharedConfigPtr
mConfig
;
};
#endif
Write
Preview
Markdown
is supported
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