bump product version to 6.3.0.0.beta1
[LibreOffice.git] / sd / source / ui / remotecontrol / DiscoveryService.hxx
blobc1dc6e208ab38391b1c3d20ef49835e0f3212f28
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9 #ifndef INCLUDED_SD_SOURCE_UI_REMOTECONTROL_DISCOVERYSERVICE_HXX
10 #define INCLUDED_SD_SOURCE_UI_REMOTECONTROL_DISCOVERYSERVICE_HXX
12 #include <osl/thread.hxx>
14 namespace sd { class ZeroconfService; }
16 namespace sd
18 class DiscoveryService : public osl::Thread
20 public:
21 static void setup();
23 private:
24 DiscoveryService();
25 virtual ~DiscoveryService() override;
27 /**
28 * Networking related setup -- must be run within our own thread
29 * to prevent the application blocking (fdo#75328).
31 void setupSockets();
33 static DiscoveryService *spService;
34 virtual void SAL_CALL run() override;
35 int mSocket;
37 ZeroconfService * zService;
41 #endif // INCLUDED_SD_SOURCE_UI_REMOTECONTROL_DISCOVERYSERVICE_HXX
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */