09e62f5
--- ownCloud-2.9.0.5150.unchanged/src/gui/CMakeLists.txt	2021-09-08 16:45:51.000000000 +0200
09e62f5
+++ ownCloud-2.9.0.5150/src/gui/CMakeLists.txt	2021-09-24 14:10:14.388796420 +0200
09e62f5
@@ -102,18 +102,8 @@ set(client_SRCS
ca2c66a
 
ee833df
 set(3rdparty_SRC
ee833df
     ../3rdparty/QProgressIndicator/QProgressIndicator.cpp
ee833df
-    ../3rdparty/qtlockedfile/qtlockedfile.cpp
ee833df
-    ../3rdparty/qtsingleapplication/qtlocalpeer.cpp
ee833df
-    ../3rdparty/qtsingleapplication/qtsingleapplication.cpp
ee833df
-    ../3rdparty/qtsingleapplication/qtsinglecoreapplication.cpp
ee833df
    )
ca2c66a
 
ee833df
-if(NOT WIN32)
ee833df
-   list(APPEND 3rdparty_SRC ../3rdparty/qtlockedfile/qtlockedfile_unix.cpp)
ee833df
-else()
ee833df
-   list(APPEND 3rdparty_SRC ../3rdparty/qtlockedfile/qtlockedfile_win.cpp )
ee833df
-endif()
ee833df
-
ee833df
 set( final_src
ee833df
     ${MIRALL_RC_SRC}
ee833df
     ${client_SRCS}
09e62f5
@@ -128,14 +118,12 @@ endif()
09e62f5
 add_library(owncloudCore STATIC ${final_src})
ee833df
 set_target_properties(owncloudCore PROPERTIES AUTOUIC ON AUTORCC ON)
ee833df
 target_link_libraries(owncloudCore PUBLIC Qt5::Widgets Qt5::Network Qt5::Xml
09e62f5
-                                          libsync)
09e62f5
+                                          libsync Qt5Solutions_LockedFile-2.4 Qt5Solutions_SingleApplication-2.6)
09e62f5
 
09e62f5
 add_subdirectory(socketapi)
bf4fe48
 
ee833df
 target_include_directories(owncloudCore PUBLIC
ee833df
     ${CMAKE_SOURCE_DIR}/src/3rdparty/QProgressIndicator
ee833df
-    ${CMAKE_SOURCE_DIR}/src/3rdparty/qtlockedfile
ee833df
-    ${CMAKE_SOURCE_DIR}/src/3rdparty/qtsingleapplication
ee833df
     ${CMAKE_CURRENT_BINARY_DIR}
ee833df
 )
bf4fe48
 
09e62f5
--- ownCloud-2.9.0.5150.unchanged/src/gui/application.cpp	2021-09-08 16:45:51.000000000 +0200
09e62f5
+++ ownCloud-2.9.0.5150/src/gui/application.cpp	2021-09-24 14:18:52.528770199 +0200
09e62f5
@@ -211,7 +211,7 @@ ownCloudGui *Application::gui() const
ca2c66a
 }
bf4fe48
 
bf4fe48
 Application::Application(int &argc, char **argv)
bf4fe48
-    : SharedTools::QtSingleApplication(Theme::instance()->appName(), argc, argv)
96ee18d
+    : QtSingleApplication(Theme::instance()->appName(), argc, argv)
ee833df
     , _gui(nullptr)
bf4fe48
     , _theme(Theme::instance())
09e62f5
     , _logExpire(0)
09e62f5
@@ -291,7 +291,7 @@ Application::Application(int &argc, char
96ee18d
 
96ee18d
     _folderManager.reset(new FolderMan);
96ee18d
 
96ee18d
-    connect(this, &SharedTools::QtSingleApplication::messageReceived, this, &Application::slotParseMessage);
96ee18d
+    connect(this, &QtSingleApplication::messageReceived, this, &Application::slotParseMessage);
96ee18d
 
96ee18d
     if (!AccountManager::instance()->restore()) {
96ee18d
         // If there is an error reading the account settings, try again
09e62f5
@@ -533,7 +533,7 @@ void Application::slotUseMonoIconsChange
96ee18d
     _gui->slotComputeOverallSyncStatus();
96ee18d
 }
96ee18d
 
96ee18d
-void Application::slotParseMessage(const QString &msg, QObject *)
96ee18d
+void Application::slotParseMessage(const QString &msg)
96ee18d
 {
96ee18d
     if (msg.startsWith(QLatin1String("MSG_PARSEOPTIONS:"))) {
96ee18d
         const int lengthOfMsgPrefix = 17;
09e62f5
@@ -813,7 +813,7 @@ bool Application::event(QEvent *event)
ee833df
         QTimer::singleShot(0, this, [this, fn] { openVirtualFile(fn); });
ee833df
     }
ee833df
 #endif
ee833df
-    return SharedTools::QtSingleApplication::event(event);
ee833df
+    return QtSingleApplication::event(event);
ee833df
 }
ee833df
 
ee833df
 } // namespace OCC
09e62f5
--- ownCloud-2.9.0.5150.unchanged/src/gui/application.h	2021-09-08 16:45:51.000000000 +0200
09e62f5
+++ ownCloud-2.9.0.5150/src/gui/application.h	2021-09-24 14:21:45.241593261 +0200
09e62f5
@@ -20,8 +20,7 @@
09e62f5
 #include <QQueue>
ee833df
 #include <QTimer>
ee833df
 #include <QNetworkConfigurationManager>
ee833df
-
ee833df
-#include "3rdparty/qtsingleapplication/qtsingleapplication.h"
ee833df
+#include <QtSolutions/qtsingleapplication.h>
ee833df
 
ee833df
 #include "syncresult.h"
ee833df
 #include "logbrowser.h"
09e62f5
@@ -51,7 +50,7 @@ class SslErrorDialog;
bf4fe48
  * @brief The Application class
bf4fe48
  * @ingroup gui
bf4fe48
  */
bf4fe48
-class Application : public SharedTools::QtSingleApplication
bf4fe48
+class Application : public QtSingleApplication
bf4fe48
 {
bf4fe48
     Q_OBJECT
bf4fe48
 public:
09e62f5
@@ -93,7 +92,7 @@ signals:
96ee18d
     void folderStateChanged(Folder *);
96ee18d
 
96ee18d
 protected slots:
96ee18d
-    void slotParseMessage(const QString &, QObject *);
96ee18d
+    void slotParseMessage(const QString &);
96ee18d
     void slotCheckConnection();
96ee18d
     void slotUseMonoIconsChanged(bool);
96ee18d
     void slotCleanup();