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
PIM
KMail Account Wizard
Commits
b35d68f5
Commit
b35d68f5
authored
Dec 03, 2020
by
Laurent Montel
😁
Browse files
Port some foreach
parent
d7561188
Pipeline
#42885
passed with stage
in 13 minutes and 12 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/configfile.cpp
View file @
b35d68f5
...
...
@@ -33,7 +33,7 @@ void ConfigFile::create()
{
Q_EMIT
info
(
i18n
(
"Writing config file for %1..."
,
m_name
));
for
each
(
const
Config
&
c
,
m_configData
)
{
for
(
const
Config
&
c
:
qAsConst
(
m_configData
)
)
{
KConfigGroup
grp
=
m_config
->
group
(
c
.
group
);
if
(
c
.
obscure
)
{
grp
.
writeEntry
(
c
.
key
,
KStringHandler
::
obscure
(
c
.
value
));
...
...
src/ispdb/main.cpp
View file @
b35d68f5
...
...
@@ -101,7 +101,8 @@ int main(int argc, char **argv)
qCDebug
(
ACCOUNTWIZARD_LOG
)
<<
"Domains"
<<
ispdb
.
relevantDomains
();
qCDebug
(
ACCOUNTWIZARD_LOG
)
<<
"Name"
<<
ispdb
.
name
(
Ispdb
::
Long
)
<<
"("
<<
ispdb
.
name
(
Ispdb
::
Short
)
<<
")"
;
qCDebug
(
ACCOUNTWIZARD_LOG
)
<<
"Imap servers:"
;
foreach
(
const
Server
&
s
,
ispdb
.
imapServers
())
{
const
auto
imapServers
=
ispdb
.
imapServers
();
for
(
const
Server
&
s
:
imapServers
)
{
qCDebug
(
ACCOUNTWIZARD_LOG
)
<<
"
\t
hostname:"
<<
s
.
hostname
<<
"- port:"
<<
s
.
port
<<
"- encryption:"
<<
socketTypeToStr
(
s
.
socketType
)
...
...
@@ -109,7 +110,8 @@ int main(int argc, char **argv)
<<
"- authentication:"
<<
authTypeToStr
(
s
.
authentication
);
}
qCDebug
(
ACCOUNTWIZARD_LOG
)
<<
"pop3 servers:"
;
foreach
(
const
Server
&
s
,
ispdb
.
pop3Servers
())
{
const
auto
pop3Servers
=
ispdb
.
pop3Servers
();
for
(
const
Server
&
s
:
pop3Servers
)
{
qCDebug
(
ACCOUNTWIZARD_LOG
)
<<
"
\t
hostname:"
<<
s
.
hostname
<<
"- port:"
<<
s
.
port
<<
"- encryption:"
<<
socketTypeToStr
(
s
.
socketType
)
...
...
@@ -117,7 +119,8 @@ int main(int argc, char **argv)
<<
"- authentication:"
<<
authTypeToStr
(
s
.
authentication
);
}
qCDebug
(
ACCOUNTWIZARD_LOG
)
<<
"smtp servers:"
;
foreach
(
const
Server
&
s
,
ispdb
.
smtpServers
())
{
const
auto
smtpServers
=
ispdb
.
smtpServers
();
for
(
const
Server
&
s
:
smtpServers
)
{
qCDebug
(
ACCOUNTWIZARD_LOG
)
<<
"
\t
hostname:"
<<
s
.
hostname
<<
"- port:"
<<
s
.
port
<<
"- encryption:"
<<
socketTypeToStr
(
s
.
socketType
)
...
...
src/providerpage.cpp
View file @
b35d68f5
...
...
@@ -97,7 +97,7 @@ void ProviderPage::leavePageNext()
qCDebug
(
ACCOUNTWIZARD_LOG
)
<<
"Item selected:"
<<
item
->
text
();
// download and execute it...
for
each
(
const
KNSCore
::
EntryInternal
&
e
,
m_providerEntries
)
{
for
(
const
KNSCore
::
EntryInternal
&
e
:
qAsConst
(
m_providerEntries
)
)
{
if
(
e
.
uniqueId
()
==
item
->
data
(
Qt
::
UserRole
)
&&
e
.
providerId
()
==
item
->
data
(
Qt
::
UserRole
+
1
))
{
m_wantedProvider
.
entryId
=
e
.
uniqueId
();
...
...
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