implement update interval of list; can be disabled / changed by user
[kdenetwork.git] / kopete / protocols / testbed / testbedincomingmessage.h
blob226368d92077294b746a50bb9a739b5fac89d155
1 /*
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 *************************************************************************
8 * *
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. *
13 * *
14 *************************************************************************
17 #ifndef TESTBEDINCOMINGMESSAGE_H
18 #define TESTBEDINCOMINGMESSAGE_H
20 #include <qobject.h>
21 #include "testbedfakeserver.h"
23 /**
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
30 Q_OBJECT
31 public:
32 /**
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();
39 /**
40 * Has this message already been delivered?
42 bool delivered() { return m_delivered; }
43 public slots:
44 /**
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.
48 void deliver();
49 protected:
50 QString m_message;
51 TestbedFakeServer* m_server;
52 bool m_delivered;
55 #endif