Commit fe6c5ce5 authored by Lasath Fernando's avatar Lasath Fernando Committed by David Edmundson

Exported ConversationWatcher and ConversationModel to QML.

Created a basic plasmoid that doesn't do anything.

But everything compiles at least :)
parent 5ed2e390
......@@ -21,13 +21,15 @@
#ifndef CONVERSATION_H
#define CONVERSATION_H
#include "kdetelepathychat_export.h"
#include <QObject>
#include <TelepathyQt4/Account>
#include <TelepathyQt4/TextChannel>
#include "conversation-model.h"
class ConversationModel;
class Conversation : public QObject
class KDE_TELEPATHY_CHAT_EXPORT Conversation : public QObject
{
Q_OBJECT
Q_PROPERTY(const ConversationModel* model READ model NOTIFY modelChanged)
......
......@@ -37,7 +37,9 @@ static inline Tp::ChannelClassSpecList channelClassList()
ConversationWatcher::ConversationWatcher() :
AbstractClientObserver(channelClassList())
{
kDebug();
qFatal("Derp!");
*(int*)0=0;
}
void ConversationWatcher::observeChannels(const Tp::MethodInvocationContextPtr<>& context,
......@@ -66,7 +68,6 @@ void ConversationWatcher::observeChannels(const Tp::MethodInvocationContextPtr<>
ConversationWatcher::~ConversationWatcher()
{
}
#include "moc_conversation-watcher.cpp"
\ No newline at end of file
......@@ -21,11 +21,12 @@
#ifndef CONVERSATION_WATCHER_H
#define CONVERSATION_WATCHER_H
#include "kdetelepathychat_export.h"
#include <TelepathyQt4/AbstractClient>
class Conversation;
class ConversationWatcher : public QObject, public Tp::AbstractClientObserver
class KDE_TELEPATHY_CHAT_EXPORT ConversationWatcher : public QObject, public Tp::AbstractClientObserver
{
Q_OBJECT
......@@ -39,7 +40,7 @@ public:
const Tp::AbstractClientObserver::ObserverInfo& observerInfo
);
ConversationWatcher();
virtual ~ConversationWatcher();
~ConversationWatcher();
Q_SIGNALS:
void newConversation(Conversation&);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment