From e064a2e485a72e5baf8b7a1c9991eb4df4bd1254 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 7 Sep 2012 22:51:42 -0500 Subject: Add loadConnectionAllowedValues method to global network manager --- tdecore/tdenetworkconnections.cpp | 5 +++++ tdecore/tdenetworkconnections.h | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/tdecore/tdenetworkconnections.cpp b/tdecore/tdenetworkconnections.cpp index 11874205f..ad4d73b78 100644 --- a/tdecore/tdenetworkconnections.cpp +++ b/tdecore/tdenetworkconnections.cpp @@ -828,6 +828,11 @@ void TDEGlobalNetworkManager::loadConnectionInformation() { return m_internalConnectionManager->loadConnectionInformation(); } +void TDEGlobalNetworkManager::loadConnectionAllowedValues(TDENetworkConnection* connection) { + if (!m_internalConnectionManager) return; + return m_internalConnectionManager->loadConnectionAllowedValues(connection); +} + bool TDEGlobalNetworkManager::loadConnectionSecrets(TQString uuid) { if (!m_internalConnectionManager) return false; return m_internalConnectionManager->loadConnectionSecrets(uuid); diff --git a/tdecore/tdenetworkconnections.h b/tdecore/tdenetworkconnections.h index 7f8052e6b..93bab1d73 100644 --- a/tdecore/tdenetworkconnections.h +++ b/tdecore/tdenetworkconnections.h @@ -1192,6 +1192,14 @@ class TDECORE_EXPORT TDEGlobalNetworkManager : public TQObject */ virtual void loadConnectionInformation(); + /** + * @param connection a pointer to a TDENetworkConnection object containing a + * connection in which to load the values allowed by the backend. + * This is normally called as part of loadConnectionInformation(), but should + * manually be called immediately after creation of a new TDENetworkConnection object. + */ + virtual void loadConnectionAllowedValues(TDENetworkConnection* connection); + /** * @param uuid a TQString conntaining the UUID of a connection for which to * load secrets from the configuration backend. -- cgit v1.2.1