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
Network
KAccounts Providers
Commits
befbe3d6
Unverified
Commit
befbe3d6
authored
Jun 28, 2021
by
Thomas Greenwood
Browse files
Fix formatting using clang-format
parent
44d9b91d
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/nextcloud-ui/nextcloudcontroller.cpp
View file @
befbe3d6
...
...
@@ -101,15 +101,15 @@ void NextcloudController::wrongUrlDetected()
// Open Webview for nextcloud login.
void
NextcloudController
::
finalUrlHandler
(
const
QUrl
&
url
)
{
{
// url is of the form: nc://login/server:<server>&user:<loginname>&password:<password>
QUrlQuery
urlQuery
;
urlQuery
.
setQueryDelimiters
(
QLatin1Char
(
':'
),
QLatin1Char
(
'&'
));
urlQuery
.
setQueryDelimiters
(
QLatin1Char
(
':'
),
QLatin1Char
(
'&'
));
urlQuery
.
setQuery
(
url
.
path
(
QUrl
::
FullyEncoded
).
mid
(
1
));
m_username
=
urlQuery
.
queryItemValue
(
QStringLiteral
(
"user"
),
QUrl
::
FullyDecoded
);
m_password
=
urlQuery
.
queryItemValue
(
QStringLiteral
(
"password"
),
QUrl
::
FullyDecoded
);
m_username
=
urlQuery
.
queryItemValue
(
QStringLiteral
(
"user"
),
QUrl
::
FullyDecoded
);
m_password
=
urlQuery
.
queryItemValue
(
QStringLiteral
(
"password"
),
QUrl
::
FullyDecoded
);
serverCheckResult
();
}
...
...
@@ -196,10 +196,10 @@ void NextcloudController::finish(const QStringList disabledServices)
data
.
insert
(
QStringLiteral
(
"server"
),
m_server
);
QUrl
serverUrl
(
m_server
);
QUrl
carddavUrl
(
serverUrl
.
adjusted
(
QUrl
::
StripTrailingSlash
));
carddavUrl
.
setPath
(
carddavUrl
.
path
()
+
QStringLiteral
(
"/remote.php/carddav/addressbooks/%1"
).
arg
(
m_username
));
QUrl
webdavUrl
(
serverUrl
.
adjusted
(
QUrl
::
StripTrailingSlash
));
webdavUrl
.
setPath
(
webdavUrl
.
path
()
+
QStringLiteral
(
"/remote.php/dav/files/%1"
).
arg
(
m_username
));
...
...
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