Fix clang format
This commit is contained in:
parent
fdc2ed37cc
commit
626dc1006a
8 changed files with 42 additions and 8 deletions
|
@ -34,7 +34,12 @@ protected:
|
||||||
bool doKill() override;
|
bool doKill() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum { NoPortAvailable = UserDefinedError, SendingNetworkPacketFailed, SocketError, SslError };
|
enum {
|
||||||
|
NoPortAvailable = UserDefinedError,
|
||||||
|
SendingNetworkPacketFailed,
|
||||||
|
SocketError,
|
||||||
|
SslError,
|
||||||
|
};
|
||||||
|
|
||||||
Server *const m_server;
|
Server *const m_server;
|
||||||
QSslSocket *m_socket;
|
QSslSocket *m_socket;
|
||||||
|
|
|
@ -14,7 +14,10 @@ class KDECONNECTCORE_EXPORT NotificationServerInfo : public QObject
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum Hint { X_KDE_DISPLAY_APPNAME = 1, X_KDE_ORIGIN_NAME = 2 };
|
enum Hint {
|
||||||
|
X_KDE_DISPLAY_APPNAME = 1,
|
||||||
|
X_KDE_ORIGIN_NAME = 2,
|
||||||
|
};
|
||||||
|
|
||||||
Q_DECLARE_FLAGS(Hints, Hint)
|
Q_DECLARE_FLAGS(Hints, Hint)
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,11 @@ class KDECONNECTINTERFACES_EXPORT CommandsModel : public QAbstractListModel
|
||||||
Q_PROPERTY(QString deviceId READ deviceId WRITE setDeviceId NOTIFY deviceIdChanged)
|
Q_PROPERTY(QString deviceId READ deviceId WRITE setDeviceId NOTIFY deviceIdChanged)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum ModelRoles { KeyRole, NameRole, CommandRole };
|
enum ModelRoles {
|
||||||
|
KeyRole,
|
||||||
|
NameRole,
|
||||||
|
CommandRole,
|
||||||
|
};
|
||||||
|
|
||||||
explicit CommandsModel(QObject *parent = nullptr);
|
explicit CommandsModel(QObject *parent = nullptr);
|
||||||
~CommandsModel() override;
|
~CommandsModel() override;
|
||||||
|
|
|
@ -23,7 +23,11 @@ class KDECONNECTINTERFACES_EXPORT RemoteCommandsModel : public QAbstractListMode
|
||||||
Q_PROPERTY(QString deviceId READ deviceId WRITE setDeviceId NOTIFY deviceIdChanged)
|
Q_PROPERTY(QString deviceId READ deviceId WRITE setDeviceId NOTIFY deviceIdChanged)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum ModelRoles { KeyRole, NameRole, CommandRole };
|
enum ModelRoles {
|
||||||
|
KeyRole,
|
||||||
|
NameRole,
|
||||||
|
CommandRole,
|
||||||
|
};
|
||||||
|
|
||||||
explicit RemoteCommandsModel(QObject *parent = nullptr);
|
explicit RemoteCommandsModel(QObject *parent = nullptr);
|
||||||
~RemoteCommandsModel() override;
|
~RemoteCommandsModel() override;
|
||||||
|
|
|
@ -25,7 +25,13 @@ class KDECONNECTINTERFACES_EXPORT RemoteSinksModel : public QAbstractListModel
|
||||||
Q_PROPERTY(QString deviceId READ deviceId WRITE setDeviceId NOTIFY deviceIdChanged)
|
Q_PROPERTY(QString deviceId READ deviceId WRITE setDeviceId NOTIFY deviceIdChanged)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum ModelRoles { NameRole, DescriptionRole, MaxVolumeRole, VolumeRole, MutedRole };
|
enum ModelRoles {
|
||||||
|
NameRole,
|
||||||
|
DescriptionRole,
|
||||||
|
MaxVolumeRole,
|
||||||
|
VolumeRole,
|
||||||
|
MutedRole,
|
||||||
|
};
|
||||||
|
|
||||||
explicit RemoteSinksModel(QObject *parent = nullptr);
|
explicit RemoteSinksModel(QObject *parent = nullptr);
|
||||||
~RemoteSinksModel() override;
|
~RemoteSinksModel() override;
|
||||||
|
|
|
@ -36,7 +36,10 @@ private:
|
||||||
// Keep these values in sync with THRESHOLD* constants in
|
// Keep these values in sync with THRESHOLD* constants in
|
||||||
// kdeconnect-android:BatteryPlugin.java
|
// kdeconnect-android:BatteryPlugin.java
|
||||||
// see README for their meaning
|
// see README for their meaning
|
||||||
enum ThresholdBatteryEvent { ThresholdNone = 0, ThresholdBatteryLow = 1 };
|
enum ThresholdBatteryEvent {
|
||||||
|
ThresholdNone = 0,
|
||||||
|
ThresholdBatteryLow = 1,
|
||||||
|
};
|
||||||
|
|
||||||
int m_charge = -1;
|
int m_charge = -1;
|
||||||
bool m_isCharging = false;
|
bool m_isCharging = false;
|
||||||
|
|
|
@ -24,7 +24,10 @@ class ClipboardListener : public QObject
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum ClipboardContentType { ClipboardContentTypeUnknown = 0, ClipboardContentTypePassword = 1 };
|
enum ClipboardContentType {
|
||||||
|
ClipboardContentTypeUnknown = 0,
|
||||||
|
ClipboardContentTypePassword = 1,
|
||||||
|
};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ClipboardListener();
|
ClipboardListener();
|
||||||
|
|
|
@ -15,7 +15,13 @@
|
||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
#include <fakekey/fakekey.h>
|
#include <fakekey/fakekey.h>
|
||||||
|
|
||||||
enum MouseButtons { LeftMouseButton = 1, MiddleMouseButton = 2, RightMouseButton = 3, MouseWheelUp = 4, MouseWheelDown = 5 };
|
enum MouseButtons {
|
||||||
|
LeftMouseButton = 1,
|
||||||
|
MiddleMouseButton = 2,
|
||||||
|
RightMouseButton = 3,
|
||||||
|
MouseWheelUp = 4,
|
||||||
|
MouseWheelDown = 5,
|
||||||
|
};
|
||||||
|
|
||||||
// Translation table to keep in sync within all the implementations
|
// Translation table to keep in sync within all the implementations
|
||||||
int SpecialKeysMap[] = {
|
int SpecialKeysMap[] = {
|
||||||
|
|
Loading…
Reference in a new issue