From 7e72c9caae6c522f6c64b357434396b633876509 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Sat, 26 Sep 2009 16:58:23 +0100
Subject: Preparations for adding subscription requests.


diff --git a/Swift/QtUI/EventViewer/EventModel.cpp b/Swift/QtUI/EventViewer/EventModel.cpp
index 8b13789..a2343ed 100644
--- a/Swift/QtUI/EventViewer/EventModel.cpp
+++ b/Swift/QtUI/EventViewer/EventModel.cpp
@@ -1 +1,20 @@
+#include "EventModel.h"
 
+namespace Swift {
+EventModel::EventModel() {
+	
+}
+
+EventModel::~EventModel() {
+	
+}
+
+QVariant EventModel::data(const QModelIndex& index, int role) const {
+	return QVariant();
+}
+
+int EventModel::rowCount(const QModelIndex& parent) const {
+	return 0;
+}
+
+}
diff --git a/Swift/QtUI/EventViewer/EventModel.h b/Swift/QtUI/EventViewer/EventModel.h
index 8b13789..18195f1 100644
--- a/Swift/QtUI/EventViewer/EventModel.h
+++ b/Swift/QtUI/EventViewer/EventModel.h
@@ -1 +1,16 @@
+#pragma once
 
+#include <QAbstractListModel>
+#include <QList>
+
+namespace Swift {
+class EventModel : public QAbstractListModel {
+Q_OBJECT
+public:
+	EventModel();
+	~EventModel();
+	QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
+	int rowCount(const QModelIndex& parent = QModelIndex()) const;
+};
+
+}
diff --git a/Swift/QtUI/EventViewer/EventView.cpp b/Swift/QtUI/EventViewer/EventView.cpp
index bd89f7a..c988685 100644
--- a/Swift/QtUI/EventViewer/EventView.cpp
+++ b/Swift/QtUI/EventViewer/EventView.cpp
@@ -1,7 +1,7 @@
 #include "Swift/QtUI/EventViewer/EventView.h"
 
 namespace Swift {
-EventView::EventView(QWidget* parent) : QWidget(parent) {
+EventView::EventView(QWidget* parent) : QListView(parent) {
 	
 }
 
diff --git a/Swift/QtUI/EventViewer/EventView.h b/Swift/QtUI/EventViewer/EventView.h
index c677e99..d17a704 100644
--- a/Swift/QtUI/EventViewer/EventView.h
+++ b/Swift/QtUI/EventViewer/EventView.h
@@ -1,9 +1,9 @@
 #pragma once
 
-#include <QWidget>
+#include <QListView>
 
 namespace Swift {
-	class EventView : public QWidget {
+	class EventView : public QListView {
 		Q_OBJECT
 		public:
 			EventView(QWidget* parent);
diff --git a/Swiften/Presence/PresenceOracle.h b/Swiften/Presence/PresenceOracle.h
index 81f289b..320a999 100644
--- a/Swiften/Presence/PresenceOracle.h
+++ b/Swiften/Presence/PresenceOracle.h
@@ -15,6 +15,7 @@ class PresenceOracle {
 		~PresenceOracle() {};
 
 		boost::signal<void (boost::shared_ptr<Presence>, boost::shared_ptr<Presence>)> onPresenceChange;
+		boost::signal<void (const JID&, const String&)> onPresenceSubscriptionRequest;
 
 	private:
 		void handleIncomingPresence(boost::shared_ptr<Presence> presence);
-- 
cgit v0.10.2-6-g49f6