aboutsummaryrefslogtreecommitdiff
path: root/events
diff options
context:
space:
mode:
Diffstat (limited to 'events')
-rw-r--r--events/receiptevent.h2
-rw-r--r--events/roommemberevent.h5
-rw-r--r--events/roommessageevent.h4
-rw-r--r--events/roomnameevent.cpp4
-rw-r--r--events/roomnameevent.h24
-rw-r--r--events/roomtopicevent.h2
-rw-r--r--events/typingevent.h4
7 files changed, 19 insertions, 26 deletions
diff --git a/events/receiptevent.h b/events/receiptevent.h
index a7e1debf..40c0384f 100644
--- a/events/receiptevent.h
+++ b/events/receiptevent.h
@@ -20,8 +20,6 @@
#include "event.h"
-#include <QtCore/QStringList>
-
namespace QMatrixClient
{
class Receipt
diff --git a/events/roommemberevent.h b/events/roommemberevent.h
index f37cdc04..a33c2982 100644
--- a/events/roommemberevent.h
+++ b/events/roommemberevent.h
@@ -18,11 +18,10 @@
#pragma once
-#include <QtCore/QJsonObject>
-#include <QtCore/QUrl>
-
#include "event.h"
+#include <QtCore/QUrl>
+
namespace QMatrixClient
{
enum class MembershipType {Invite, Join, Knock, Leave, Ban};
diff --git a/events/roommessageevent.h b/events/roommessageevent.h
index 67789ef7..5d5336aa 100644
--- a/events/roommessageevent.h
+++ b/events/roommessageevent.h
@@ -18,12 +18,12 @@
#pragma once
+#include "event.h"
+
#include <QtCore/QUrl>
#include <QtCore/QMimeType>
#include <QtCore/QSize>
-#include "event.h"
-
namespace QMatrixClient
{
enum class MessageEventType
diff --git a/events/roomnameevent.cpp b/events/roomnameevent.cpp
index c5bcf011..c94cb2c3 100644
--- a/events/roomnameevent.cpp
+++ b/events/roomnameevent.cpp
@@ -22,8 +22,8 @@ using namespace QMatrixClient;
class RoomNameEvent::Private
{
-public:
- QString name;
+ public:
+ QString name;
};
RoomNameEvent::RoomNameEvent() :
diff --git a/events/roomnameevent.h b/events/roomnameevent.h
index 0997ad9c..8748c4be 100644
--- a/events/roomnameevent.h
+++ b/events/roomnameevent.h
@@ -22,20 +22,18 @@
namespace QMatrixClient
{
+ class RoomNameEvent : public Event
+ {
+ public:
+ RoomNameEvent();
+ virtual ~RoomNameEvent();
-class RoomNameEvent : public Event
-{
-public:
- RoomNameEvent();
- virtual ~RoomNameEvent();
-
- QString name() const;
-
- static RoomNameEvent* fromJson(const QJsonObject& obj);
+ QString name() const;
-private:
- class Private;
- Private *d;
-};
+ static RoomNameEvent* fromJson(const QJsonObject& obj);
+ private:
+ class Private;
+ Private *d;
+ };
}
diff --git a/events/roomtopicevent.h b/events/roomtopicevent.h
index d4347953..4b0a24b0 100644
--- a/events/roomtopicevent.h
+++ b/events/roomtopicevent.h
@@ -18,8 +18,6 @@
#pragma once
-#include <QtCore/QJsonObject>
-
#include "event.h"
namespace QMatrixClient
diff --git a/events/typingevent.h b/events/typingevent.h
index 5a8b045c..da57a389 100644
--- a/events/typingevent.h
+++ b/events/typingevent.h
@@ -18,10 +18,10 @@
#pragma once
-#include <QtCore/QStringList>
-
#include "event.h"
+#include <QtCore/QStringList>
+
namespace QMatrixClient
{
class TypingEvent: public Event