~ubuntu-branches/ubuntu/karmic/kdepim/karmic-backports

« back to all changes in this revision

Viewing changes to akonadi/resources/imap/tests/fakeserver.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2009-07-10 06:34:50 UTC
  • mfrom: (1.1.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20090710063450-neojgew2fh0n3y0u
Tags: 4:4.2.96-0ubuntu1
* New upstream release
* Bump kde build-deps to 4.2.96

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
   Copyright (C) 2008 Omat Holding B.V. <info@omat.nl>
3
 
 
4
 
   This program is free software; you can redistribute it and/or
5
 
   modify it under the terms of the GNU General Public
6
 
   License as published by the Free Software Foundation; either
7
 
   version 2 of the License, or (at your option) any later version.
8
 
 
9
 
   This program is distributed in the hope that it will be useful,
10
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 
   General Public License for more details.
13
 
 
14
 
   You should have received a copy of the GNU General Public License
15
 
   along with this program; if not, write to the Free Software
16
 
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
 
*/
18
 
 
19
 
 
20
 
#ifndef FAKESERVER_H
21
 
#define FAKESERVER_H
22
 
 
23
 
#include <QStringList>
24
 
#include <QTcpSocket>
25
 
#include <QTcpServer>
26
 
#include <QThread>
27
 
 
28
 
#include "../imap_export.h"
29
 
 
30
 
class IMAP_EXPORT FakeServer : public QThread
31
 
{
32
 
    Q_OBJECT
33
 
 
34
 
public:
35
 
    FakeServer( QObject* );
36
 
    virtual void run();
37
 
    void setResponse( const QStringList& data );
38
 
 
39
 
private:
40
 
    QStringList m_data;
41
 
};
42
 
 
43
 
#endif
44