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
c2823d4e
Commit
c2823d4e
authored
Jun 30, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add info about akonadi support
parent
8e003816
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
2 deletions
+14
-2
src/kmailtransport/plugins/smtp/smtpmailtransportplugin.cpp
src/kmailtransport/plugins/smtp/smtpmailtransportplugin.cpp
+1
-0
src/kmailtransport/plugins/transportabstractplugin.h
src/kmailtransport/plugins/transportabstractplugin.h
+1
-0
src/kmailtransport/transportmanager.cpp
src/kmailtransport/transportmanager.cpp
+1
-0
src/kmailtransport/transporttype.cpp
src/kmailtransport/transporttype.cpp
+5
-1
src/kmailtransport/transporttype.h
src/kmailtransport/transporttype.h
+2
-0
src/kmailtransport/transporttype_p.h
src/kmailtransport/transporttype_p.h
+3
-0
src/kmailtransport/widgets/addtransportdialogng.cpp
src/kmailtransport/widgets/addtransportdialogng.cpp
+0
-1
src/kmailtransportakonadi/plugins/akonadimailtransportplugin.cpp
...iltransportakonadi/plugins/akonadimailtransportplugin.cpp
+1
-0
No files found.
src/kmailtransport/plugins/smtp/smtpmailtransportplugin.cpp
View file @
c2823d4e
...
...
@@ -42,6 +42,7 @@ QVector<MailTransport::TransportAbstractPluginInfo> SMTPMailTransportPlugin::nam
info
.
name
=
i18nc
(
"@option SMTP transport"
,
"SMTP"
);
info
.
description
=
i18n
(
"An SMTP server on the Internet"
);
info
.
identifier
=
QStringLiteral
(
"SMTP"
);
info
.
isAkonadi
=
false
;
return
QVector
<
MailTransport
::
TransportAbstractPluginInfo
>
()
<<
info
;
}
...
...
src/kmailtransport/plugins/transportabstractplugin.h
View file @
c2823d4e
...
...
@@ -32,6 +32,7 @@ struct MAILTRANSPORT_EXPORT TransportAbstractPluginInfo
QString
name
;
QString
identifier
;
QString
description
;
bool
isAkonadi
=
false
;
};
class
MAILTRANSPORT_EXPORT
TransportAbstractPlugin
:
public
QObject
...
...
src/kmailtransport/transportmanager.cpp
View file @
c2823d4e
...
...
@@ -475,6 +475,7 @@ void TransportManagerPrivate::fillTypes()
type
.
d
->
mName
=
info
.
name
;
type
.
d
->
mDescription
=
info
.
description
;
type
.
d
->
mIdentifier
=
info
.
identifier
;
type
.
d
->
mIsAkonadiResource
=
info
.
isAkonadi
;
types
<<
type
;
}
}
...
...
src/kmailtransport/transporttype.cpp
View file @
c2823d4e
...
...
@@ -47,7 +47,6 @@ TransportType &TransportType::operator=(const TransportType &other)
bool
TransportType
::
operator
==
(
const
TransportType
&
other
)
const
{
qDebug
()
<<
"d->mIdentifier "
<<
d
->
mIdentifier
<<
" other.d->mIdentifier"
<<
other
.
d
->
mIdentifier
;
return
d
->
mIdentifier
==
other
.
d
->
mIdentifier
;
}
...
...
@@ -70,3 +69,8 @@ QString TransportType::identifier() const
{
return
d
->
mIdentifier
;
}
bool
TransportType
::
isAkonadiResource
()
const
{
return
d
->
mIsAkonadiResource
;
}
src/kmailtransport/transporttype.h
View file @
c2823d4e
...
...
@@ -97,6 +97,8 @@ public:
*/
QString
identifier
()
const
;
bool
isAkonadiResource
()
const
;
private:
//@cond PRIVATE
class
Private
;
...
...
src/kmailtransport/transporttype_p.h
View file @
c2823d4e
...
...
@@ -31,6 +31,7 @@ class TransportType::Private : public QSharedData
{
public:
Private
()
:
mIsAkonadiResource
(
false
)
{
}
...
...
@@ -40,11 +41,13 @@ public:
mName
=
other
.
mName
;
mDescription
=
other
.
mDescription
;
mIdentifier
=
other
.
mIdentifier
;
mIsAkonadiResource
=
other
.
mIsAkonadiResource
;
}
QString
mName
;
QString
mDescription
;
QString
mIdentifier
;
bool
mIsAkonadiResource
;
};
}
// namespace MailTransport
...
...
src/kmailtransport/widgets/addtransportdialogng.cpp
View file @
c2823d4e
...
...
@@ -124,7 +124,6 @@ AddTransportDialogNG::AddTransportDialogNG(QWidget *parent)
treeItem
->
setText
(
0
,
type
.
name
());
treeItem
->
setText
(
1
,
type
.
description
());
treeItem
->
setData
(
0
,
Qt
::
UserRole
,
type
.
identifier
());
// the transport type
qDebug
()
<<
" ADD type "
<<
type
.
name
()
<<
"type.identifier()"
<<
type
.
identifier
();
//PORT ME
/*
if (type.type() == TransportBase::EnumType::SMTP) {
...
...
src/kmailtransportakonadi/plugins/akonadimailtransportplugin.cpp
View file @
c2823d4e
...
...
@@ -55,6 +55,7 @@ QVector<MailTransport::TransportAbstractPluginInfo> AkonadiMailTransportPlugin::
info
.
name
=
atype
.
name
();
info
.
description
=
atype
.
description
();
info
.
identifier
=
atype
.
identifier
();
info
.
isAkonadi
=
true
;
lst
<<
info
;
}
}
...
...
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