2
testbedincomingmessage.h - Kopete Testbed Protocol
4
Copyright (c) 2003 by Will Stephenson <will@stevello.free-online.co.uk>
5
Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
7
*************************************************************************
9
* This library is free software; you can redistribute it and/or *
10
* modify it under the terms of the GNU General Public *
11
* License as published by the Free Software Foundation; either *
12
* version 2 of the License, or (at your option) any later version. *
14
*************************************************************************
17
#ifndef TESTBEDINCOMINGMESSAGE_H
18
#define TESTBEDINCOMINGMESSAGE_H
21
#include "testbedfakeserver.h"
24
* A simulated incoming message, that hasn't yet arrived at the
25
* Kopete side 'client' of the simulated IM system.
26
* @author Will Stephenson
28
class TestbedIncomingMessage : public QObject
33
* Create a new incoming message
34
* @param server The simulated Kopete side 'client' of the IM system where the message will arrive when 'delivered'
35
* @param message The simulated message
37
TestbedIncomingMessage( TestbedFakeServer* const server , QString message );
38
virtual ~TestbedIncomingMessage();
40
* Has this message already been delivered?
42
bool delivered() { return m_delivered; }
45
* 'Deliver' the message to Kopete by calling TestbedFakeServer::incomingMessage().
46
* This marks the message as delivered so it can be purged from the incoming list.
51
TestbedFakeServer* m_server;