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
KDE PIM Add-ons
Commits
671fe9ba
Commit
671fe9ba
authored
Aug 03, 2020
by
Laurent Montel
😁
Browse files
Continue to implement import "contact" file
parent
86facbe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
kaddressbook/importexportplugins/windows-contacts/windowscontactimportexportplugininterface.cpp
View file @
671fe9ba
...
...
@@ -86,6 +86,20 @@ void WindowsContactImportExportPluginInterface::exec()
void
WindowsContactImportExportPluginInterface
::
importWindowsContact
()
{
KAddressBookImportExport
::
KAddressBookImportExportContactList
contactList
;
const
QString
fileName
=
QFileDialog
::
getOpenFileName
(
parentWidget
(),
QString
(),
QDir
::
homePath
(),
i18n
(
"Windows Contact file (*.contact)"
));
if
(
fileName
.
isEmpty
())
{
return
;
}
QFile
file
(
fileName
);
if
(
!
file
.
open
(
QIODevice
::
ReadOnly
))
{
const
QString
msg
=
i18n
(
"<qt>Unable to open <b>%1</b> for reading.</qt>"
,
fileName
);
KMessageBox
::
error
(
parentWidget
(),
msg
);
return
;
}
//TODO
}
...
...
@@ -102,7 +116,6 @@ bool WindowsContactImportExportPluginInterface::canImportFileType(const QUrl &ur
void
WindowsContactImportExportPluginInterface
::
importFile
(
const
QUrl
&
url
)
{
//TODO
}
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