Use pragma once in plugins
For non-library code, this is simpler and more concise
This commit is contained in:
parent
f1c2202591
commit
75a8db1ec5
59 changed files with 59 additions and 234 deletions
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef BATTERYPLUGIN_H
|
||||
#define BATTERYPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
|
@ -42,5 +41,3 @@ private:
|
|||
int m_charge = -1;
|
||||
bool m_isCharging = false;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef BIGSCREENPLUGIN_H
|
||||
#define BIGSCREENPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
|
@ -26,5 +25,3 @@ public:
|
|||
Q_SIGNALS:
|
||||
Q_SCRIPTABLE void messageReceived(const QString &message);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef CLIPBOARD_CONFIG_H
|
||||
#define CLIPBOARD_CONFIG_H
|
||||
#pragma once
|
||||
|
||||
#include "kcmplugin/kdeconnectpluginkcm.h"
|
||||
|
||||
|
@ -29,5 +28,3 @@ private:
|
|||
void autoShareChanged();
|
||||
Ui::ClipboardConfigUi *m_ui;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef CLIPBOARDLISTENER_H
|
||||
#define CLIPBOARDLISTENER_H
|
||||
#pragma once
|
||||
|
||||
#include <QClipboard>
|
||||
#include <QObject>
|
||||
|
@ -56,5 +55,3 @@ private:
|
|||
#endif
|
||||
KSystemClipboard *clipboard;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef CLIPBOARDPLUGIN_H
|
||||
#define CLIPBOARDPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QClipboard>
|
||||
#include <QObject>
|
||||
|
@ -66,5 +65,3 @@ private:
|
|||
bool autoShare;
|
||||
bool sharePasswords;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef CONNECTIVITY_REPORT_H
|
||||
#define CONNECTIVITY_REPORT_H
|
||||
#pragma once
|
||||
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
|
@ -55,5 +54,3 @@ private:
|
|||
QString m_cellularNetworkType;
|
||||
int m_cellularNetworkStrength = -1;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef CONTACTSPLUGIN_H
|
||||
#define CONTACTSPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
class QObject;
|
||||
#include <QStandardPaths>
|
||||
|
@ -147,5 +146,3 @@ protected:
|
|||
*/
|
||||
bool sendRequestWithIDs(const QString &packetType, const uIDList_t &uIDs);
|
||||
};
|
||||
|
||||
#endif // CONTACTSPLUGIN_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef FINDMYPHONEPLUGIN_H
|
||||
#define FINDMYPHONEPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
|
@ -26,5 +25,3 @@ public:
|
|||
QString dbusPath() const override;
|
||||
bool receivePacket(const NetworkPacket &np) override;
|
||||
};
|
||||
|
||||
#endif // FINDMYPHONEPLUGIN_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef FINDTHISDEVICE_CONFIG_H
|
||||
#define FINDTHISDEVICE_CONFIG_H
|
||||
#pragma once
|
||||
|
||||
#include <kcmplugin/kdeconnectpluginkcm.h>
|
||||
|
||||
|
@ -29,5 +28,3 @@ private:
|
|||
void playSound(const QUrl &soundUrl);
|
||||
Ui::FindThisDeviceConfigUi *m_ui;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef FINDTHISDEVICEPLUGIN_H
|
||||
#define FINDTHISDEVICEPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
|
@ -63,5 +62,3 @@ inline QString defaultSound()
|
|||
}
|
||||
return soundURL.toLocalFile();
|
||||
}
|
||||
|
||||
#endif // FINDTHISDEVICEPLUGIN_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef LOCKDEVICEPLUGIN_WIN_H
|
||||
#define LOCKDEVICEPLUGIN_WIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
|
@ -39,5 +38,3 @@ private:
|
|||
bool m_remoteLocked = false;
|
||||
bool m_localLocked = false;
|
||||
};
|
||||
|
||||
#endif // LOCKDEVICEPLUGIN_WIN_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef LOCKDEVICEPLUGIN_H
|
||||
#define LOCKDEVICEPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
|
@ -45,5 +44,3 @@ private:
|
|||
OrgFreedesktopLogin1SessionInterface m_login1Interface;
|
||||
OrgFreedesktopDBusPropertiesInterface m_propertiesInterface;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -7,8 +7,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef TELEPHONYPLUGIN_H
|
||||
#define TELEPHONYPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <KPluginFactory>
|
||||
#include <ModemManagerQt/Call>
|
||||
|
@ -50,5 +49,3 @@ private:
|
|||
void sendCancelMMTelephonyPacket(ModemManager::Call *call, const QString &lastState);
|
||||
static QString stateName(MMCallState state);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef ABSTRACTREMOTEINPUT_H
|
||||
#define ABSTRACTREMOTEINPUT_H
|
||||
#pragma once
|
||||
|
||||
#include <QLoggingCategory>
|
||||
#include <QObject>
|
||||
|
@ -26,5 +25,3 @@ public:
|
|||
return false;
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef MACOSREMOTEINPUT_H
|
||||
#define MACOSREMOTEINPUT_H
|
||||
#pragma once
|
||||
|
||||
#include "abstractremoteinput.h"
|
||||
|
||||
|
@ -19,5 +18,3 @@ public:
|
|||
bool handlePacket(const NetworkPacket &np) override;
|
||||
bool hasKeyboardSupport() override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef MOUSEPADPLUGIN_H
|
||||
#define MOUSEPADPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <config-mousepad.h>
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
@ -30,5 +29,3 @@ public:
|
|||
private:
|
||||
AbstractRemoteInput *m_impl;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef WAYLANDREMOTEINPUT_H
|
||||
#define WAYLANDREMOTEINPUT_H
|
||||
#pragma once
|
||||
|
||||
#include "abstractremoteinput.h"
|
||||
#include "xdp_dbus_remotedesktop_interface.h"
|
||||
|
@ -49,5 +48,3 @@ public:
|
|||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef WINDOWSREMOTEINPUT_H
|
||||
#define WINDOWSREMOTEINPUT_H
|
||||
#pragma once
|
||||
|
||||
#include "abstractremoteinput.h"
|
||||
|
||||
|
@ -19,5 +18,3 @@ public:
|
|||
bool handlePacket(const NetworkPacket &np) override;
|
||||
bool hasKeyboardSupport() override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef X11REMOTEINPUT_H
|
||||
#define X11REMOTEINPUT_H
|
||||
#pragma once
|
||||
|
||||
#include "abstractremoteinput.h"
|
||||
|
||||
|
@ -25,5 +24,3 @@ public:
|
|||
private:
|
||||
FakeKey *m_fakekey;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef MPRISCONTROLPLUGINWIN_H
|
||||
#define MPRISCONTROLPLUGINWIN_H
|
||||
#pragma once
|
||||
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
|
@ -55,4 +54,3 @@ private:
|
|||
|
||||
QString randomUrl();
|
||||
};
|
||||
#endif // MPRISCONTROLPLUGINWIN_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef MPRISCONTROLPLUGIN_H
|
||||
#define MPRISCONTROLPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QDBusServiceWatcher>
|
||||
#include <QHash>
|
||||
|
@ -70,5 +69,3 @@ private:
|
|||
int prevVolume;
|
||||
QDBusServiceWatcher *m_watcher;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef MPRISREMOTEPLUGIN_H
|
||||
#define MPRISREMOTEPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
|
@ -65,5 +64,3 @@ private:
|
|||
QString m_currentPlayer;
|
||||
QMap<QString, MprisRemotePlayer *> m_players;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef NOTIFICATION_H
|
||||
#define NOTIFICATION_H
|
||||
#pragma once
|
||||
|
||||
#include <KNotification>
|
||||
#include <QDir>
|
||||
|
@ -118,5 +117,3 @@ private:
|
|||
|
||||
static QMap<QString, FileTransferJob *> s_downloadsInProgress;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef NOTIFICATIONSPLUGIN_H
|
||||
#define NOTIFICATIONSPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
||||
|
@ -52,5 +51,3 @@ private:
|
|||
QHash<QString, QString> m_internalIdToPublicId;
|
||||
int m_lastId = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SENDREPLYDIALOG_H
|
||||
#define SENDREPLYDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QSize>
|
||||
|
@ -44,5 +43,3 @@ public:
|
|||
|
||||
Q_SIGNAL void send();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef PAUSEMUSIC_CONFIG_H
|
||||
#define PAUSEMUSIC_CONFIG_H
|
||||
#pragma once
|
||||
|
||||
#include "kcmplugin/kdeconnectpluginkcm.h"
|
||||
|
||||
|
@ -28,5 +27,3 @@ public:
|
|||
private:
|
||||
Ui::PauseMusicConfigUi *m_ui;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef PAUSEMUSICPLUGINWIN_H
|
||||
#define PAUSEMUSICPLUGINWIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QHash>
|
||||
#include <QObject>
|
||||
|
@ -50,5 +49,3 @@ private:
|
|||
QSet<QString> pausedSources;
|
||||
QSet<QString> mutedSinks;
|
||||
};
|
||||
|
||||
#endif // PAUSEMUSICPLUGINWIN_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef PAUSEMUSICPLUGIN_H
|
||||
#define PAUSEMUSICPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QSet>
|
||||
|
@ -26,5 +25,3 @@ private:
|
|||
QSet<QString> pausedSources;
|
||||
QSet<QString> mutedSinks;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef PHOTOPLUGIN_H
|
||||
#define PHOTOPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
class QObject;
|
||||
|
||||
|
@ -34,5 +33,3 @@ Q_SIGNALS:
|
|||
private:
|
||||
QStringList requestedFiles;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef PINGPLUGIN_H
|
||||
#define PINGPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
|
@ -28,5 +27,3 @@ public:
|
|||
bool receivePacket(const NetworkPacket &np) override;
|
||||
QString dbusPath() const override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef PRESENTERPLUGIN_H
|
||||
#define PRESENTERPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QPointer>
|
||||
|
@ -31,5 +30,3 @@ private:
|
|||
QTimer *m_timer;
|
||||
float m_xPos, m_yPos;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef REMOTECOMMANDSPLUGIN_H
|
||||
#define REMOTECOMMANDSPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
class QObject;
|
||||
|
||||
|
@ -52,5 +51,3 @@ private:
|
|||
QByteArray m_commands;
|
||||
bool m_canAddCommand;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef REMOTECONTROLPLUGIN_H
|
||||
#define REMOTECONTROLPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
|
@ -30,5 +29,3 @@ public:
|
|||
Q_SCRIPTABLE void moveCursor(const QPoint &p);
|
||||
Q_SCRIPTABLE void sendCommand(const QVariantMap &body);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef REMOTEKEYBOARDPLUGIN_H
|
||||
#define REMOTEKEYBOARDPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QDBusInterface>
|
||||
#include <QVariantMap>
|
||||
|
@ -45,5 +44,3 @@ Q_SIGNALS:
|
|||
Q_SCRIPTABLE void keyPressReceived(const QString &key, int specialKey = 0, bool shift = false, bool ctrl = false, bool alt = false);
|
||||
Q_SCRIPTABLE void remoteStateChanged(bool state);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef REMOTESYSTEMVOLUMEPLUGIN_H
|
||||
#define REMOTESYSTEMVOLUMEPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
|
@ -45,5 +44,3 @@ Q_SIGNALS:
|
|||
private:
|
||||
QByteArray m_sinks;
|
||||
};
|
||||
|
||||
#endif // REMOTESYSTEMVOLUMEPLUGIN_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef RUNCOMMAND_CONFIG_H
|
||||
#define RUNCOMMAND_CONFIG_H
|
||||
#pragma once
|
||||
|
||||
#include "kcmplugin/kdeconnectpluginkcm.h"
|
||||
|
||||
|
@ -33,5 +32,3 @@ private:
|
|||
|
||||
QStandardItemModel *m_entriesModel;
|
||||
};
|
||||
|
||||
#endif // RUNCOMMAND_CONFIG_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef RUNCOMMANDPLUGIN_H
|
||||
#define RUNCOMMANDPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
|
@ -29,5 +28,3 @@ public:
|
|||
private:
|
||||
void sendConfig();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SCREENSAVERINHIBITPLUGIN_H
|
||||
#define SCREENSAVERINHIBITPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QProcess>
|
||||
|
@ -25,5 +24,3 @@ public:
|
|||
private:
|
||||
QProcess *m_caffeinateProcess;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SCREENSAVERINHIBITPLUGIN_H
|
||||
#define SCREENSAVERINHIBITPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
|
@ -21,5 +20,3 @@ public:
|
|||
|
||||
bool receivePacket(const NetworkPacket &np) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SCREENSAVERINHIBITPLUGIN_H
|
||||
#define SCREENSAVERINHIBITPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
|
@ -24,5 +23,3 @@ public:
|
|||
private:
|
||||
uint inhibitCookie;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef NOTIFICATIONSLISTENER_H
|
||||
#define NOTIFICATIONSLISTENER_H
|
||||
#pragma once
|
||||
|
||||
#include <QBuffer>
|
||||
#include <QDBusAbstractAdaptor>
|
||||
|
@ -56,5 +55,3 @@ private:
|
|||
GDBusConnection *m_gdbusConnection = nullptr;
|
||||
unsigned m_gdbusFilterId = 0;
|
||||
};
|
||||
|
||||
#endif // NOTIFICATIONSLISTENER_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef NOTIFYINGAPPLICATION_H
|
||||
#define NOTIFYINGAPPLICATION_H
|
||||
#pragma once
|
||||
|
||||
#include <QRegularExpression>
|
||||
|
||||
|
@ -26,5 +25,3 @@ Q_DECLARE_METATYPE(NotifyingApplication);
|
|||
QDataStream &operator<<(QDataStream &out, const NotifyingApplication &app);
|
||||
QDataStream &operator>>(QDataStream &in, NotifyingApplication &app);
|
||||
QDebug operator<<(QDebug dbg, const NotifyingApplication &a);
|
||||
|
||||
#endif // NOTIFYINGAPPLICATION_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef NOTIFYINGAPPLICATIONMODEL_H
|
||||
#define NOTIFYINGAPPLICATIONMODEL_H
|
||||
#pragma once
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
|
||||
|
@ -37,5 +36,3 @@ Q_SIGNALS:
|
|||
private:
|
||||
QVector<NotifyingApplication> m_apps;
|
||||
};
|
||||
|
||||
#endif // NOTIFYINGAPPLICATIONMODEL_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SENDNOTIFICATIONS_CONFIG_H
|
||||
#define SENDNOTIFICATIONS_CONFIG_H
|
||||
#pragma once
|
||||
|
||||
#include "kcmplugin/kdeconnectpluginkcm.h"
|
||||
|
||||
|
@ -32,5 +31,3 @@ private:
|
|||
Ui::SendNotificationsConfigUi *m_ui;
|
||||
NotifyingApplicationModel *appModel;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SENDNOTIFICATIONSPLUGIN_H
|
||||
#define SENDNOTIFICATIONSPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include "core/kdeconnectplugin.h"
|
||||
|
||||
|
@ -32,5 +31,3 @@ public:
|
|||
protected:
|
||||
NotificationsListener *notificationsListener;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SFTPPLUGIN_MOUNTER_H
|
||||
#define SFTPPLUGIN_MOUNTER_H
|
||||
#pragma once
|
||||
|
||||
#include <KJob>
|
||||
#include <KProcess>
|
||||
|
@ -50,5 +49,3 @@ private:
|
|||
QString m_mountPoint;
|
||||
bool m_started;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SFTPPLUGIN_MOUNTLOOP_H
|
||||
#define SFTPPLUGIN_MOUNTLOOP_H
|
||||
#pragma once
|
||||
|
||||
#include <QEventLoop>
|
||||
|
||||
|
@ -25,5 +24,3 @@ public Q_SLOTS:
|
|||
void succeeded();
|
||||
void exitWith(bool status);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SFTPPLUGIN_WIN_H
|
||||
#define SFTPPLUGIN_WIN_H
|
||||
#pragma once
|
||||
|
||||
#include <core/device.h>
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
@ -35,5 +34,3 @@ public Q_SLOTS:
|
|||
private:
|
||||
QString deviceId; // Storing it to avoid accessing device() from the destructor which could cause a crash
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SFTPPLUGIN_H
|
||||
#define SFTPPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <core/device.h>
|
||||
#include <core/kdeconnectplugin.h>
|
||||
|
@ -61,5 +60,3 @@ private:
|
|||
QVariantMap remoteDirectories; // Actually a QMap<String, String>, but QDBus prefers this
|
||||
QString mountError;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SHARE_CONFIG_H
|
||||
#define SHARE_CONFIG_H
|
||||
#pragma once
|
||||
|
||||
#include "kcmplugin/kdeconnectpluginkcm.h"
|
||||
|
||||
|
@ -28,5 +27,3 @@ public:
|
|||
private:
|
||||
Ui::ShareConfigUi *m_ui;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SHAREPLUGIN_H
|
||||
#define SHAREPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QPointer>
|
||||
|
||||
|
@ -54,4 +53,3 @@ private:
|
|||
|
||||
QPointer<CompositeFileTransferJob> m_compositeJob;
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef CONVERSATIONSDBUSINTERFACE_H
|
||||
#define CONVERSATIONSDBUSINTERFACE_H
|
||||
#pragma once
|
||||
|
||||
#include <QDBusAbstractAdaptor>
|
||||
#include <QDir>
|
||||
|
@ -163,5 +162,3 @@ private /*attributes*/:
|
|||
QMutex waitingForMessagesLock;
|
||||
QWaitCondition waitingForMessages;
|
||||
};
|
||||
|
||||
#endif // CONVERSATIONSDBUSINTERFACE_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef REQUESTCONVERSATIONWORKER_H
|
||||
#define REQUESTCONVERSATIONWORKER_H
|
||||
#pragma once
|
||||
|
||||
#include "conversationsdbusinterface.h"
|
||||
|
||||
|
@ -61,5 +60,3 @@ private:
|
|||
*/
|
||||
size_t replyForConversation(const QList<ConversationMessage> &conversation, int start, size_t howMany);
|
||||
};
|
||||
|
||||
#endif // REQUESTCONVERSATIONWORKER_H
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SMSPLUGIN_H
|
||||
#define SMSPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
|
@ -206,5 +205,3 @@ private:
|
|||
ConversationsDbusInterface *m_conversationInterface;
|
||||
QTextCodec *m_codec;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SYSTEMVOLUMEPLUGINMACOS_H
|
||||
#define SYSTEMVOLUMEPLUGINMACOS_H
|
||||
#pragma once
|
||||
|
||||
#include <QMap>
|
||||
#include <QObject>
|
||||
|
@ -37,5 +36,3 @@ public:
|
|||
private:
|
||||
QMap<QString, MacOSCoreAudioDevice *> m_sinksMap;
|
||||
};
|
||||
|
||||
#endif // SYSTEMVOLUMEPLUGINMACOS_H
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SYSTEMVOLUMEPLUGINPULSE_H
|
||||
#define SYSTEMVOLUMEPLUGINPULSE_H
|
||||
#pragma once
|
||||
|
||||
#include <QMap>
|
||||
#include <QObject>
|
||||
|
@ -31,5 +30,3 @@ private:
|
|||
void sendSinkList();
|
||||
QMap<QString, PulseAudioQt::Sink *> sinksMap;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef SYSTEMVOLUMEPLUGINWIN_H
|
||||
#define SYSTEMVOLUMEPLUGINWIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QMap>
|
||||
#include <QObject>
|
||||
|
@ -46,5 +45,3 @@ private:
|
|||
bool sendSinkList();
|
||||
HRESULT setDefaultAudioPlaybackDevice(QString &name, bool enabled);
|
||||
};
|
||||
|
||||
#endif // SYSTEMVOLUMEPLUGINWIN_H
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef TELEPHONYPLUGIN_H
|
||||
#define TELEPHONYPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QPointer>
|
||||
|
||||
|
@ -59,5 +58,3 @@ private:
|
|||
|
||||
QPointer<KNotification> m_currentCallNotification;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
*/
|
||||
|
||||
#ifndef VIRTUALMONITORPLUGIN_H
|
||||
#define VIRTUALMONITORPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include "plugin_virtualmonitor_debug.h"
|
||||
#include <QJsonObject>
|
||||
|
@ -38,5 +37,3 @@ private:
|
|||
QJsonObject m_remoteResolution;
|
||||
uint m_retries = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue