<commit_before>/* * This file is part of dui-im-framework *
 *
 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * Contact: Nokia Corporation (<EMAIL>)
 *
 * If you have questions regarding the use of this file, please contact
 * Nokia at <EMAIL>.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1 as published by the Free Software Foundation
 * and appearing in the file LICENSE.LGPL included in the packaging
 * of this file.
 */

#ifndef DUIINPUTCONTEXTADAPTOR_H
#define DUIINPUTCONTEXTADAPTOR_H

#include <QString>
#include <QDBusAbstractAdaptor>
#include <QList>
#include <QMap>
#include <QRect>

class DuiInputContext;


class DuiInputContextAdaptor: public QDBusAbstractAdaptor
{
    Q_OBJECT
    Q_CLASSINFO("D-Bus Interface", "org.maemo.duiinputcontext1")
    // FIXME: introspection

public:
    DuiInputContextAdaptor(DuiInputContext *parent);
    virtual ~DuiInputContextAdaptor();

public slots:
    virtual Q_NOREPLY void activationLostEvent();
    virtual Q_NOREPLY void imInitiatedHide();
    virtual Q_NOREPLY void commitString(const QString &string);
    virtual Q_NOREPLY void updatePreedit(const QString &string, int preeditFace);
    virtual Q_NOREPLY void keyEvent(int type, int key, int modifiers, const QString &text,
                                    bool autoRepeat, int count);
    virtual Q_NOREPLY void updateInputMethodArea(const QList<QVariant> &data);
    virtual Q_NOREPLY void setGlobalCorrectionEnabled(bool);
    virtual Q_NOREPLY void copy();
    virtual Q_NOREPLY void paste();
    virtual Q_NOREPLY void setRedirectKeys(bool enabled);

    // valid is out parameter for value validity
    virtual QRect preeditRectangle(bool &valid);

private:
    DuiInputContext *owner;
};


#endif<commit_msg>Changes: Make a single-parameter ctor explicit<commit_after>/* * This file is part of dui-im-framework *
 *
 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * Contact: Nokia Corporation (<EMAIL>)
 *
 * If you have questions regarding the use of this file, please contact
 * Nokia at <EMAIL>.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1 as published by the Free Software Foundation
 * and appearing in the file LICENSE.LGPL included in the packaging
 * of this file.
 */

#ifndef DUIINPUTCONTEXTADAPTOR_H
#define DUIINPUTCONTEXTADAPTOR_H

#include <QString>
#include <QDBusAbstractAdaptor>
#include <QList>
#include <QMap>
#include <QRect>

class DuiInputContext;


class DuiInputContextAdaptor: public QDBusAbstractAdaptor
{
    Q_OBJECT
    Q_CLASSINFO("D-Bus Interface", "org.maemo.duiinputcontext1")
    // FIXME: introspection

public:
    explicit DuiInputContextAdaptor(DuiInputContext *parent);
    virtual ~DuiInputContextAdaptor();

public slots:
    virtual Q_NOREPLY void activationLostEvent();
    virtual Q_NOREPLY void imInitiatedHide();
    virtual Q_NOREPLY void commitString(const QString &string);
    virtual Q_NOREPLY void updatePreedit(const QString &string, int preeditFace);
    virtual Q_NOREPLY void keyEvent(int type, int key, int modifiers, const QString &text,
                                    bool autoRepeat, int count);
    virtual Q_NOREPLY void updateInputMethodArea(const QList<QVariant> &data);
    virtual Q_NOREPLY void setGlobalCorrectionEnabled(bool);
    virtual Q_NOREPLY void copy();
    virtual Q_NOREPLY void paste();
    virtual Q_NOREPLY void setRedirectKeys(bool enabled);

    // valid is out parameter for value validity
    virtual QRect preeditRectangle(bool &valid);

private:
    DuiInputContext *owner;
};


#endif
{'fraction_non_alphanumeric': 0.07563025210084033, 'fraction_numerical': 0.003676470588235294, 'mean_word_length': 4.203551912568306, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3001161', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1129, 'n_words': 385}