Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KMailTransport
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
KMailTransport
Commits
8530205c
Commit
8530205c
authored
Mar 06, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move in own directory
parent
50eed00e
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
12 additions
and
43 deletions
+12
-43
autotests/messagequeuejobtest.cpp
autotests/messagequeuejobtest.cpp
+1
-1
src/CMakeLists.txt
src/CMakeLists.txt
+5
-10
src/akonadi/dispatcherinterface.cpp
src/akonadi/dispatcherinterface.cpp
+1
-1
src/akonadi/dispatcherinterface.h
src/akonadi/dispatcherinterface.h
+0
-0
src/akonadi/dispatcherinterface_p.h
src/akonadi/dispatcherinterface_p.h
+0
-0
src/akonadi/messagequeuejob.cpp
src/akonadi/messagequeuejob.cpp
+0
-0
src/akonadi/messagequeuejob.h
src/akonadi/messagequeuejob.h
+0
-0
src/akonadi/outboxactions.cpp
src/akonadi/outboxactions.cpp
+0
-0
src/akonadi/outboxactions_p.h
src/akonadi/outboxactions_p.h
+0
-0
src/smtpjob.cpp
src/smtpjob.cpp
+0
-24
src/smtpjob.h
src/smtpjob.h
+0
-2
src/transportmanager.h
src/transportmanager.h
+1
-1
tests/abort.cpp
tests/abort.cpp
+1
-1
tests/clearerror.cpp
tests/clearerror.cpp
+1
-1
tests/queuer.cpp
tests/queuer.cpp
+1
-1
tests/sendqueued.cpp
tests/sendqueued.cpp
+1
-1
No files found.
autotests/messagequeuejobtest.cpp
View file @
8530205c
...
...
@@ -40,7 +40,7 @@
#include <akonadi/dispatchmodeattribute.h>
#include <akonadi/errorattribute.h>
#include <messagequeuejob.h>
#include <
akonadi/
messagequeuejob.h>
#include <akonadi/sentbehaviourattribute.h>
#include <transport.h>
#include <akonadi/transportattribute.h>
...
...
src/CMakeLists.txt
View file @
8530205c
...
...
@@ -17,20 +17,20 @@ set(mailtransport_lib_srcs
socket.cpp
servertest.cpp
dispatcherinterface.cpp
messagequeuejob.cpp
outboxactions.cpp
)
set
(
mailtransport_akonadi_srcs
akonadi/dispatcherinterface.cpp
akonadi/attributeregistrar.cpp
akonadi/dispatchmodeattribute.cpp
akonadi/errorattribute.cpp
akonadi/transportattribute.cpp
akonadi/sentactionattribute.cpp
akonadi/sentbehaviourattribute.cpp
akonadi/messagequeuejob.cpp
akonadi/outboxactions.cpp
)
set
(
mailtransport_widgets_srcs
...
...
@@ -93,11 +93,6 @@ set_target_properties(KF5MailTransport PROPERTIES
)
if
(
MAILTRANSPORT_INPROCESS_SMTP
)
target_link_libraries
(
mailtransport
${
Sasl2_LIBRARIES
}
KF5::PimUtils
)
endif
()
install
(
TARGETS KF5MailTransport EXPORT KF5MailTransportTargets
${
KF5_INSTALL_TARGETS_DEFAULT_ARGS
}
)
install
(
FILES mailtransport.kcfg DESTINATION
${
KDE_INSTALL_KCFGDIR
}
)
...
...
@@ -107,8 +102,6 @@ add_subdirectory(kcm)
ecm_generate_headers
(
MailTransport_CamelCase_HEADERS
HEADER_NAMES
DispatcherInterface
MessageQueueJob
PrecommandJob
ServerTest
SmtpJob
...
...
@@ -131,6 +124,8 @@ ecm_generate_headers(MailTransport_widgets_CamelCase_HEADERS
ecm_generate_headers
(
MailTransport_akonadi_CamelCase_HEADERS
HEADER_NAMES
DispatcherInterface
MessageQueueJob
TransportAttribute
SentBehaviourAttribute
DispatchModeAttribute
...
...
src/dispatcherinterface.cpp
→
src/
akonadi/
dispatcherinterface.cpp
View file @
8530205c
...
...
@@ -20,7 +20,7 @@
#include "dispatcherinterface.h"
#include "dispatcherinterface_p.h"
#include "outboxactions_p.h"
#include "
akonadi/
outboxactions_p.h"
#include "mailtransport_debug.h"
...
...
src/dispatcherinterface.h
→
src/
akonadi/
dispatcherinterface.h
View file @
8530205c
File moved
src/dispatcherinterface_p.h
→
src/
akonadi/
dispatcherinterface_p.h
View file @
8530205c
File moved
src/messagequeuejob.cpp
→
src/
akonadi/
messagequeuejob.cpp
View file @
8530205c
File moved
src/messagequeuejob.h
→
src/
akonadi/
messagequeuejob.h
View file @
8530205c
File moved
src/outboxactions.cpp
→
src/
akonadi/
outboxactions.cpp
View file @
8530205c
File moved
src/outboxactions_p.h
→
src/
akonadi/
outboxactions_p.h
View file @
8530205c
File moved
src/smtpjob.cpp
View file @
8530205c
...
...
@@ -70,19 +70,6 @@ class SmtpJobPrivate
public:
SmtpJobPrivate
(
SmtpJob
*
parent
)
:
q
(
parent
)
{}
void
smtpSessionResult
(
SmtpSession
*
session
)
{
#ifndef MAILTRANSPORT_INPROCESS_SMTP
Q_UNUSED
(
session
);
#else
if
(
!
session
->
errorMessage
().
isEmpty
())
{
q
->
setError
(
KJob
::
UserDefinedError
);
q
->
setErrorText
(
session
->
errorMessage
());
}
q
->
emitResult
();
#endif
}
SmtpJob
*
q
;
KIO
::
Slave
*
slave
;
enum
State
{
...
...
@@ -218,7 +205,6 @@ void SmtpJob::startSmtpJob()
destination
.
setPath
(
QStringLiteral
(
"/send"
));
destination
.
setQuery
(
destinationQuery
);
#ifndef MAILTRANSPORT_INPROCESS_SMTP
d
->
slave
=
s_slavePool
->
slaves
.
value
(
transport
()
->
id
());
if
(
!
d
->
slave
)
{
KIO
::
MetaData
slaveConfig
;
...
...
@@ -248,16 +234,6 @@ void SmtpJob::startSmtpJob()
addSubjob
(
job
);
KIO
::
Scheduler
::
assignJobToSlave
(
d
->
slave
,
job
);
#else
SmtpSession
*
session
=
new
SmtpSession
(
this
);
connect
(
session
,
SIGNAL
(
result
(
MailTransport
::
SmtpSession
*
)),
SLOT
(
smtpSessionResult
(
MailTransport
::
SmtpSession
*
)));
session
->
setUseTLS
(
transport
()
->
encryption
()
==
Transport
::
EnumEncryption
::
TLS
);
if
(
transport
()
->
requiresAuthentication
())
{
session
->
setSaslMethod
(
transport
()
->
authenticationTypeString
());
}
session
->
sendMessage
(
destination
,
buffer
());
#endif
setTotalAmount
(
KJob
::
Bytes
,
data
().
length
());
}
...
...
src/smtpjob.h
View file @
8530205c
...
...
@@ -38,7 +38,6 @@ class SmtpJobPrivate;
namespace
MailTransport
{
class
SmtpSession
;
/**
Mail transport job for SMTP.
...
...
@@ -83,7 +82,6 @@ private Q_SLOTS:
private:
friend
class
::
SmtpJobPrivate
;
SmtpJobPrivate
*
const
d
;
Q_PRIVATE_SLOT
(
d
,
void
smtpSessionResult
(
MailTransport
::
SmtpSession
*
))
};
}
// namespace MailTransport
...
...
src/transportmanager.h
View file @
8530205c
...
...
@@ -106,7 +106,7 @@ public:
Note: The Transport objects become invalid as soon as a change occur, so
they are only suitable for immediate use.
*/
QList
<
Transport
*>
transports
()
const
;
QList
<
Transport
*>
transports
()
const
;
/**
Returns a list of all available transport types.
...
...
tests/abort.cpp
View file @
8530205c
...
...
@@ -26,7 +26,7 @@
#include <control.h>
#include <dispatcherinterface.h>
#include <
akonadi/
dispatcherinterface.h>
using
namespace
Akonadi
;
using
namespace
MailTransport
;
...
...
tests/clearerror.cpp
View file @
8530205c
...
...
@@ -24,7 +24,7 @@
#include <collection.h>
#include <control.h>
#include <filteractionjob_p.h>
#include <dispatcherinterface.h>
#include <
akonadi/
dispatcherinterface.h>
#include <specialmailcollections.h>
#include <specialmailcollectionsrequestjob.h>
...
...
tests/queuer.cpp
View file @
8530205c
...
...
@@ -36,7 +36,7 @@
#include <QDialogButtonBox>
#include <akonadi/dispatchmodeattribute.h>
#include <messagequeuejob.h>
#include <
akonadi/
messagequeuejob.h>
#include <transportmanager.h>
#include <transport.h>
...
...
tests/sendqueued.cpp
View file @
8530205c
...
...
@@ -24,7 +24,7 @@
#include <collection.h>
#include <control.h>
#include <filteractionjob_p.h>
#include <dispatcherinterface.h>
#include <
akonadi/
dispatcherinterface.h>
#include <specialmailcollections.h>
#include <specialmailcollectionsrequestjob.h>
...
...
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