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
A
Akonadi Data Import Wizard
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
Akonadi Data Import Wizard
Commits
50a7b3bf
Commit
50a7b3bf
authored
Apr 16, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Activate more plugin
parent
84cebc90
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
36 additions
and
13 deletions
+36
-13
src/CMakeLists.txt
src/CMakeLists.txt
+3
-3
src/autodetect/CMakeLists.txt
src/autodetect/CMakeLists.txt
+1
-0
src/autodetect/balsa/CMakeLists.txt
src/autodetect/balsa/CMakeLists.txt
+21
-0
src/autodetect/balsa/balsaaddressbook.cpp
src/autodetect/balsa/balsaaddressbook.cpp
+2
-2
src/autodetect/balsa/balsaimportdata.cpp
src/autodetect/balsa/balsaimportdata.cpp
+1
-1
src/autodetect/balsa/balsasettings.cpp
src/autodetect/balsa/balsasettings.cpp
+2
-2
src/autodetect/importwizardutil.h
src/autodetect/importwizardutil.h
+2
-1
src/importwizard.cpp
src/importwizard.cpp
+4
-4
No files found.
src/CMakeLists.txt
View file @
50a7b3bf
...
...
@@ -56,9 +56,9 @@ set(libimportwizard_autodetect_SRCS
autodetect/pmail/pmailimportdata.cpp
autodetect/pmail/pmailsettings.cpp
autodetect/thebat/thebatimportdata.cpp
autodetect/balsa/balsaimportdata.cpp
autodetect/balsa/balsasettings.cpp
autodetect/balsa/balsaaddressbook.cpp
#
autodetect/balsa/balsaimportdata.cpp
#
autodetect/balsa/balsasettings.cpp
#
autodetect/balsa/balsaaddressbook.cpp
autodetect/claws-mail/clawsmailimportdata.cpp
autodetect/claws-mail/clawsmailsettings.cpp
autodetect/claws-mail/clawsmailaddressbook.cpp
...
...
src/autodetect/CMakeLists.txt
View file @
50a7b3bf
...
...
@@ -3,3 +3,4 @@ add_subdirectory(trojita)
add_subdirectory
(
opera
)
add_subdirectory
(
mailapp
)
add_subdirectory
(
pmail
)
add_subdirectory
(
balsa
)
src/autodetect/balsa/CMakeLists.txt
0 → 100644
View file @
50a7b3bf
set
(
balsaimporter_SRCS
balsaaddressbook.cpp
balsaimportdata.cpp
balsasettings.cpp
)
kcoreaddons_add_plugin
(
balsaimporterplugin JSON balsaimporter.json SOURCES
${
balsaimporter_SRCS
}
INSTALL_NAMESPACE importwizard
)
target_link_libraries
(
balsaimporterplugin
libimportwizard
KF5::XmlGui
KF5::I18n
KF5::Contacts
KF5::MailImporterAkonadi
KF5::MailTransport
KF5::MailCommon
KF5::IdentityManagement
KF5::MessageViewer
)
src/autodetect/balsa/balsaaddressbook.cpp
View file @
50a7b3bf
...
...
@@ -79,7 +79,7 @@ void BalsaAddressBook::readAddressBook(const KConfigGroup &grp)
ImportWizardUtil
::
mergeLdap
(
ldap
);
addAddressBookImportInfo
(
i18n
(
"Ldap created"
));
}
else
if
(
type
==
QLatin1String
(
"LibBalsaAddressBookGpe"
))
{
qCDebug
(
IMPORTWIZARD_LOG
)
<<
" Import it !"
;
//FIXME
qCDebug(IMPORTWIZARD_LOG) << " Import it !";
}
else
if
(
type
==
QLatin1String
(
"LibBalsaAddressBookLdif"
))
{
const
QString
path
=
grp
.
readEntry
(
QStringLiteral
(
"Path"
));
if
(
!
path
.
isEmpty
())
{
...
...
@@ -110,6 +110,6 @@ void BalsaAddressBook::readAddressBook(const KConfigGroup &grp)
addAddressBookImportInfo
(
i18n
(
"New addressbook created: %1"
,
createResource
(
QStringLiteral
(
"akonadi_vcard_resource"
),
name
,
settings
)));
}
}
else
{
qCDebug
(
IMPORTWIZARD_LOG
)
<<
" unknown addressbook type :"
<<
type
;
//FIXME
qCDebug(IMPORTWIZARD_LOG) << " unknown addressbook type :" << type;
}
}
src/autodetect/balsa/balsaimportdata.cpp
View file @
50a7b3bf
...
...
@@ -30,7 +30,7 @@
#include <kpluginfactory.h>
#include <QDir>
//
K_PLUGIN_FACTORY_WITH_JSON(BalsaImporterFactory, "balsaimporter.json", registerPlugin<BalsaImportData>();)
K_PLUGIN_FACTORY_WITH_JSON
(
BalsaImporterFactory
,
"balsaimporter.json"
,
registerPlugin
<
BalsaImportData
>
();)
BalsaImportData
::
BalsaImportData
(
QObject
*
parent
,
const
QList
<
QVariant
>
&
)
:
AbstractImporter
(
parent
)
...
...
src/autodetect/balsa/balsasettings.cpp
View file @
50a7b3bf
...
...
@@ -96,7 +96,7 @@ void BalsaSettings::readAccount(const KConfigGroup &grp, bool autoCheck, int aut
addCheckMailOnStartup
(
agentIdentifyName
,
autoCheck
);
addToManualCheck
(
agentIdentifyName
,
check
);
}
else
{
qCDebug
(
IMPORTWIZARD_LOG
)
<<
" unknown account type :"
<<
type
;
//FIXME
qCDebug(IMPORTWIZARD_LOG) << " unknown account type :" << type;
}
}
...
...
@@ -164,7 +164,7 @@ void BalsaSettings::readTransport(const KConfigGroup &grp)
}
else
if
(
ssl
==
QLatin1String
(
"false"
))
{
mt
->
setEncryption
(
MailTransport
::
Transport
::
EnumEncryption
::
None
);
}
else
{
qCDebug
(
IMPORTWIZARD_LOG
)
<<
" unknown ssl value :"
<<
ssl
;
//FIXME
qCDebug(IMPORTWIZARD_LOG) << " unknown ssl value :" << ssl;
}
//TODO const QString anonymous = grp.readEntry(QStringLiteral("Anonymous"));
...
...
src/autodetect/importwizardutil.h
View file @
50a7b3bf
...
...
@@ -23,6 +23,7 @@
#include <QList>
#include <QColor>
#include <QString>
#include "libimportwizard_export.h"
struct
ldapStruct
{
ldapStruct
()
...
...
@@ -64,7 +65,7 @@ enum ResourceType {
Ldap
};
void
mergeLdap
(
const
ldapStruct
&
ldap
);
LIBIMPORTWIZARD_EXPORT
void
mergeLdap
(
const
ldapStruct
&
ldap
);
void
addAkonadiTag
(
const
QVector
<
tagStruct
>
&
tagList
);
void
storeInKWallet
(
const
QString
&
name
,
ImportWizardUtil
::
ResourceType
type
,
const
QString
&
password
);
}
...
...
src/importwizard.cpp
View file @
50a7b3bf
...
...
@@ -35,7 +35,7 @@
#include "autodetect/icedove/icedoveimportdata.h"
#include "autodetect/oe/oeimportdata.h"
#include "autodetect/thebat/thebatimportdata.h"
#include "autodetect/balsa/balsaimportdata.h"
//
#include "autodetect/balsa/balsaimportdata.h"
#include "autodetect/claws-mail/clawsmailimportdata.h"
#include "manual/manualimportmailpage.h"
...
...
@@ -262,9 +262,9 @@ void ImportWizard::initializeImportModule()
addImportModule
(
importer
);
#endif
importer
=
new
BalsaImportData
(
this
);
importer
->
setImportWizard
(
this
);
addImportModule
(
importer
);
//
importer = new BalsaImportData(this);
//
importer->setImportWizard(this);
//
addImportModule(importer);
importer
=
new
ClawsMailImportData
(
this
);
importer
->
setImportWizard
(
this
);
...
...
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