1
/* * This file is part of Maliit framework *
3
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
6
* Contact: maliit-discuss@lists.maliit.org
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
15
#ifndef BBT_CONNECTION_H
16
#define BBT_CONNECTION_H
18
#include <QtTest/QtTest>
21
#include <minputcontextconnection.h>
22
#include <mimserverconnection.h>
25
This class tests the connection between the input method server,
26
and the input method context.
28
There are multiple implementations of the imServer<->inputContext
29
communication, and they are all tested here.
32
class Bbt_Connection : public QObject
38
void cleanupTestCase();
43
void testInvokeAction_data();
44
void testInvokeAction();
46
void testImInitiatedHide_data();
47
void testImInitiatedHide();
49
void testSetRedirectKeys_data();
50
void testSetRedirectKeys();
52
void testSetGlobalCorrectionEnabled_data();
53
void testSetGlobalCorrectionEnabled();
55
void testSetDetectableAutoRepeat_data();
56
void testSetDetectableAutoRepeat();
58
void testSetSelection_data();
59
void testSetSelection();
61
void testCommitString();
62
void testCommitString_data();
65
void setupConnectionsDataVoid();
66
void setupConnectionsDataBool();
68
MImServerConnection *serverConnection();
69
MInputContextConnection *icConnection();
72
QMap<QString, MImServerConnection *> mServerConnections;
73
QMap<QString, MInputContextConnection *> mIcConnections;
74
QList<QString> mConnectionTypes;