2 testbedfakeserver.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 TESTBEDFAKESERVER_H
18 #define TESTBEDFAKESERVER_H
24 class TestbedIncomingMessage
;
27 * This is a interface to a dummy IM server
28 * @author Will Stephenson
30 class TestbedFakeServer
: public QObject
37 * Called to simulate sending a message to a remote contact
39 void sendMessage( const QString
&contactId
, const QString
&message
);
43 * A message came in off the simulated wire.
44 * In reality, a message on the incoming message list
45 * connects to this slot when it's time to 'arrive'
47 void incomingMessage( QString message
);
51 * Tells the account that a message arrived
53 void messageReceived( const QString
&message
);
57 * Utility method, just clears delivered messages from the
58 * incoming message list
62 * List of incoming messages
64 QList
<TestbedIncomingMessage
*> m_incomingMessages
;