aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppCallManager.h
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2019-10-26 18:53:23 +0200
committerLNJ <lnj@kaidan.im>2019-10-27 11:26:23 +0100
commitf8c546c5b701c53d708a38a951fcc734eaee7940 (patch)
tree1c931fb34dfeb49d8a0a435bddf0dc6927c44f88 /src/client/QXmppCallManager.h
parent942b926b6e468524f410ceb8fc28ee28f60ad7ce (diff)
downloadqxmpp-f8c546c5b701c53d708a38a951fcc734eaee7940.tar.gz
Replace deprecated Q_ENUMS with Q_ENUM
Q_ENUM exists since Qt 5.5, more details can be found here: https://woboq.com/blog/q_enum.html
Diffstat (limited to 'src/client/QXmppCallManager.h')
-rw-r--r--src/client/QXmppCallManager.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/client/QXmppCallManager.h b/src/client/QXmppCallManager.h
index 220bd31f..9f6290e4 100644
--- a/src/client/QXmppCallManager.h
+++ b/src/client/QXmppCallManager.h
@@ -53,7 +53,6 @@ class QXmppRtpVideoChannel;
class QXMPP_EXPORT QXmppCall : public QXmppLoggable
{
Q_OBJECT
- Q_ENUMS(Direction State)
Q_FLAGS(QIODevice::OpenModeFlag QIODevice::OpenMode)
Q_PROPERTY(Direction direction READ direction CONSTANT)
Q_PROPERTY(QString jid READ jid CONSTANT)
@@ -63,20 +62,20 @@ class QXMPP_EXPORT QXmppCall : public QXmppLoggable
public:
/// This enum is used to describe the direction of a call.
- enum Direction
- {
+ enum Direction {
IncomingDirection, ///< The call is incoming.
OutgoingDirection ///< The call is outgoing.
};
+ Q_ENUM(Direction)
/// This enum is used to describe the state of a call.
- enum State
- {
+ enum State {
ConnectingState = 0, ///< The call is being connected.
ActiveState = 1, ///< The call is active.
DisconnectingState = 2, ///< The call is being disconnected.
FinishedState = 3 ///< The call is finished.
};
+ Q_ENUM(State)
~QXmppCall() override;