~ubuntu-branches/ubuntu/saucy/kopete/saucy-proposed

« back to all changes in this revision

Viewing changes to protocols/testbed/testbedincomingmessage.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-06-21 02:22:39 UTC
  • Revision ID: package-import@ubuntu.com-20130621022239-63l3zc8p0nf26pt6
Tags: upstream-4.10.80
ImportĀ upstreamĀ versionĀ 4.10.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    testbedincomingmessage.cpp - Kopete Testbed Protocol
 
3
 
 
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>
 
6
 
 
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
    *************************************************************************
 
15
*/
 
16
 
 
17
#include "testbedincomingmessage.h"
 
18
 
 
19
TestbedIncomingMessage::TestbedIncomingMessage( TestbedFakeServer* const server , QString message )
 
20
{
 
21
        m_server = server; 
 
22
        m_message = message; 
 
23
        m_delivered = false; 
 
24
}
 
25
 
 
26
TestbedIncomingMessage::~TestbedIncomingMessage()
 
27
{
 
28
}
 
29
 
 
30
void TestbedIncomingMessage::deliver() 
 
31
 
32
        m_server->incomingMessage( m_message ); 
 
33
        m_delivered = true; 
 
34
}
 
35
 
 
36
#include "testbedincomingmessage.moc"