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
PIM
KIMAP
Commits
c6847146
Commit
c6847146
authored
Oct 06, 2022
by
Laurent Montel
Browse files
Port deprecated methods
parent
16431c16
Pipeline
#244532
failed with stage
in 8 minutes and 36 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
autotests/fakeservertest.cpp
View file @
c6847146
...
...
@@ -44,7 +44,7 @@ private Q_SLOTS:
KIMAP
::
Session
session
(
QStringLiteral
(
"127.0.0.1"
),
5989
);
auto
job
=
new
KIMAP
::
ListJob
(
&
session
);
job
->
setIncludeUnsubscribed
(
true
);
job
->
set
Option
(
KIMAP
::
ListJob
::
IncludeUnsubscribed
);
QVERIFY
(
job
->
exec
());
fakeServer
.
quit
();
...
...
autotests/listjobtest.cpp
View file @
c6847146
...
...
@@ -184,7 +184,7 @@ private Q_SLOTS:
KIMAP
::
Session
session
(
QStringLiteral
(
"127.0.0.1"
),
5989
);
auto
job
=
new
KIMAP
::
ListJob
(
&
session
);
job
->
set
IncludeU
nsubscribed
(
unsubscribed
);
job
->
set
Option
(
u
nsubscribed
?
KIMAP
::
ListJob
::
IncludeUnsubscribed
:
KIMAP
::
ListJob
::
NoOption
);
QSignalSpy
spy
(
job
,
&
KIMAP
::
ListJob
::
mailBoxesReceived
);
...
...
tests/testimapserver.cpp
View file @
c6847146
...
...
@@ -80,7 +80,7 @@ void dumpContentHelper(KMime::Content *part, const QString &partId = QString())
void
listFolders
(
Session
*
session
,
bool
includeUnsubscribed
=
false
,
const
QString
&
nameFilter
=
QLatin1String
(
""
))
{
auto
list
=
new
ListJob
(
session
);
list
->
set
I
ncludeUnsubscribed
(
includeUnsubscribed
);
list
->
set
Option
(
i
ncludeUnsubscribed
?
KIMAP
::
ListJob
::
IncludeUnsubscribed
:
KIMAP
::
ListJob
::
NoOption
);
list
->
exec
();
Q_ASSERT_X
(
list
->
error
()
==
0
,
"ListJob"
,
list
->
errorString
().
toLocal8Bit
().
constData
());
int
count
=
list
->
mailBoxes
().
size
();
...
...
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