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
M
Mail-related libraries
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
Mail-related libraries
Commits
11e39942
Commit
11e39942
authored
Sep 07, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modernize code
parent
9e56437f
Pipeline
#33442
passed with stage
in 26 minutes and 19 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
19 deletions
+10
-19
kaddressbookimportexport/src/kaddressbookcontactselectiondialog.cpp
...okimportexport/src/kaddressbookcontactselectiondialog.cpp
+0
-1
kaddressbookimportexport/src/kaddressbookcontactselectionwidget.cpp
...okimportexport/src/kaddressbookcontactselectionwidget.cpp
+0
-1
kaddressbookimportexport/src/kaddressbookcontactselectionwidget.h
...bookimportexport/src/kaddressbookcontactselectionwidget.h
+7
-7
kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp
...ortexport/src/kaddressbookimportexportplugininterface.cpp
+0
-1
kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
...mportexport/src/kaddressbookimportexportplugininterface.h
+1
-1
kaddressbookimportexport/src/kaddressbookimportexportpluginmanager.cpp
...mportexport/src/kaddressbookimportexportpluginmanager.cpp
+2
-8
No files found.
kaddressbookimportexport/src/kaddressbookcontactselectiondialog.cpp
View file @
11e39942
...
@@ -16,7 +16,6 @@ using namespace KAddressBookImportExport;
...
@@ -16,7 +16,6 @@ using namespace KAddressBookImportExport;
KAddressBookContactSelectionDialog
::
KAddressBookContactSelectionDialog
(
QItemSelectionModel
*
selectionModel
,
bool
allowToSelectTypeToExport
,
QWidget
*
parent
)
KAddressBookContactSelectionDialog
::
KAddressBookContactSelectionDialog
(
QItemSelectionModel
*
selectionModel
,
bool
allowToSelectTypeToExport
,
QWidget
*
parent
)
:
QDialog
(
parent
)
:
QDialog
(
parent
)
,
mVCardExport
(
nullptr
)
{
{
setWindowTitle
(
i18nc
(
"@title:window"
,
"Select Contacts"
));
setWindowTitle
(
i18nc
(
"@title:window"
,
"Select Contacts"
));
QVBoxLayout
*
mainLayout
=
new
QVBoxLayout
(
this
);
QVBoxLayout
*
mainLayout
=
new
QVBoxLayout
(
this
);
...
...
kaddressbookimportexport/src/kaddressbookcontactselectionwidget.cpp
View file @
11e39942
...
@@ -31,7 +31,6 @@ using namespace KAddressBookImportExport;
...
@@ -31,7 +31,6 @@ using namespace KAddressBookImportExport;
KAddressBookContactSelectionWidget
::
KAddressBookContactSelectionWidget
(
QItemSelectionModel
*
selectionModel
,
QWidget
*
parent
)
KAddressBookContactSelectionWidget
::
KAddressBookContactSelectionWidget
(
QItemSelectionModel
*
selectionModel
,
QWidget
*
parent
)
:
QWidget
(
parent
)
:
QWidget
(
parent
)
,
mSelectionModel
(
selectionModel
)
,
mSelectionModel
(
selectionModel
)
,
mAddContactGroup
(
false
)
{
{
initGui
();
initGui
();
...
...
kaddressbookimportexport/src/kaddressbookcontactselectionwidget.h
View file @
11e39942
...
@@ -64,15 +64,15 @@ public:
...
@@ -64,15 +64,15 @@ public:
private:
private:
void
initGui
();
void
initGui
();
KAddressBookImportExport
::
KAddressBookImportExportContactList
collectAllContacts
()
const
;
Q_REQUIRED_RESULT
KAddressBookImportExport
::
KAddressBookImportExportContactList
collectAllContacts
()
const
;
KAddressBookImportExport
::
KAddressBookImportExportContactList
collectSelectedContacts
()
const
;
Q_REQUIRED_RESULT
KAddressBookImportExport
::
KAddressBookImportExportContactList
collectSelectedContacts
()
const
;
KAddressBookImportExport
::
KAddressBookImportExportContactList
collectAddressBookContacts
()
const
;
Q_REQUIRED_RESULT
KAddressBookImportExport
::
KAddressBookImportExportContactList
collectAddressBookContacts
()
const
;
Akonadi
::
Item
::
List
collectAllItems
()
const
;
Q_REQUIRED_RESULT
Akonadi
::
Item
::
List
collectAllItems
()
const
;
Akonadi
::
Item
::
List
collectSelectedItems
()
const
;
Q_REQUIRED_RESULT
Akonadi
::
Item
::
List
collectSelectedItems
()
const
;
Akonadi
::
Item
::
List
collectAddressBookItems
()
const
;
Q_REQUIRED_RESULT
Akonadi
::
Item
::
List
collectAddressBookItems
()
const
;
QItemSelectionModel
*
mSelectionModel
=
nullptr
;
QItemSelectionModel
*
const
mSelectionModel
;
QLabel
*
mMessageLabel
=
nullptr
;
QLabel
*
mMessageLabel
=
nullptr
;
QRadioButton
*
mAllContactsButton
=
nullptr
;
QRadioButton
*
mAllContactsButton
=
nullptr
;
...
...
kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp
View file @
11e39942
...
@@ -10,7 +10,6 @@ using namespace KAddressBookImportExport;
...
@@ -10,7 +10,6 @@ using namespace KAddressBookImportExport;
KAddressBookImportExportPluginInterface
::
KAddressBookImportExportPluginInterface
(
QObject
*
parent
)
KAddressBookImportExportPluginInterface
::
KAddressBookImportExportPluginInterface
(
QObject
*
parent
)
:
PimCommon
::
AbstractGenericPluginInterface
(
parent
)
:
PimCommon
::
AbstractGenericPluginInterface
(
parent
)
,
mImportExportAction
(
Import
)
{
{
}
}
...
...
kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
View file @
11e39942
...
@@ -53,7 +53,7 @@ public:
...
@@ -53,7 +53,7 @@ public:
protected:
protected:
QList
<
QAction
*>
mImportActions
;
QList
<
QAction
*>
mImportActions
;
QList
<
QAction
*>
mExportActions
;
QList
<
QAction
*>
mExportActions
;
ImportExportAction
mImportExportAction
;
ImportExportAction
mImportExportAction
=
Import
;
Akonadi
::
Collection
mDefaultCollection
;
Akonadi
::
Collection
mDefaultCollection
;
QItemSelectionModel
*
mItemSelectionModel
=
nullptr
;
QItemSelectionModel
*
mItemSelectionModel
=
nullptr
;
};
};
...
...
kaddressbookimportexport/src/kaddressbookimportexportpluginmanager.cpp
View file @
11e39942
...
@@ -30,23 +30,17 @@ public:
...
@@ -30,23 +30,17 @@ public:
delete
pluginManager
;
delete
pluginManager
;
}
}
KAddressBookImportExportPluginManager
*
pluginManager
=
nullpt
r
;
KAddressBookImportExportPluginManager
*
const
pluginManage
r
;
};
};
class
KAddressBookImportExportInfo
class
KAddressBookImportExportInfo
{
{
public:
public:
KAddressBookImportExportInfo
()
:
plugin
(
nullptr
)
,
isEnabled
(
true
)
{
}
QString
metaDataFileNameBaseName
;
QString
metaDataFileNameBaseName
;
QString
metaDataFileName
;
QString
metaDataFileName
;
PimCommon
::
PluginUtilData
pluginData
;
PimCommon
::
PluginUtilData
pluginData
;
KAddressBookImportExportPlugin
*
plugin
=
nullptr
;
KAddressBookImportExportPlugin
*
plugin
=
nullptr
;
bool
isEnabled
;
bool
isEnabled
=
true
;
};
};
Q_GLOBAL_STATIC
(
KAddressBookImportExportPluginManagerPrivate
,
sInstance
)
Q_GLOBAL_STATIC
(
KAddressBookImportExportPluginManagerPrivate
,
sInstance
)
...
...
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