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

« back to all changes in this revision

Viewing changes to src/quick/maliitquick.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) 2011 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 MALIIT_KEYBOARD_QUICK_H
 
16
#define MALIIT_KEYBOARD_QUICK_H
 
17
 
 
18
#include <QObject>
 
19
#include <maliit/namespace.h>
 
20
 
 
21
//! \brief MaliitQuick exposes Maliit enums to QML-based input methods
 
22
class MaliitQuick: public QObject
 
23
{
 
24
    Q_OBJECT
 
25
    Q_ENUMS(SwitchDirection)
 
26
    Q_ENUMS(ContentType)
 
27
    Q_ENUMS(KeyEvent)
 
28
    Q_ENUMS(PreeditFace)
 
29
 
 
30
public:
 
31
    //! This enum defines direction of plugin switching
 
32
    enum SwitchDirection {
 
33
        SwitchUndefined = Maliit::SwitchUndefined, //!< Special value for uninitialized variables
 
34
        SwitchForward = Maliit::SwitchForward, //!< Activate next plugin
 
35
        SwitchBackward = Maliit::SwitchBackward //!< Activate previous plugin
 
36
    };
 
37
 
 
38
    enum ContentType {
 
39
        FreeTextContentType = Maliit::FreeTextContentType,
 
40
        NumberContentType = Maliit::NumberContentType,
 
41
        PhoneNumberContentType = Maliit::PhoneNumberContentType,
 
42
        EmailContentType = Maliit::EmailContentType,
 
43
        UrlContentType = Maliit::UrlContentType,
 
44
        CustomContentType = Maliit::CustomContentType
 
45
    };
 
46
 
 
47
    enum KeyEvent {
 
48
        KeyPress,
 
49
        KeyRelease,
 
50
        KeyClick
 
51
    };
 
52
 
 
53
    enum PreeditFace {
 
54
        PreeditDefault = Maliit::PreeditDefault,
 
55
        PreeditNoCandidates = Maliit::PreeditNoCandidates,
 
56
        PreeditKeyPress = Maliit::PreeditKeyPress
 
57
    };
 
58
};
 
59
 
 
60
#endif // MALIIT_KEYBOARD_QUICK_H