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

« back to all changes in this revision

Viewing changes to connection/waylandinputmethodconnection.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) 2012 Canonical Ltd
 
4
 *
 
5
 * Contact: maliit-discuss@lists.maliit.org
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU Lesser General Public
 
9
 * License version 2.1 as published by the Free Software Foundation
 
10
 * and appearing in the file LICENSE.LGPL included in the packaging
 
11
 * of this file.
 
12
 */
 
13
 
 
14
#ifndef WAYLANDINPUTMETHODCONNECTION_H
 
15
#define WAYLANDINPUTMETHODCONNECTION_H
 
16
 
 
17
#include <maliit/namespace.h>
 
18
#include "minputcontextconnection.h"
 
19
#include <qwayland-input-method.h>
 
20
 
 
21
#include <QtCore>
 
22
 
 
23
class WaylandInputMethodConnectionPrivate;
 
24
 
 
25
/*! \internal
 
26
 * \ingroup maliitserver
 
27
 * \brief Input method communication implementation between the Weston
 
28
 * and the input method server.
 
29
 */
 
30
class WaylandInputMethodConnection : public MInputContextConnection
 
31
{
 
32
    Q_OBJECT
 
33
    Q_DISABLE_COPY(WaylandInputMethodConnection)
 
34
    Q_DECLARE_PRIVATE(WaylandInputMethodConnection)
 
35
 
 
36
public:
 
37
    explicit WaylandInputMethodConnection();
 
38
    virtual ~WaylandInputMethodConnection();
 
39
 
 
40
    virtual void sendPreeditString(const QString &string,
 
41
                                   const QList<Maliit::PreeditTextFormat> &preedit_formats,
 
42
                                   int replacement_start = 0,
 
43
                                   int replacement_length = 0,
 
44
                                   int cursor_pos = -1);
 
45
    virtual void sendCommitString(const QString &string,
 
46
                                  int replace_start = 0,
 
47
                                  int replace_length = 0,
 
48
                                  int cursor_pos = -1);
 
49
    virtual void sendKeyEvent(const QKeyEvent &key_event,
 
50
                              Maliit::EventRequestType request_type);
 
51
    virtual void setSelection(int start,
 
52
                              int length);
 
53
    virtual QString selection(bool &valid);
 
54
    virtual void setLanguage(const QString &language);
 
55
 
 
56
private:
 
57
    const QScopedPointer<WaylandInputMethodConnectionPrivate> d_ptr;
 
58
};
 
59
//! \internal_end
 
60
 
 
61
#endif