forked from quickshell/quickshell
all: use fully qualified type names in signals and invokables
Further fixes qmllint/qmlls
This commit is contained in:
parent
98cdb87181
commit
cdeec6ee83
8 changed files with 13 additions and 12 deletions
|
@ -29,7 +29,7 @@ public:
|
|||
};
|
||||
Q_ENUM(Enum);
|
||||
|
||||
Q_INVOKABLE static QString toString(MprisPlaybackState::Enum status);
|
||||
Q_INVOKABLE static QString toString(qs::service::mpris::MprisPlaybackState::Enum status);
|
||||
};
|
||||
|
||||
///! Loop state of an MprisPlayer
|
||||
|
@ -47,7 +47,7 @@ public:
|
|||
};
|
||||
Q_ENUM(Enum);
|
||||
|
||||
Q_INVOKABLE static QString toString(MprisLoopState::Enum status);
|
||||
Q_INVOKABLE static QString toString(qs::service::mpris::MprisLoopState::Enum status);
|
||||
};
|
||||
|
||||
///! A media player exposed over MPRIS.
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
};
|
||||
Q_ENUM(Enum);
|
||||
|
||||
Q_INVOKABLE static QString toString(NotificationUrgency::Enum value);
|
||||
Q_INVOKABLE static QString toString(qs::service::notifications::NotificationUrgency::Enum value);
|
||||
};
|
||||
|
||||
///! The reason a Notification was closed.
|
||||
|
@ -51,7 +51,8 @@ public:
|
|||
};
|
||||
Q_ENUM(Enum);
|
||||
|
||||
Q_INVOKABLE static QString toString(NotificationCloseReason::Enum value);
|
||||
Q_INVOKABLE static QString
|
||||
toString(qs::service::notifications::NotificationCloseReason::Enum value);
|
||||
};
|
||||
|
||||
class NotificationAction;
|
||||
|
@ -149,7 +150,7 @@ signals:
|
|||
/// Sent when a notification has been closed.
|
||||
///
|
||||
/// The notification object will be destroyed as soon as all signal handlers exit.
|
||||
void closed(NotificationCloseReason::Enum reason);
|
||||
void closed(qs::service::notifications::NotificationCloseReason::Enum reason);
|
||||
|
||||
void trackedChanged();
|
||||
void expireTimeoutChanged();
|
||||
|
|
|
@ -114,7 +114,7 @@ signals:
|
|||
/// Sent when a notification is received by the server.
|
||||
///
|
||||
/// If this notification should not be discarded, set its `tracked` property to true.
|
||||
void notification(Notification* notification);
|
||||
void notification(qs::service::notifications::Notification* notification);
|
||||
|
||||
void keepOnReloadChanged();
|
||||
void persistenceSupportedChanged();
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
};
|
||||
Q_ENUM(Enum);
|
||||
|
||||
Q_INVOKABLE static QString toString(PwLinkState::Enum value);
|
||||
Q_INVOKABLE static QString toString(qs::service::pipewire::PwLinkState::Enum value);
|
||||
};
|
||||
|
||||
constexpr const char TYPE_INTERFACE_Link[] = PW_TYPE_INTERFACE_Link; // NOLINT
|
||||
|
|
|
@ -84,7 +84,7 @@ public:
|
|||
|
||||
/// Print a human readable representation of the given channel,
|
||||
/// including aux and custom channel ranges.
|
||||
Q_INVOKABLE static QString toString(PwAudioChannel::Enum value);
|
||||
Q_INVOKABLE static QString toString(qs::service::pipewire::PwAudioChannel::Enum value);
|
||||
};
|
||||
|
||||
enum class PwNodeType {
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
};
|
||||
Q_ENUM(Enum);
|
||||
|
||||
Q_INVOKABLE static QString toString(UPowerDeviceState::Enum status);
|
||||
Q_INVOKABLE static QString toString(qs::service::upower::UPowerDeviceState::Enum status);
|
||||
};
|
||||
|
||||
///! Type of a UPower device.
|
||||
|
@ -77,7 +77,7 @@ public:
|
|||
};
|
||||
Q_ENUM(Enum);
|
||||
|
||||
Q_INVOKABLE static QString toString(UPowerDeviceType::Enum type);
|
||||
Q_INVOKABLE static QString toString(qs::service::upower::UPowerDeviceType::Enum type);
|
||||
};
|
||||
|
||||
///! A device exposed through the UPower system service.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue