summaryrefslogtreecommitdiffstats
path: root/src/core/profile_qt.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2022-12-15 15:21:25 +0100
committerMichal Klocek <michal.klocek@qt.io>2022-12-22 14:30:46 +0100
commit4bedbe65c8af21e29e3ed274334ce1d32c8f9279 (patch)
tree5fd643be4d32856ee6c5f6d3c03d80c87c45f82f /src/core/profile_qt.cpp
parent3172695838372b54c2a488975578eaedaf094e80 (diff)
Remove setPushServiceEndpoint from API
Use setPushServiceEnabled instead. Update also getter and documentation. Task-number: QTBUG-107442 Pick-to: 6.5 Change-Id: I299ce88b06edef0f1a0088fb10f4a142056039be Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/profile_qt.cpp')
-rw-r--r--src/core/profile_qt.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/profile_qt.cpp b/src/core/profile_qt.cpp
index b1db2a2ce..410340fb8 100644
--- a/src/core/profile_qt.cpp
+++ b/src/core/profile_qt.cpp
@@ -159,14 +159,9 @@ storage::SpecialStoragePolicy *ProfileQt::GetSpecialStoragePolicy()
return nullptr;
}
-std::string ProfileQt::GetPushMessagingEndpoint() const
-{
- return m_profileAdapter->pushServiceEndpoint().toString().toStdString();
-}
-
content::PushMessagingService *ProfileQt::GetPushMessagingService()
{
- if (!m_profileAdapter->pushServiceEndpoint().isEmpty())
+ if (m_profileAdapter->pushServiceEnabled())
return PushMessagingServiceFactory::GetForProfile(this);
else
return nullptr;