libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
typing.h
Go to the documentation of this file.
1// THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
2
3#pragma once
4
5#include <Quotient/jobs/basejob.h>
6
7namespace Quotient {
8
9//! \brief Informs the server that the user has started or stopped typing.
10//!
11//! This tells the server that the user is typing for the next N
12//! milliseconds where N is the value specified in the `timeout` key.
13//! Alternatively, if `typing` is `false`, it tells the server that the
14//! user has stopped typing.
16public:
17 //! \param userId
18 //! The user who has started to type.
19 //!
20 //! \param roomId
21 //! The room in which the user is typing.
22 //!
23 //! \param typing
24 //! Whether the user is typing or not. If `false`, the `timeout`
25 //! key can be omitted.
26 //!
27 //! \param timeout
28 //! The length of time in milliseconds to mark this user as typing.
29 explicit SetTypingJob(const QString& userId, const QString& roomId, bool typing,
30 std::optional<int> timeout = std::nullopt);
31};
32
33} // namespace Quotient
Informs the server that the user has started or stopped typing.
Definition typing.h:15
#define QUOTIENT_API