~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to tests/bbt_connection/bbt_connection.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo, Sergio Schvezov, Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mfrom: (1.1.2) (1.2.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130723194704-1lsy1kmlda069cea
Tags: 0.99.0+git20130615+97e8335-0ubuntu1
[ Sergio Schvezov ]
* New build from HEAD 97e8335.
* Packaging import from lp:phablet-extras/maliit-framework.

[ Ricardo Salveti de Araujo ]
* debian/control: adding vcs and fixing dependencies
* General package cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* * This file is part of Maliit framework *
2
 
 *
3
 
 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4
 
 * All rights reserved.
5
 
 *
6
 
 * Contact: maliit-discuss@lists.maliit.org
7
 
 *
8
 
 * This library is free software; you can redistribute it and/or
9
 
 * modify it under the terms of the GNU Lesser General Public
10
 
 * License version 2.1 as published by the Free Software Foundation
11
 
 * and appearing in the file LICENSE.LGPL included in the packaging
12
 
 * of this file.
13
 
 */
14
 
 
15
 
#ifndef BBT_CONNECTION_H
16
 
#define BBT_CONNECTION_H
17
 
 
18
 
#include <QtTest/QtTest>
19
 
#include <QtCore>
20
 
 
21
 
#include <minputcontextconnection.h>
22
 
#include <mimserverconnection.h>
23
 
 
24
 
/* Bt_Connection
25
 
  This class tests the connection between the input method server,
26
 
  and the input method context.
27
 
 
28
 
  There are multiple implementations of the imServer<->inputContext
29
 
  communication, and they are all tested here.
30
 
  */
31
 
 
32
 
class Bbt_Connection : public QObject
33
 
{
34
 
    Q_OBJECT
35
 
 
36
 
private Q_SLOTS:
37
 
    void initTestCase();
38
 
    void cleanupTestCase();
39
 
 
40
 
    void init();
41
 
    void cleanup();
42
 
 
43
 
    void testInvokeAction_data();
44
 
    void testInvokeAction();
45
 
 
46
 
    void testImInitiatedHide_data();
47
 
    void testImInitiatedHide();
48
 
 
49
 
    void testSetRedirectKeys_data();
50
 
    void testSetRedirectKeys();
51
 
 
52
 
    void testSetGlobalCorrectionEnabled_data();
53
 
    void testSetGlobalCorrectionEnabled();
54
 
 
55
 
    void testSetDetectableAutoRepeat_data();
56
 
    void testSetDetectableAutoRepeat();
57
 
 
58
 
    void testSetSelection_data();
59
 
    void testSetSelection();
60
 
 
61
 
    void testCommitString();
62
 
    void testCommitString_data();
63
 
 
64
 
private:
65
 
    void setupConnectionsDataVoid();
66
 
    void setupConnectionsDataBool();
67
 
 
68
 
    MImServerConnection *serverConnection();
69
 
    MInputContextConnection *icConnection();
70
 
 
71
 
private:
72
 
    QMap<QString, MImServerConnection *> mServerConnections;
73
 
    QMap<QString, MInputContextConnection *> mIcConnections;
74
 
    QList<QString> mConnectionTypes;
75
 
};
76
 
 
77
 
#endif