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
KLDAP
Commits
28a37e94
Commit
28a37e94
authored
Dec 04, 2020
by
Laurent Montel
😁
Browse files
Return default attributes
parent
714842bf
Pipeline
#42970
passed with stage
in 9 minutes and 18 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
28a37e94
cmake_minimum_required
(
VERSION 3.5
)
set
(
PIM_VERSION
"5.16.4
3
"
)
set
(
PIM_VERSION
"5.16.4
4
"
)
project
(
KLdap VERSION
${
PIM_VERSION
}
)
...
...
src/widgets/ldapclientsearch.cpp
View file @
28a37e94
...
...
@@ -73,11 +73,7 @@ LdapClientSearch::LdapClientSearch(QObject *parent)
:
QObject
(
parent
)
,
d
(
new
Private
(
this
))
{
const
QStringList
attr
{
QStringLiteral
(
"cn"
)
,
QStringLiteral
(
"mail"
)
,
QStringLiteral
(
"givenname"
)
,
QStringLiteral
(
"sn"
)};
d
->
init
(
attr
);
d
->
init
(
LdapClientSearch
::
defaultAttributes
());
}
LdapClientSearch
::
LdapClientSearch
(
const
QStringList
&
attr
,
QObject
*
parent
)
...
...
@@ -159,6 +155,15 @@ void LdapClientSearch::setAttributes(const QStringList &attrs)
}
}
QStringList
LdapClientSearch
::
defaultAttributes
()
{
const
QStringList
attr
{
QStringLiteral
(
"cn"
)
,
QStringLiteral
(
"mail"
)
,
QStringLiteral
(
"givenname"
)
,
QStringLiteral
(
"sn"
)};
return
attr
;
}
void
LdapClientSearch
::
Private
::
readConfig
()
{
q
->
cancelSearch
();
...
...
src/widgets/ldapclientsearch.h
View file @
28a37e94
...
...
@@ -131,6 +131,8 @@ public:
*/
void
setAttributes
(
const
QStringList
&
);
static
Q_REQUIRED_RESULT
QStringList
defaultAttributes
();
Q_SIGNALS:
/**
* This signal is emitted whenever new contacts have been found
...
...
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