From 2e67f95017d33eac71a072a8133ddf2c0c629097 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Wed, 26 Jul 2023 10:15:11 +0200 Subject: [PATCH] Add explicit moc includes to cpp files The rationale is explained in https://planet.kde.org/friedrich-kossebau-2023-06-28-include-also-moc-files-of-headers/ In case of KDEConnect, it impressively speeds up compilation. Before it took 390 seconds on a clean build and with this change it took 330 seconds. This is due to the mocs_compilation having to include the header files and thus all their headers. Due to the lots of small plugins we have, this means that the same headers must be compiled plenty of times. When we include the moc files directly in the C++ file, they are already available. --- core/backends/bluetooth/bluetoothdevicelink.cpp | 2 ++ core/backends/bluetooth/bluetoothdownloadjob.cpp | 2 ++ core/backends/bluetooth/bluetoothlinkprovider.cpp | 2 ++ core/backends/bluetooth/bluetoothuploadjob.cpp | 2 ++ core/backends/bluetooth/connectionmultiplexer.cpp | 2 ++ core/backends/bluetooth/multiplexchannel.cpp | 2 ++ core/backends/bluetooth/multiplexchannelstate.cpp | 2 ++ core/backends/devicelink.cpp | 2 ++ core/backends/lan/compositeuploadjob.cpp | 2 ++ core/backends/lan/landevicelink.cpp | 2 ++ core/backends/lan/lanlinkprovider.cpp | 2 ++ core/backends/lan/mdnsdiscovery.cpp | 2 ++ core/backends/lan/server.cpp | 2 ++ core/backends/lan/uploadjob.cpp | 2 ++ core/backends/linkprovider.cpp | 2 ++ core/backends/loopback/loopbackdevicelink.cpp | 2 ++ core/backends/loopback/loopbacklinkprovider.cpp | 2 ++ core/backends/pairinghandler.cpp | 2 ++ core/compositefiletransferjob.cpp | 2 ++ core/daemon.cpp | 2 ++ core/device.cpp | 2 ++ core/filetransferjob.cpp | 2 ++ core/kdeconnectplugin.cpp | 2 ++ core/kdeconnectpluginconfig.cpp | 2 ++ core/networkpacket.cpp | 2 ++ core/notificationserverinfo.cpp | 2 ++ core/openconfig.cpp | 2 ++ declarativeplugin/kdeconnectdeclarativeplugin.cpp | 2 ++ declarativeplugin/objectfactory.cpp | 2 ++ declarativeplugin/pointerlocker.cpp | 2 ++ declarativeplugin/pointerlockerwayland.cpp | 1 + declarativeplugin/responsewaiter.cpp | 2 ++ fileitemactionplugin/sendfileitemaction.cpp | 1 + indicator/deviceindicator.cpp | 2 ++ indicator/systray_actions/battery_action.cpp | 2 ++ indicator/systray_actions/connectivity_action.cpp | 2 ++ interfaces/commandsmodel.cpp | 2 ++ interfaces/dbusinterfaces.cpp | 2 ++ interfaces/devicesmodel.cpp | 2 ++ interfaces/devicespluginfilterproxymodel.cpp | 2 ++ interfaces/devicessortproxymodel.cpp | 2 ++ interfaces/notificationsmodel.cpp | 2 ++ interfaces/pluginmodel.cpp | 2 ++ interfaces/remotecommandsmodel.cpp | 2 ++ interfaces/remotesinksmodel.cpp | 2 ++ kcmplugin/kdeconnectpluginkcm.cpp | 2 ++ kio/kiokdeconnect.cpp | 2 +- plugins/battery/batteryplugin.cpp | 1 + plugins/bigscreen/bigscreenplugin.cpp | 1 + plugins/clipboard/clipboard_config.cpp | 1 + plugins/clipboard/clipboardlistener.cpp | 2 ++ plugins/clipboard/clipboardplugin.cpp | 1 + plugins/connectivity-report/connectivity_reportplugin.cpp | 1 + plugins/contacts/contactsplugin.cpp | 1 + plugins/findmyphone/findmyphoneplugin.cpp | 1 + plugins/findthisdevice/findthisdevice_config.cpp | 1 + plugins/findthisdevice/findthisdeviceplugin.cpp | 1 + plugins/lockdevice/lockdeviceplugin-win.cpp | 1 + plugins/lockdevice/lockdeviceplugin.cpp | 1 + plugins/mmtelephony/mmtelephonyplugin.cpp | 1 + plugins/mousepad/abstractremoteinput.cpp | 2 ++ plugins/mousepad/macosremoteinput.mm | 2 ++ plugins/mousepad/mousepadplugin.cpp | 1 + plugins/mousepad/waylandremoteinput.cpp | 2 ++ plugins/mousepad/windowsremoteinput.cpp | 2 ++ plugins/mousepad/x11remoteinput.cpp | 2 ++ plugins/mpriscontrol/mpriscontrolplugin-win.cpp | 1 + plugins/mpriscontrol/mpriscontrolplugin.cpp | 1 + plugins/mprisremote/mprisremoteplayer.cpp | 2 ++ plugins/mprisremote/mprisremoteplayermediaplayer2.cpp | 2 ++ plugins/mprisremote/mprisremoteplayermediaplayer2player.cpp | 2 ++ plugins/mprisremote/mprisremoteplugin.cpp | 1 + plugins/notifications/notification.cpp | 2 ++ plugins/notifications/notificationsplugin.cpp | 1 + plugins/notifications/sendreplydialog.cpp | 2 ++ plugins/pausemusic/pausemusic_config.cpp | 1 + plugins/pausemusic/pausemusicplugin-win.cpp | 1 + plugins/pausemusic/pausemusicplugin.cpp | 1 + plugins/photo/photoplugin.cpp | 1 + plugins/ping/pingplugin.cpp | 1 + plugins/presenter/presenterplugin.cpp | 1 + plugins/remotecommands/remotecommandsplugin.cpp | 1 + plugins/remotecontrol/remotecontrolplugin.cpp | 1 + plugins/remotekeyboard/remotekeyboardplugin.cpp | 1 + plugins/remotesystemvolume/remotesystemvolumeplugin.cpp | 1 + plugins/runcommand/runcommand_config.cpp | 1 + plugins/runcommand/runcommandplugin.cpp | 1 + plugins/screensaver-inhibit/screensaverinhibitplugin-macos.cpp | 1 + plugins/screensaver-inhibit/screensaverinhibitplugin-win.cpp | 1 + plugins/screensaver-inhibit/screensaverinhibitplugin.cpp | 1 + plugins/sendnotifications/notificationslistener.cpp | 2 ++ plugins/sendnotifications/notifyingapplicationmodel.cpp | 2 ++ plugins/sendnotifications/sendnotifications_config.cpp | 1 + plugins/sendnotifications/sendnotificationsplugin.cpp | 1 + plugins/sftp/mounter.cpp | 2 ++ plugins/sftp/mountloop.cpp | 2 ++ plugins/sftp/sftpplugin-win.cpp | 1 + plugins/sftp/sftpplugin.cpp | 1 + plugins/share/share_config.cpp | 1 + plugins/share/shareplugin.cpp | 1 + plugins/sms/conversationsdbusinterface.cpp | 2 ++ plugins/sms/requestconversationworker.cpp | 2 ++ plugins/sms/smsplugin.cpp | 1 + plugins/systemvolume/systemvolumeplugin-macos.cpp | 1 + plugins/systemvolume/systemvolumeplugin-pulse.cpp | 1 + plugins/systemvolume/systemvolumeplugin-win.cpp | 1 + plugins/telephony/telephonyplugin.cpp | 1 + plugins/virtualmonitor/virtualmonitorplugin.cpp | 1 + smsapp/attachmentinfo.cpp | 2 ++ smsapp/conversationlistmodel.cpp | 2 ++ smsapp/conversationmodel.cpp | 2 ++ smsapp/conversationssortfilterproxymodel.cpp | 2 ++ smsapp/smshelper.cpp | 2 ++ tests/testdevice.cpp | 2 ++ 114 files changed, 181 insertions(+), 1 deletion(-) diff --git a/core/backends/bluetooth/bluetoothdevicelink.cpp b/core/backends/bluetooth/bluetoothdevicelink.cpp index 95d717521..fd65a2368 100644 --- a/core/backends/bluetooth/bluetoothdevicelink.cpp +++ b/core/backends/bluetooth/bluetoothdevicelink.cpp @@ -64,3 +64,5 @@ void BluetoothDeviceLink::dataReceived() Q_EMIT receivedPacket(packet); } } + +#include "moc_bluetoothdevicelink.cpp" diff --git a/core/backends/bluetooth/bluetoothdownloadjob.cpp b/core/backends/bluetooth/bluetoothdownloadjob.cpp index 2b9cc4653..0d4a1c6cc 100644 --- a/core/backends/bluetooth/bluetoothdownloadjob.cpp +++ b/core/backends/bluetooth/bluetoothdownloadjob.cpp @@ -23,3 +23,5 @@ QSharedPointer BluetoothDownloadJob::payload() const void BluetoothDownloadJob::start() { } + +#include "moc_bluetoothdownloadjob.cpp" diff --git a/core/backends/bluetooth/bluetoothlinkprovider.cpp b/core/backends/bluetooth/bluetoothlinkprovider.cpp index 8497919c6..06b8a6f68 100644 --- a/core/backends/bluetooth/bluetoothlinkprovider.cpp +++ b/core/backends/bluetooth/bluetoothlinkprovider.cpp @@ -304,3 +304,5 @@ void BluetoothLinkProvider::socketDisconnected(const QBluetoothAddress &peer, Mu BluetoothLinkProvider::~BluetoothLinkProvider() { } + +#include "moc_bluetoothlinkprovider.cpp" diff --git a/core/backends/bluetooth/bluetoothuploadjob.cpp b/core/backends/bluetooth/bluetoothuploadjob.cpp index aa6fc68b2..9012ad243 100644 --- a/core/backends/bluetooth/bluetoothuploadjob.cpp +++ b/core/backends/bluetooth/bluetoothuploadjob.cpp @@ -64,3 +64,5 @@ void BluetoothUploadJob::closeConnection() mData->close(); deleteLater(); } + +#include "moc_bluetoothuploadjob.cpp" diff --git a/core/backends/bluetooth/connectionmultiplexer.cpp b/core/backends/bluetooth/connectionmultiplexer.cpp index 4f7ccedb9..759f54cc4 100644 --- a/core/backends/bluetooth/connectionmultiplexer.cpp +++ b/core/backends/bluetooth/connectionmultiplexer.cpp @@ -452,3 +452,5 @@ void ConnectionMultiplexer::removeChannel(QBluetoothUuid channelId) Q_EMIT channel->disconnected(); } + +#include "moc_connectionmultiplexer.cpp" diff --git a/core/backends/bluetooth/multiplexchannel.cpp b/core/backends/bluetooth/multiplexchannel.cpp index acded8992..e5195181c 100644 --- a/core/backends/bluetooth/multiplexchannel.cpp +++ b/core/backends/bluetooth/multiplexchannel.cpp @@ -99,3 +99,5 @@ bool MultiplexChannel::isSequential() const { return true; } + +#include "moc_multiplexchannel.cpp" diff --git a/core/backends/bluetooth/multiplexchannelstate.cpp b/core/backends/bluetooth/multiplexchannelstate.cpp index 5151f6a96..8bd3be023 100644 --- a/core/backends/bluetooth/multiplexchannelstate.cpp +++ b/core/backends/bluetooth/multiplexchannelstate.cpp @@ -13,3 +13,5 @@ MultiplexChannelState::MultiplexChannelState() , close_after_write{false} { } + +#include "moc_multiplexchannelstate.cpp" diff --git a/core/backends/devicelink.cpp b/core/backends/devicelink.cpp index 31245b17c..7fa5b2571 100644 --- a/core/backends/devicelink.cpp +++ b/core/backends/devicelink.cpp @@ -15,3 +15,5 @@ DeviceLink::DeviceLink(const QString &deviceId, LinkProvider *parent) parent->onLinkDestroyed(deviceId, this); }); } + +#include "moc_devicelink.cpp" diff --git a/core/backends/lan/compositeuploadjob.cpp b/core/backends/lan/compositeuploadjob.cpp index c501f4166..76311688d 100644 --- a/core/backends/lan/compositeuploadjob.cpp +++ b/core/backends/lan/compositeuploadjob.cpp @@ -289,3 +289,5 @@ void CompositeUploadJob::emitDescription(const QString ¤tFileName) setProcessedAmount(Files, m_currentJobNum); setTotalAmount(Files, m_totalJobs); } + +#include "moc_compositeuploadjob.cpp" diff --git a/core/backends/lan/landevicelink.cpp b/core/backends/lan/landevicelink.cpp index fe45f71cd..9da1901b1 100644 --- a/core/backends/lan/landevicelink.cpp +++ b/core/backends/lan/landevicelink.cpp @@ -113,3 +113,5 @@ void LanDeviceLink::dataReceived() Q_EMIT receivedPacket(packet); } } + +#include "moc_landevicelink.cpp" diff --git a/core/backends/lan/lanlinkprovider.cpp b/core/backends/lan/lanlinkprovider.cpp index 5ce46beb2..88c7a248b 100644 --- a/core/backends/lan/lanlinkprovider.cpp +++ b/core/backends/lan/lanlinkprovider.cpp @@ -626,3 +626,5 @@ void LanLinkProvider::addLink(QSslSocket *socket, const DeviceInfo &deviceInfo) } Q_EMIT onConnectionReceived(deviceLink); } + +#include "moc_lanlinkprovider.cpp" diff --git a/core/backends/lan/mdnsdiscovery.cpp b/core/backends/lan/mdnsdiscovery.cpp index cefddb5e1..500895ce7 100644 --- a/core/backends/lan/mdnsdiscovery.cpp +++ b/core/backends/lan/mdnsdiscovery.cpp @@ -118,3 +118,5 @@ void MdnsDiscovery::stopDiscovering() m_serviceBrowser = nullptr; } } + +#include "moc_mdnsdiscovery.cpp" diff --git a/core/backends/lan/server.cpp b/core/backends/lan/server.cpp index 0b3c52bde..21de2dd0b 100644 --- a/core/backends/lan/server.cpp +++ b/core/backends/lan/server.cpp @@ -46,3 +46,5 @@ void Server::close() QTcpServer::close(); Q_EMIT closed(); } + +#include "moc_server.cpp" diff --git a/core/backends/lan/uploadjob.cpp b/core/backends/lan/uploadjob.cpp index e73aa844e..d3baf685a 100644 --- a/core/backends/lan/uploadjob.cpp +++ b/core/backends/lan/uploadjob.cpp @@ -93,3 +93,5 @@ const NetworkPacket UploadJob::getNetworkPacket() { return m_networkPacket; } + +#include "moc_uploadjob.cpp" diff --git a/core/backends/linkprovider.cpp b/core/backends/linkprovider.cpp index 5807f12a1..a430a8d24 100644 --- a/core/backends/linkprovider.cpp +++ b/core/backends/linkprovider.cpp @@ -35,3 +35,5 @@ void LinkProvider::suspend(bool suspend) onStart(); } } + +#include "moc_linkprovider.cpp" diff --git a/core/backends/loopback/loopbackdevicelink.cpp b/core/backends/loopback/loopbackdevicelink.cpp index 2a875f578..1c5d1138e 100644 --- a/core/backends/loopback/loopbackdevicelink.cpp +++ b/core/backends/loopback/loopbackdevicelink.cpp @@ -35,3 +35,5 @@ DeviceInfo LoopbackDeviceLink::deviceInfo() const { return KdeConnectConfig::instance().deviceInfo(); } + +#include "moc_loopbackdevicelink.cpp" diff --git a/core/backends/loopback/loopbacklinkprovider.cpp b/core/backends/loopback/loopbacklinkprovider.cpp index 83b383af7..15ed60614 100644 --- a/core/backends/loopback/loopbacklinkprovider.cpp +++ b/core/backends/loopback/loopbacklinkprovider.cpp @@ -39,3 +39,5 @@ void LoopbackLinkProvider::onStop() delete loopbackDeviceLink; } } + +#include "moc_loopbacklinkprovider.cpp" diff --git a/core/backends/pairinghandler.cpp b/core/backends/pairinghandler.cpp index b7d2e39db..7db1f177d 100644 --- a/core/backends/pairinghandler.cpp +++ b/core/backends/pairinghandler.cpp @@ -146,3 +146,5 @@ void PairingHandler::pairingDone() m_pairState = PairState::Paired; Q_EMIT pairingSuccessful(); } + +#include "moc_pairinghandler.cpp" diff --git a/core/compositefiletransferjob.cpp b/core/compositefiletransferjob.cpp index 51792dff0..64d440ae5 100644 --- a/core/compositefiletransferjob.cpp +++ b/core/compositefiletransferjob.cpp @@ -134,3 +134,5 @@ void CompositeFileTransferJob::slotResult(KJob *job) emitResult(); } } + +#include "moc_compositefiletransferjob.cpp" diff --git a/core/daemon.cpp b/core/daemon.cpp index 057b3da62..d90518675 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -281,3 +281,5 @@ QString Daemon::selfId() const { return KdeConnectConfig::instance().deviceId(); } + +#include "moc_daemon.cpp" diff --git a/core/device.cpp b/core/device.cpp index d1bba2eed..6d8644dac 100644 --- a/core/device.cpp +++ b/core/device.cpp @@ -485,3 +485,5 @@ QString Device::pluginIconName(const QString &pluginName) } return QString(); } + +#include "moc_device.cpp" diff --git a/core/filetransferjob.cpp b/core/filetransferjob.cpp index 9c00a9354..15ff14ec1 100644 --- a/core/filetransferjob.cpp +++ b/core/filetransferjob.cpp @@ -146,3 +146,5 @@ bool FileTransferJob::doKill() return true; } + +#include "moc_filetransferjob.cpp" diff --git a/core/kdeconnectplugin.cpp b/core/kdeconnectplugin.cpp index b02be221d..4fc7c1fb4 100644 --- a/core/kdeconnectplugin.cpp +++ b/core/kdeconnectplugin.cpp @@ -76,3 +76,5 @@ QString KdeConnectPlugin::iconName() const { return d->iconName; } + +#include "moc_kdeconnectplugin.cpp" diff --git a/core/kdeconnectpluginconfig.cpp b/core/kdeconnectpluginconfig.cpp index c8dbc71e8..76ee023f6 100644 --- a/core/kdeconnectpluginconfig.cpp +++ b/core/kdeconnectpluginconfig.cpp @@ -183,3 +183,5 @@ void KdeConnectPluginConfig::loadConfig() SLOT(slotConfigChanged())); Q_EMIT configChanged(); } + +#include "moc_kdeconnectpluginconfig.cpp" diff --git a/core/networkpacket.cpp b/core/networkpacket.cpp index 12ed62a58..52f826169 100644 --- a/core/networkpacket.cpp +++ b/core/networkpacket.cpp @@ -116,3 +116,5 @@ FileTransferJob *NetworkPacket::createPayloadTransferJob(const QUrl &destination { return new FileTransferJob(this, destination); } + +#include "moc_networkpacket.cpp" diff --git a/core/notificationserverinfo.cpp b/core/notificationserverinfo.cpp index 029ad3c5e..88b9af664 100644 --- a/core/notificationserverinfo.cpp +++ b/core/notificationserverinfo.cpp @@ -51,3 +51,5 @@ NotificationServerInfo::Hints NotificationServerInfo::supportedHints() { return m_supportedHints; } + +#include "moc_notificationserverinfo.cpp" diff --git a/core/openconfig.cpp b/core/openconfig.cpp index bc5951347..496f5f5db 100644 --- a/core/openconfig.cpp +++ b/core/openconfig.cpp @@ -39,3 +39,5 @@ void OpenConfig::openConfiguration(const QString &deviceId, const QString &plugi m_currentToken = QString(); } + +#include "moc_openconfig.cpp" diff --git a/declarativeplugin/kdeconnectdeclarativeplugin.cpp b/declarativeplugin/kdeconnectdeclarativeplugin.cpp index fc0886966..e975f6526 100644 --- a/declarativeplugin/kdeconnectdeclarativeplugin.cpp +++ b/declarativeplugin/kdeconnectdeclarativeplugin.cpp @@ -131,3 +131,5 @@ void KdeConnectDeclarativePlugin::initializeEngine(QQmlEngine *engine, const cha engine->rootContext()->setContextProperty(QStringLiteral("DBusResponseWaiter"), DBusResponseWaiter::instance()); } + +#include "moc_kdeconnectdeclarativeplugin.cpp" diff --git a/declarativeplugin/objectfactory.cpp b/declarativeplugin/objectfactory.cpp index 0e0bd68cb..05e0af002 100644 --- a/declarativeplugin/objectfactory.cpp +++ b/declarativeplugin/objectfactory.cpp @@ -26,3 +26,5 @@ QObject *ObjectFactory::create(const QVariant &arg1, const QVariant &arg2) return m_f2(arg1, arg2); return nullptr; } + +#include "moc_objectfactory.cpp" diff --git a/declarativeplugin/pointerlocker.cpp b/declarativeplugin/pointerlocker.cpp index 0deee02e3..b30a70de3 100644 --- a/declarativeplugin/pointerlocker.cpp +++ b/declarativeplugin/pointerlocker.cpp @@ -71,3 +71,5 @@ bool PointerLockerQt::eventFilter(QObject *watched, QEvent *event) return true; } + +#include "moc_pointerlocker.cpp" diff --git a/declarativeplugin/pointerlockerwayland.cpp b/declarativeplugin/pointerlockerwayland.cpp index ed3c81fb9..1e169e676 100644 --- a/declarativeplugin/pointerlockerwayland.cpp +++ b/declarativeplugin/pointerlockerwayland.cpp @@ -211,4 +211,5 @@ void PointerLockerWayland::setWindow(QWindow *window) } } +#include "moc_pointerlockerwayland.cpp" #include "pointerlockerwayland.moc" diff --git a/declarativeplugin/responsewaiter.cpp b/declarativeplugin/responsewaiter.cpp index d8a223d73..87750c53a 100644 --- a/declarativeplugin/responsewaiter.cpp +++ b/declarativeplugin/responsewaiter.cpp @@ -114,3 +114,5 @@ const QDBusPendingCall *DBusResponseWaiter::extractPendingCall(QVariant &variant return nullptr; } + +#include "moc_responsewaiter.cpp" diff --git a/fileitemactionplugin/sendfileitemaction.cpp b/fileitemactionplugin/sendfileitemaction.cpp index a6a86dae7..13ac8f2d5 100644 --- a/fileitemactionplugin/sendfileitemaction.cpp +++ b/fileitemactionplugin/sendfileitemaction.cpp @@ -88,4 +88,5 @@ void SendFileItemAction::sendFile() } } +#include "moc_sendfileitemaction.cpp" #include "sendfileitemaction.moc" diff --git a/indicator/deviceindicator.cpp b/indicator/deviceindicator.cpp index 1e1e6ca55..412181e92 100644 --- a/indicator/deviceindicator.cpp +++ b/indicator/deviceindicator.cpp @@ -162,3 +162,5 @@ DeviceIndicator::DeviceIndicator(DeviceDbusInterface *device) }, this); } + +#include "moc_deviceindicator.cpp" diff --git a/indicator/systray_actions/battery_action.cpp b/indicator/systray_actions/battery_action.cpp index e86cd2731..070568661 100644 --- a/indicator/systray_actions/battery_action.cpp +++ b/indicator/systray_actions/battery_action.cpp @@ -59,3 +59,5 @@ void BatteryAction::setCharging(bool charging) m_charging = charging; update(); } + +#include "moc_battery_action.cpp" diff --git a/indicator/systray_actions/connectivity_action.cpp b/indicator/systray_actions/connectivity_action.cpp index 86176f323..7b03f0bb0 100644 --- a/indicator/systray_actions/connectivity_action.cpp +++ b/indicator/systray_actions/connectivity_action.cpp @@ -81,3 +81,5 @@ void ConnectivityAction::setCellularNetworkType(QString cellularNetworkType) m_cellularNetworkType = cellularNetworkType; update(); } + +#include "moc_connectivity_action.cpp" diff --git a/interfaces/commandsmodel.cpp b/interfaces/commandsmodel.cpp index 747b63b1a..721966001 100644 --- a/interfaces/commandsmodel.cpp +++ b/interfaces/commandsmodel.cpp @@ -135,3 +135,5 @@ void CommandsModel::addCommand(const QString &name, const QString &command) endInsertRows(); saveCommands(); } + +#include "moc_commandsmodel.cpp" diff --git a/interfaces/dbusinterfaces.cpp b/interfaces/dbusinterfaces.cpp index 3b0ff0c51..2b8fd6595 100644 --- a/interfaces/dbusinterfaces.cpp +++ b/interfaces/dbusinterfaces.cpp @@ -278,3 +278,5 @@ ClipboardDbusInterface::ClipboardDbusInterface(const QString &deviceId, QObject ClipboardDbusInterface::~ClipboardDbusInterface() { } + +#include "moc_dbusinterfaces.cpp" diff --git a/interfaces/devicesmodel.cpp b/interfaces/devicesmodel.cpp index 81ea59084..5caa78231 100644 --- a/interfaces/devicesmodel.cpp +++ b/interfaces/devicesmodel.cpp @@ -276,3 +276,5 @@ bool DevicesModel::passesFilter(DeviceDbusInterface *dev) const return !((onlyReachable && !dev->isReachable()) || (onlyPaired && !dev->isPaired())); } + +#include "moc_devicesmodel.cpp" diff --git a/interfaces/devicespluginfilterproxymodel.cpp b/interfaces/devicespluginfilterproxymodel.cpp index 7bd5278f0..4c0602d97 100644 --- a/interfaces/devicespluginfilterproxymodel.cpp +++ b/interfaces/devicespluginfilterproxymodel.cpp @@ -22,3 +22,5 @@ QString DevicesPluginFilterProxyModel::pluginFilter() const { return m_pluginFilter; } + +#include "moc_devicespluginfilterproxymodel.cpp" diff --git a/interfaces/devicessortproxymodel.cpp b/interfaces/devicessortproxymodel.cpp index 57f66a90d..171e2da23 100644 --- a/interfaces/devicessortproxymodel.cpp +++ b/interfaces/devicessortproxymodel.cpp @@ -44,3 +44,5 @@ bool DevicesSortProxyModel::filterAcceptsRow(int source_row, const QModelIndex & // Possible to-do: Implement filter return true; } + +#include "moc_devicessortproxymodel.cpp" diff --git a/interfaces/notificationsmodel.cpp b/interfaces/notificationsmodel.cpp index 6b9312dad..b74fead6f 100644 --- a/interfaces/notificationsmodel.cpp +++ b/interfaces/notificationsmodel.cpp @@ -235,3 +235,5 @@ void NotificationsModel::notificationUpdated() { Q_EMIT dataChanged(index(0, 0), index(m_notificationList.size() - 1, 0)); } + +#include "moc_notificationsmodel.cpp" diff --git a/interfaces/pluginmodel.cpp b/interfaces/pluginmodel.cpp index 140e13e7f..67cbca4b2 100644 --- a/interfaces/pluginmodel.cpp +++ b/interfaces/pluginmodel.cpp @@ -117,3 +117,5 @@ QString PluginModel::deviceId() { return m_deviceId; } + +#include "moc_pluginmodel.cpp" diff --git a/interfaces/remotecommandsmodel.cpp b/interfaces/remotecommandsmodel.cpp index 00523cf6d..076393591 100644 --- a/interfaces/remotecommandsmodel.cpp +++ b/interfaces/remotecommandsmodel.cpp @@ -131,3 +131,5 @@ void RemoteCommandsModel::clearCommands() endRemoveRows(); } } + +#include "moc_remotecommandsmodel.cpp" diff --git a/interfaces/remotesinksmodel.cpp b/interfaces/remotesinksmodel.cpp index f0114ccdd..129ba20cc 100644 --- a/interfaces/remotesinksmodel.cpp +++ b/interfaces/remotesinksmodel.cpp @@ -174,3 +174,5 @@ int RemoteSinksModel::rowCount(const QModelIndex &parent) const return m_sinkList.count(); } + +#include "moc_remotesinksmodel.cpp" diff --git a/kcmplugin/kdeconnectpluginkcm.cpp b/kcmplugin/kdeconnectpluginkcm.cpp index 9c97bf953..c995debd0 100644 --- a/kcmplugin/kdeconnectpluginkcm.cpp +++ b/kcmplugin/kdeconnectpluginkcm.cpp @@ -43,3 +43,5 @@ QString KdeConnectPluginKcm::deviceId() const { return d->m_deviceId; } + +#include "moc_kdeconnectpluginkcm.cpp" diff --git a/kio/kiokdeconnect.cpp b/kio/kiokdeconnect.cpp index b3457257b..235bae69c 100644 --- a/kio/kiokdeconnect.cpp +++ b/kio/kiokdeconnect.cpp @@ -249,5 +249,5 @@ KIO::WorkerResult KioKdeconnect::get(const QUrl &url) return KIO::WorkerResult::pass(); } -// needed for JSON file embedding #include "kiokdeconnect.moc" +#include "moc_kiokdeconnect.cpp" diff --git a/plugins/battery/batteryplugin.cpp b/plugins/battery/batteryplugin.cpp index 587b920e4..d4bf74270 100644 --- a/plugins/battery/batteryplugin.cpp +++ b/plugins/battery/batteryplugin.cpp @@ -134,3 +134,4 @@ QString BatteryPlugin::dbusPath() const } #include "batteryplugin.moc" +#include "moc_batteryplugin.cpp" diff --git a/plugins/bigscreen/bigscreenplugin.cpp b/plugins/bigscreen/bigscreenplugin.cpp index 08921cc80..8406361f3 100644 --- a/plugins/bigscreen/bigscreenplugin.cpp +++ b/plugins/bigscreen/bigscreenplugin.cpp @@ -41,3 +41,4 @@ QString BigscreenPlugin::dbusPath() const } #include "bigscreenplugin.moc" +#include "moc_bigscreenplugin.cpp" diff --git a/plugins/clipboard/clipboard_config.cpp b/plugins/clipboard/clipboard_config.cpp index 683853021..ae0f04017 100644 --- a/plugins/clipboard/clipboard_config.cpp +++ b/plugins/clipboard/clipboard_config.cpp @@ -59,3 +59,4 @@ void ClipboardConfig::save() } #include "clipboard_config.moc" +#include "moc_clipboard_config.cpp" diff --git a/plugins/clipboard/clipboardlistener.cpp b/plugins/clipboard/clipboardlistener.cpp index 0327c6f62..e7cf0e752 100644 --- a/plugins/clipboard/clipboardlistener.cpp +++ b/plugins/clipboard/clipboardlistener.cpp @@ -80,3 +80,5 @@ void ClipboardListener::setText(const QString &content) mime->setText(content); clipboard->setMimeData(mime, QClipboard::Clipboard); } + +#include "moc_clipboardlistener.cpp" diff --git a/plugins/clipboard/clipboardplugin.cpp b/plugins/clipboard/clipboardplugin.cpp index 771cc9c6e..83f4d8b2b 100644 --- a/plugins/clipboard/clipboardplugin.cpp +++ b/plugins/clipboard/clipboardplugin.cpp @@ -99,3 +99,4 @@ bool ClipboardPlugin::receivePacket(const NetworkPacket &np) } #include "clipboardplugin.moc" +#include "moc_clipboardplugin.cpp" diff --git a/plugins/connectivity-report/connectivity_reportplugin.cpp b/plugins/connectivity-report/connectivity_reportplugin.cpp index 3559de98d..4a183dd37 100644 --- a/plugins/connectivity-report/connectivity_reportplugin.cpp +++ b/plugins/connectivity-report/connectivity_reportplugin.cpp @@ -59,3 +59,4 @@ QString ConnectivityReportPlugin::dbusPath() const } #include "connectivity_reportplugin.moc" +#include "moc_connectivity_reportplugin.cpp" diff --git a/plugins/contacts/contactsplugin.cpp b/plugins/contacts/contactsplugin.cpp index f21f5819d..86cdef296 100644 --- a/plugins/contacts/contactsplugin.cpp +++ b/plugins/contacts/contactsplugin.cpp @@ -194,3 +194,4 @@ QString ContactsPlugin::dbusPath() const } #include "contactsplugin.moc" +#include "moc_contactsplugin.cpp" diff --git a/plugins/findmyphone/findmyphoneplugin.cpp b/plugins/findmyphone/findmyphoneplugin.cpp index 8508c1a86..05bade58e 100644 --- a/plugins/findmyphone/findmyphoneplugin.cpp +++ b/plugins/findmyphone/findmyphoneplugin.cpp @@ -37,3 +37,4 @@ QString FindMyPhonePlugin::dbusPath() const } #include "findmyphoneplugin.moc" +#include "moc_findmyphoneplugin.cpp" diff --git a/plugins/findthisdevice/findthisdevice_config.cpp b/plugins/findthisdevice/findthisdevice_config.cpp index 451886f81..858b87ad9 100644 --- a/plugins/findthisdevice/findthisdevice_config.cpp +++ b/plugins/findthisdevice/findthisdevice_config.cpp @@ -88,3 +88,4 @@ void FindThisDeviceConfig::playSound(const QUrl &soundUrl) } #include "findthisdevice_config.moc" +#include "moc_findthisdevice_config.cpp" diff --git a/plugins/findthisdevice/findthisdeviceplugin.cpp b/plugins/findthisdevice/findthisdeviceplugin.cpp index 42a2243b2..fef78c336 100644 --- a/plugins/findthisdevice/findthisdeviceplugin.cpp +++ b/plugins/findthisdevice/findthisdeviceplugin.cpp @@ -94,3 +94,4 @@ QString FindThisDevicePlugin::dbusPath() const } #include "findthisdeviceplugin.moc" +#include "moc_findthisdeviceplugin.cpp" diff --git a/plugins/lockdevice/lockdeviceplugin-win.cpp b/plugins/lockdevice/lockdeviceplugin-win.cpp index 99b08c74c..ace415c55 100644 --- a/plugins/lockdevice/lockdeviceplugin-win.cpp +++ b/plugins/lockdevice/lockdeviceplugin-win.cpp @@ -99,3 +99,4 @@ QString LockDevicePlugin::dbusPath() const } #include "lockdeviceplugin-win.moc" +#include "moc_lockdeviceplugin-win.cpp" diff --git a/plugins/lockdevice/lockdeviceplugin.cpp b/plugins/lockdevice/lockdeviceplugin.cpp index 612e03332..e5a255e5f 100644 --- a/plugins/lockdevice/lockdeviceplugin.cpp +++ b/plugins/lockdevice/lockdeviceplugin.cpp @@ -133,3 +133,4 @@ QString LockDevicePlugin::dbusPath() const } #include "lockdeviceplugin.moc" +#include "moc_lockdeviceplugin.cpp" diff --git a/plugins/mmtelephony/mmtelephonyplugin.cpp b/plugins/mmtelephony/mmtelephonyplugin.cpp index 9f8833ddb..892ab299a 100644 --- a/plugins/mmtelephony/mmtelephonyplugin.cpp +++ b/plugins/mmtelephony/mmtelephonyplugin.cpp @@ -133,3 +133,4 @@ void MMTelephonyPlugin::sendCancelMMTelephonyPacket(ModemManager::Call *call, co } #include "mmtelephonyplugin.moc" +#include "moc_mmtelephonyplugin.cpp" diff --git a/plugins/mousepad/abstractremoteinput.cpp b/plugins/mousepad/abstractremoteinput.cpp index 3c7ad3368..8e57b89b1 100644 --- a/plugins/mousepad/abstractremoteinput.cpp +++ b/plugins/mousepad/abstractremoteinput.cpp @@ -11,3 +11,5 @@ AbstractRemoteInput::AbstractRemoteInput(QObject *parent) : QObject(parent) { } + +#include "moc_abstractremoteinput.cpp" diff --git a/plugins/mousepad/macosremoteinput.mm b/plugins/mousepad/macosremoteinput.mm index e93e03b43..22d8a881f 100644 --- a/plugins/mousepad/macosremoteinput.mm +++ b/plugins/mousepad/macosremoteinput.mm @@ -223,3 +223,5 @@ bool MacOSRemoteInput::handlePacket(const NetworkPacket& np) bool MacOSRemoteInput::hasKeyboardSupport() { return true; } + +#include "moc_macosremoteinput.cpp" diff --git a/plugins/mousepad/mousepadplugin.cpp b/plugins/mousepad/mousepadplugin.cpp index 45465918b..d6d4d1af4 100644 --- a/plugins/mousepad/mousepadplugin.cpp +++ b/plugins/mousepad/mousepadplugin.cpp @@ -71,4 +71,5 @@ void MousepadPlugin::connected() sendPacket(np); } +#include "moc_mousepadplugin.cpp" #include "mousepadplugin.moc" diff --git a/plugins/mousepad/waylandremoteinput.cpp b/plugins/mousepad/waylandremoteinput.cpp index 6e6c4b64d..8ab12f727 100644 --- a/plugins/mousepad/waylandremoteinput.cpp +++ b/plugins/mousepad/waylandremoteinput.cpp @@ -260,3 +260,5 @@ bool WaylandRemoteInput::handlePacket(const NetworkPacket &np) } return true; } + +#include "moc_waylandremoteinput.cpp" diff --git a/plugins/mousepad/windowsremoteinput.cpp b/plugins/mousepad/windowsremoteinput.cpp index ddceb875d..c7aa48835 100644 --- a/plugins/mousepad/windowsremoteinput.cpp +++ b/plugins/mousepad/windowsremoteinput.cpp @@ -247,3 +247,5 @@ bool WindowsRemoteInput::hasKeyboardSupport() { return true; } + +#include "moc_windowsremoteinput.cpp" diff --git a/plugins/mousepad/x11remoteinput.cpp b/plugins/mousepad/x11remoteinput.cpp index 5cd95664a..75138e0ff 100644 --- a/plugins/mousepad/x11remoteinput.cpp +++ b/plugins/mousepad/x11remoteinput.cpp @@ -211,3 +211,5 @@ bool X11RemoteInput::hasKeyboardSupport() { return true; } + +#include "moc_x11remoteinput.cpp" diff --git a/plugins/mpriscontrol/mpriscontrolplugin-win.cpp b/plugins/mpriscontrol/mpriscontrolplugin-win.cpp index f4d75d313..db5203759 100644 --- a/plugins/mpriscontrol/mpriscontrolplugin-win.cpp +++ b/plugins/mpriscontrol/mpriscontrolplugin-win.cpp @@ -370,4 +370,5 @@ bool MprisControlPlugin::receivePacket(const NetworkPacket &np) return true; } +#include "moc_mpriscontrolplugin-win.cpp" #include "mpriscontrolplugin-win.moc" diff --git a/plugins/mpriscontrol/mpriscontrolplugin.cpp b/plugins/mpriscontrol/mpriscontrolplugin.cpp index 5a20ea14d..c3cb31725 100644 --- a/plugins/mpriscontrol/mpriscontrolplugin.cpp +++ b/plugins/mpriscontrol/mpriscontrolplugin.cpp @@ -400,4 +400,5 @@ void MprisControlPlugin::mprisPlayerMetadataToNetworkPacket(NetworkPacket &np, c np.set(QStringLiteral("url"), fileUrl); } +#include "moc_mpriscontrolplugin.cpp" #include "mpriscontrolplugin.moc" diff --git a/plugins/mprisremote/mprisremoteplayer.cpp b/plugins/mprisremote/mprisremoteplayer.cpp index 7cbdae0ff..e61ad6262 100644 --- a/plugins/mprisremote/mprisremoteplayer.cpp +++ b/plugins/mprisremote/mprisremoteplayer.cpp @@ -190,3 +190,5 @@ QDBusConnection &MprisRemotePlayer::dbus() { return m_dbusConnection; } + +#include "moc_mprisremoteplayer.cpp" diff --git a/plugins/mprisremote/mprisremoteplayermediaplayer2.cpp b/plugins/mprisremote/mprisremoteplayermediaplayer2.cpp index 9b3e74284..3a0abffca 100644 --- a/plugins/mprisremote/mprisremoteplayermediaplayer2.cpp +++ b/plugins/mprisremote/mprisremoteplayermediaplayer2.cpp @@ -58,3 +58,5 @@ QStringList MprisRemotePlayerMediaPlayer2::SupportedMimeTypes() const { return {}; } + +#include "moc_mprisremoteplayermediaplayer2.cpp" diff --git a/plugins/mprisremote/mprisremoteplayermediaplayer2player.cpp b/plugins/mprisremote/mprisremoteplayermediaplayer2player.cpp index b42e583b3..ae923cddd 100644 --- a/plugins/mprisremote/mprisremoteplayermediaplayer2player.cpp +++ b/plugins/mprisremote/mprisremoteplayermediaplayer2player.cpp @@ -256,3 +256,5 @@ void MprisRemotePlayerMediaPlayer2Player::emitPropertiesChanged() m_positionChanged = false; m_volumeChanged = false; } + +#include "moc_mprisremoteplayermediaplayer2player.cpp" diff --git a/plugins/mprisremote/mprisremoteplugin.cpp b/plugins/mprisremote/mprisremoteplugin.cpp index d3cc1fc64..ea4f5c47a 100644 --- a/plugins/mprisremote/mprisremoteplugin.cpp +++ b/plugins/mprisremote/mprisremoteplugin.cpp @@ -179,4 +179,5 @@ bool MprisRemotePlugin::canSeek() const return player ? player->canSeek() : false; } +#include "moc_mprisremoteplugin.cpp" #include "mprisremoteplugin.moc" diff --git a/plugins/notifications/notification.cpp b/plugins/notifications/notification.cpp index 7564259ca..27fa31e0b 100644 --- a/plugins/notifications/notification.cpp +++ b/plugins/notifications/notification.cpp @@ -193,3 +193,5 @@ void Notification::parseNetworkPacket(const NetworkPacket &np) m_actions.append(value.toString()); } } + +#include "moc_notification.cpp" diff --git a/plugins/notifications/notificationsplugin.cpp b/plugins/notifications/notificationsplugin.cpp index fab255cf3..d954930ee 100644 --- a/plugins/notifications/notificationsplugin.cpp +++ b/plugins/notifications/notificationsplugin.cpp @@ -198,4 +198,5 @@ QString NotificationsPlugin::dbusPath() const return QStringLiteral("/modules/kdeconnect/devices/") + device()->id() + QStringLiteral("/notifications"); } +#include "moc_notificationsplugin.cpp" #include "notificationsplugin.moc" diff --git a/plugins/notifications/sendreplydialog.cpp b/plugins/notifications/sendreplydialog.cpp index 4db0a3b28..6d2be5fdc 100644 --- a/plugins/notifications/sendreplydialog.cpp +++ b/plugins/notifications/sendreplydialog.cpp @@ -67,3 +67,5 @@ void SendReplyTextEdit::keyPressEvent(QKeyEvent *event) } QTextEdit::keyPressEvent(event); } + +#include "moc_sendreplydialog.cpp" diff --git a/plugins/pausemusic/pausemusic_config.cpp b/plugins/pausemusic/pausemusic_config.cpp index 09874a985..feb787a5c 100644 --- a/plugins/pausemusic/pausemusic_config.cpp +++ b/plugins/pausemusic/pausemusic_config.cpp @@ -65,4 +65,5 @@ void PauseMusicConfig::save() KCModule::save(); } +#include "moc_pausemusic_config.cpp" #include "pausemusic_config.moc" diff --git a/plugins/pausemusic/pausemusicplugin-win.cpp b/plugins/pausemusic/pausemusicplugin-win.cpp index 6a43dbdff..d6c7a6aa3 100644 --- a/plugins/pausemusic/pausemusicplugin-win.cpp +++ b/plugins/pausemusic/pausemusicplugin-win.cpp @@ -212,4 +212,5 @@ bool PauseMusicPlugin::receivePacket(const NetworkPacket &np) return true; } +#include "moc_pausemusicplugin-win.cpp" #include "pausemusicplugin-win.moc" diff --git a/plugins/pausemusic/pausemusicplugin.cpp b/plugins/pausemusic/pausemusicplugin.cpp index 1e84a03d0..ea3febfaf 100644 --- a/plugins/pausemusic/pausemusicplugin.cpp +++ b/plugins/pausemusic/pausemusicplugin.cpp @@ -106,4 +106,5 @@ bool PauseMusicPlugin::receivePacket(const NetworkPacket &np) return true; } +#include "moc_pausemusicplugin.cpp" #include "pausemusicplugin.moc" diff --git a/plugins/photo/photoplugin.cpp b/plugins/photo/photoplugin.cpp index 85b500c39..6593aa4d6 100644 --- a/plugins/photo/photoplugin.cpp +++ b/plugins/photo/photoplugin.cpp @@ -51,4 +51,5 @@ QString PhotoPlugin::dbusPath() const return QStringLiteral("/modules/kdeconnect/devices/") + device()->id() + QStringLiteral("/photo"); } +#include "moc_photoplugin.cpp" #include "photoplugin.moc" diff --git a/plugins/ping/pingplugin.cpp b/plugins/ping/pingplugin.cpp index da1fd9a0c..9c8bc5944 100644 --- a/plugins/ping/pingplugin.cpp +++ b/plugins/ping/pingplugin.cpp @@ -62,4 +62,5 @@ QString PingPlugin::dbusPath() const return QStringLiteral("/modules/kdeconnect/devices/") + device()->id() + QStringLiteral("/ping"); } +#include "moc_pingplugin.cpp" #include "pingplugin.moc" diff --git a/plugins/presenter/presenterplugin.cpp b/plugins/presenter/presenterplugin.cpp index 325b2de78..b06341483 100644 --- a/plugins/presenter/presenterplugin.cpp +++ b/plugins/presenter/presenterplugin.cpp @@ -91,4 +91,5 @@ bool PresenterPlugin::receivePacket(const NetworkPacket &np) return true; } +#include "moc_presenterplugin.cpp" #include "presenterplugin.moc" diff --git a/plugins/remotecommands/remotecommandsplugin.cpp b/plugins/remotecommands/remotecommandsplugin.cpp index 2a7ce24a7..1154c0f81 100644 --- a/plugins/remotecommands/remotecommandsplugin.cpp +++ b/plugins/remotecommands/remotecommandsplugin.cpp @@ -66,4 +66,5 @@ void RemoteCommandsPlugin::editCommands() sendPacket(np); } +#include "moc_remotecommandsplugin.cpp" #include "remotecommandsplugin.moc" diff --git a/plugins/remotecontrol/remotecontrolplugin.cpp b/plugins/remotecontrol/remotecontrolplugin.cpp index e2862fb1b..b2d7b36b6 100644 --- a/plugins/remotecontrol/remotecontrolplugin.cpp +++ b/plugins/remotecontrol/remotecontrolplugin.cpp @@ -42,4 +42,5 @@ QString RemoteControlPlugin::dbusPath() const return QStringLiteral("/modules/kdeconnect/devices/") + device()->id() + QStringLiteral("/remotecontrol"); } +#include "moc_remotecontrolplugin.cpp" #include "remotecontrolplugin.moc" diff --git a/plugins/remotekeyboard/remotekeyboardplugin.cpp b/plugins/remotekeyboard/remotekeyboardplugin.cpp index 229b90383..d8b8824fc 100644 --- a/plugins/remotekeyboard/remotekeyboardplugin.cpp +++ b/plugins/remotekeyboard/remotekeyboardplugin.cpp @@ -126,4 +126,5 @@ QString RemoteKeyboardPlugin::dbusPath() const return QStringLiteral("/modules/kdeconnect/devices/") + device()->id() + QStringLiteral("/remotekeyboard"); } +#include "moc_remotekeyboardplugin.cpp" #include "remotekeyboardplugin.moc" diff --git a/plugins/remotesystemvolume/remotesystemvolumeplugin.cpp b/plugins/remotesystemvolume/remotesystemvolumeplugin.cpp index 35a843abf..a57c9bfc0 100644 --- a/plugins/remotesystemvolume/remotesystemvolumeplugin.cpp +++ b/plugins/remotesystemvolume/remotesystemvolumeplugin.cpp @@ -80,4 +80,5 @@ QString RemoteSystemVolumePlugin::dbusPath() const return QStringLiteral("/modules/kdeconnect/devices/") + device()->id() + QStringLiteral("/remotesystemvolume"); } +#include "moc_remotesystemvolumeplugin.cpp" #include "remotesystemvolumeplugin.moc" diff --git a/plugins/runcommand/runcommand_config.cpp b/plugins/runcommand/runcommand_config.cpp index b025e312b..488572845 100644 --- a/plugins/runcommand/runcommand_config.cpp +++ b/plugins/runcommand/runcommand_config.cpp @@ -251,4 +251,5 @@ void RunCommandConfig::onDataChanged(const QModelIndex &topLeft, const QModelInd } } +#include "moc_runcommand_config.cpp" #include "runcommand_config.moc" diff --git a/plugins/runcommand/runcommandplugin.cpp b/plugins/runcommand/runcommandplugin.cpp index 81befd075..50d83a8c9 100644 --- a/plugins/runcommand/runcommandplugin.cpp +++ b/plugins/runcommand/runcommandplugin.cpp @@ -82,4 +82,5 @@ void RunCommandPlugin::sendConfig() sendPacket(np); } +#include "moc_runcommandplugin.cpp" #include "runcommandplugin.moc" diff --git a/plugins/screensaver-inhibit/screensaverinhibitplugin-macos.cpp b/plugins/screensaver-inhibit/screensaverinhibitplugin-macos.cpp index 50e785b19..745d1276d 100644 --- a/plugins/screensaver-inhibit/screensaverinhibitplugin-macos.cpp +++ b/plugins/screensaver-inhibit/screensaverinhibitplugin-macos.cpp @@ -39,4 +39,5 @@ bool ScreensaverInhibitPlugin::receivePacket(const NetworkPacket &np) return false; } +#include "moc_screensaverinhibitplugin-macos.cpp" #include "screensaverinhibitplugin-macos.moc" diff --git a/plugins/screensaver-inhibit/screensaverinhibitplugin-win.cpp b/plugins/screensaver-inhibit/screensaverinhibitplugin-win.cpp index 932b0a648..7bdac2f02 100644 --- a/plugins/screensaver-inhibit/screensaverinhibitplugin-win.cpp +++ b/plugins/screensaver-inhibit/screensaverinhibitplugin-win.cpp @@ -29,4 +29,5 @@ bool ScreensaverInhibitPlugin::receivePacket(const NetworkPacket &np) return false; } +#include "moc_screensaverinhibitplugin-win.cpp" #include "screensaverinhibitplugin-win.moc" diff --git a/plugins/screensaver-inhibit/screensaverinhibitplugin.cpp b/plugins/screensaver-inhibit/screensaverinhibitplugin.cpp index e197040da..cd51d1dc7 100644 --- a/plugins/screensaver-inhibit/screensaverinhibitplugin.cpp +++ b/plugins/screensaver-inhibit/screensaverinhibitplugin.cpp @@ -48,4 +48,5 @@ bool ScreensaverInhibitPlugin::receivePacket(const NetworkPacket &np) return false; } +#include "moc_screensaverinhibitplugin.cpp" #include "screensaverinhibitplugin.moc" diff --git a/plugins/sendnotifications/notificationslistener.cpp b/plugins/sendnotifications/notificationslistener.cpp index 6efc3a491..058451586 100644 --- a/plugins/sendnotifications/notificationslistener.cpp +++ b/plugins/sendnotifications/notificationslistener.cpp @@ -348,3 +348,5 @@ GDBusMessage *NotificationsListener::onMessageFiltered(GDBusConnection *, GDBusM return nullptr; } + +#include "moc_notificationslistener.cpp" diff --git a/plugins/sendnotifications/notifyingapplicationmodel.cpp b/plugins/sendnotifications/notifyingapplicationmodel.cpp index 0309ad5ec..49634cb66 100644 --- a/plugins/sendnotifications/notifyingapplicationmodel.cpp +++ b/plugins/sendnotifications/notifyingapplicationmodel.cpp @@ -208,3 +208,5 @@ int NotifyingApplicationModel::rowCount(const QModelIndex &parent) const } return m_apps.size(); } + +#include "moc_notifyingapplicationmodel.cpp" diff --git a/plugins/sendnotifications/sendnotifications_config.cpp b/plugins/sendnotifications/sendnotifications_config.cpp index 32ef88a37..718318349 100644 --- a/plugins/sendnotifications/sendnotifications_config.cpp +++ b/plugins/sendnotifications/sendnotifications_config.cpp @@ -104,4 +104,5 @@ void SendNotificationsConfig::save() config()->setList(QStringLiteral("applications"), list); } +#include "moc_sendnotifications_config.cpp" #include "sendnotifications_config.moc" diff --git a/plugins/sendnotifications/sendnotificationsplugin.cpp b/plugins/sendnotifications/sendnotificationsplugin.cpp index 9164f798d..13d70fbc6 100644 --- a/plugins/sendnotifications/sendnotificationsplugin.cpp +++ b/plugins/sendnotifications/sendnotificationsplugin.cpp @@ -30,4 +30,5 @@ bool SendNotificationsPlugin::receivePacket(const NetworkPacket &np) return true; } +#include "moc_sendnotificationsplugin.cpp" #include "sendnotificationsplugin.moc" diff --git a/plugins/sftp/mounter.cpp b/plugins/sftp/mounter.cpp index 8c04ac0c9..646f370b4 100644 --- a/plugins/sftp/mounter.cpp +++ b/plugins/sftp/mounter.cpp @@ -235,3 +235,5 @@ void Mounter::unmount(bool finished) } m_started = false; } + +#include "moc_mounter.cpp" diff --git a/plugins/sftp/mountloop.cpp b/plugins/sftp/mountloop.cpp index 7b850094c..25f7538a9 100644 --- a/plugins/sftp/mountloop.cpp +++ b/plugins/sftp/mountloop.cpp @@ -33,3 +33,5 @@ void MountLoop::exitWith(bool status) Q_EMIT result(status); exit(status ? 0 : 1); } + +#include "moc_mountloop.cpp" diff --git a/plugins/sftp/sftpplugin-win.cpp b/plugins/sftp/sftpplugin-win.cpp index 09cae9e90..facfd7bdc 100644 --- a/plugins/sftp/sftpplugin-win.cpp +++ b/plugins/sftp/sftpplugin-win.cpp @@ -76,4 +76,5 @@ bool SftpPlugin::receivePacket(const NetworkPacket &np) return true; } +#include "moc_sftpplugin-win.cpp" #include "sftpplugin-win.moc" diff --git a/plugins/sftp/sftpplugin.cpp b/plugins/sftp/sftpplugin.cpp index a7f52caf5..3d5e9014f 100644 --- a/plugins/sftp/sftpplugin.cpp +++ b/plugins/sftp/sftpplugin.cpp @@ -187,4 +187,5 @@ QVariantMap SftpPlugin::getDirectories() return remoteDirectories; } +#include "moc_sftpplugin.cpp" #include "sftpplugin.moc" diff --git a/plugins/share/share_config.cpp b/plugins/share/share_config.cpp index e41d7261c..84bb0be61 100644 --- a/plugins/share/share_config.cpp +++ b/plugins/share/share_config.cpp @@ -54,4 +54,5 @@ void ShareConfig::save() config()->set(QStringLiteral("incoming_path"), m_ui->kurlrequester->text()); } +#include "moc_share_config.cpp" #include "share_config.moc" diff --git a/plugins/share/shareplugin.cpp b/plugins/share/shareplugin.cpp index 8d4a711a4..cc9b95595 100644 --- a/plugins/share/shareplugin.cpp +++ b/plugins/share/shareplugin.cpp @@ -273,4 +273,5 @@ QString SharePlugin::dbusPath() const return QStringLiteral("/modules/kdeconnect/devices/") + device()->id() + QStringLiteral("/share"); } +#include "moc_shareplugin.cpp" #include "shareplugin.moc" diff --git a/plugins/sms/conversationsdbusinterface.cpp b/plugins/sms/conversationsdbusinterface.cpp index 515c38034..8a1e2c0fc 100644 --- a/plugins/sms/conversationsdbusinterface.cpp +++ b/plugins/sms/conversationsdbusinterface.cpp @@ -228,3 +228,5 @@ void ConversationsDbusInterface::attachmentDownloaded(const QString &filePath, c { Q_EMIT attachmentReceived(filePath, fileName); } + +#include "moc_conversationsdbusinterface.cpp" diff --git a/plugins/sms/requestconversationworker.cpp b/plugins/sms/requestconversationworker.cpp index 3df8590c8..12121041d 100644 --- a/plugins/sms/requestconversationworker.cpp +++ b/plugins/sms/requestconversationworker.cpp @@ -85,3 +85,5 @@ void RequestConversationWorker::work() { m_thread->start(); } + +#include "moc_requestconversationworker.cpp" diff --git a/plugins/sms/smsplugin.cpp b/plugins/sms/smsplugin.cpp index 5d299be3a..3bf13ef18 100644 --- a/plugins/sms/smsplugin.cpp +++ b/plugins/sms/smsplugin.cpp @@ -241,4 +241,5 @@ void SmsPlugin::launchApp() QProcess::startDetached(QLatin1String("kdeconnect-sms"), {QStringLiteral("--device"), device()->id()}); } +#include "moc_smsplugin.cpp" #include "smsplugin.moc" diff --git a/plugins/systemvolume/systemvolumeplugin-macos.cpp b/plugins/systemvolume/systemvolumeplugin-macos.cpp index 5e26cf4ca..bced7e34c 100644 --- a/plugins/systemvolume/systemvolumeplugin-macos.cpp +++ b/plugins/systemvolume/systemvolumeplugin-macos.cpp @@ -463,4 +463,5 @@ void MacOSCoreAudioDevice::updateType() } } +#include "moc_systemvolumeplugin-macos.cpp" #include "systemvolumeplugin-macos.moc" diff --git a/plugins/systemvolume/systemvolumeplugin-pulse.cpp b/plugins/systemvolume/systemvolumeplugin-pulse.cpp index 0ede5e96f..e774e4738 100644 --- a/plugins/systemvolume/systemvolumeplugin-pulse.cpp +++ b/plugins/systemvolume/systemvolumeplugin-pulse.cpp @@ -121,4 +121,5 @@ void SystemvolumePlugin::connected() } } +#include "moc_systemvolumeplugin-pulse.cpp" #include "systemvolumeplugin-pulse.moc" diff --git a/plugins/systemvolume/systemvolumeplugin-win.cpp b/plugins/systemvolume/systemvolumeplugin-win.cpp index db8f0c675..19f028351 100644 --- a/plugins/systemvolume/systemvolumeplugin-win.cpp +++ b/plugins/systemvolume/systemvolumeplugin-win.cpp @@ -450,4 +450,5 @@ bool SystemvolumePlugin::receivePacket(const NetworkPacket &np) return true; } +#include "moc_systemvolumeplugin-win.cpp" #include "systemvolumeplugin-win.moc" diff --git a/plugins/telephony/telephonyplugin.cpp b/plugins/telephony/telephonyplugin.cpp index 7291c98c5..5d03e2db1 100644 --- a/plugins/telephony/telephonyplugin.cpp +++ b/plugins/telephony/telephonyplugin.cpp @@ -103,4 +103,5 @@ QString TelephonyPlugin::dbusPath() const return QStringLiteral("/modules/kdeconnect/devices/") + device()->id() + QStringLiteral("/telephony"); } +#include "moc_telephonyplugin.cpp" #include "telephonyplugin.moc" diff --git a/plugins/virtualmonitor/virtualmonitorplugin.cpp b/plugins/virtualmonitor/virtualmonitorplugin.cpp index 2de97f40d..42b85fac4 100644 --- a/plugins/virtualmonitor/virtualmonitorplugin.cpp +++ b/plugins/virtualmonitor/virtualmonitorplugin.cpp @@ -145,4 +145,5 @@ bool VirtualMonitorPlugin::requestVirtualMonitor() return true; } +#include "moc_virtualmonitorplugin.cpp" #include "virtualmonitorplugin.moc" diff --git a/smsapp/attachmentinfo.cpp b/smsapp/attachmentinfo.cpp index 0a4c58774..f02af1be4 100644 --- a/smsapp/attachmentinfo.cpp +++ b/smsapp/attachmentinfo.cpp @@ -16,3 +16,5 @@ AttachmentInfo::AttachmentInfo(const Attachment &attachment) , m_uniqueIdentifier(attachment.uniqueIdentifier()) { } + +#include "moc_attachmentinfo.cpp" diff --git a/smsapp/conversationlistmodel.cpp b/smsapp/conversationlistmodel.cpp index a5eea3e27..05696fe2d 100644 --- a/smsapp/conversationlistmodel.cpp +++ b/smsapp/conversationlistmodel.cpp @@ -295,3 +295,5 @@ void ConversationListModel::createConversationForAddress(const QString &address) item->setData(address, SenderRole); appendRow(item); } + +#include "moc_conversationlistmodel.cpp" diff --git a/smsapp/conversationmodel.cpp b/smsapp/conversationmodel.cpp index dedd6f5c4..c0b4d80ea 100644 --- a/smsapp/conversationmodel.cpp +++ b/smsapp/conversationmodel.cpp @@ -237,3 +237,5 @@ void ConversationModel::requestAttachmentPath(const qint64 &partID, const QStrin { m_conversationsInterface->requestAttachmentFile(partID, uniqueIdentifier); } + +#include "moc_conversationmodel.cpp" diff --git a/smsapp/conversationssortfilterproxymodel.cpp b/smsapp/conversationssortfilterproxymodel.cpp index 9946946c8..5492e38bf 100644 --- a/smsapp/conversationssortfilterproxymodel.cpp +++ b/smsapp/conversationssortfilterproxymodel.cpp @@ -82,3 +82,5 @@ bool ConversationsSortFilterProxyModel::doesAddressExists(const QString &address } return false; } + +#include "moc_conversationssortfilterproxymodel.cpp" diff --git a/smsapp/smshelper.cpp b/smsapp/smshelper.cpp index 0ff6da486..fb5bccea9 100644 --- a/smsapp/smshelper.cpp +++ b/smsapp/smshelper.cpp @@ -475,3 +475,5 @@ QIcon SmsHelper::getThumbnailForAttachment(const Attachment &attachment) } } } + +#include "moc_smshelper.cpp" diff --git a/tests/testdevice.cpp b/tests/testdevice.cpp index cab17535e..b9c9d81a3 100644 --- a/tests/testdevice.cpp +++ b/tests/testdevice.cpp @@ -36,3 +36,5 @@ bool TestDevice::sendPacket(NetworkPacket &np) lastPacket->setPayload(np.payload(), np.payloadSize()); return true; } + +#include "moc_testdevice.cpp"