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

« back to all changes in this revision

Viewing changes to libkopete/tests/kopetemessage_test.h

  • 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
    Tests for Kopete::Message
 
3
 
 
4
    Copyright (c) 2005      by Duncan Mac-Vicar       <duncan@kde.org>
 
5
    Copyright (c) 2005      by Tommi Rantala  <tommi.rantala@cs.helsinki.fi>
 
6
 
 
7
    Kopete    (c) 2002-2005 by the Kopete developers  <kopete-devel@kde.org>
 
8
 
 
9
    *************************************************************************
 
10
    *                                                                       *
 
11
    * This program is free software; you can redistribute it and/or modify  *
 
12
    * it under the terms of the GNU General Public License as published by  *
 
13
    * the Free Software Foundation; either version 2 of the License, or     *
 
14
    * (at your option) any later version.                                   *
 
15
    *                                                                       *
 
16
    *************************************************************************
 
17
*/
 
18
 
 
19
#ifndef KOPETEMESSAGE_TEST_H
 
20
#define KOPETEMESSAGE_TEST_H
 
21
 
 
22
#include <QObject>
 
23
 
 
24
#define private public
 
25
#include "kopetemessage.h"
 
26
#undef private
 
27
 
 
28
namespace Kopete
 
29
{
 
30
class Protocol;
 
31
class Account;
 
32
class MetaContact;
 
33
class Contact;
 
34
}
 
35
 
 
36
// change to SlotTester when it works
 
37
class KopeteMessage_Test : public QObject
 
38
{
 
39
        Q_OBJECT
 
40
public:
 
41
        KopeteMessage_Test();
 
42
 
 
43
private slots:
 
44
        void testPrimitives();
 
45
        void testLinkParser();
 
46
 
 
47
private:
 
48
        Kopete::Protocol *m_protocol;
 
49
        Kopete::Account *m_account;
 
50
        Kopete::MetaContact *m_metaContactMyself;
 
51
        Kopete::MetaContact *m_metaContactOther;
 
52
        Kopete::Contact *m_contactFrom;
 
53
        Kopete::Contact *m_contactTo;
 
54
};
 
55
 
 
56
#endif
 
57