~ubuntu-branches/ubuntu/vivid/scim-bridge/vivid

« back to all changes in this revision

Viewing changes to client-qt/scim-bridge-client-qt.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-06-25 22:02:52 UTC
  • mfrom: (1.1.9 upstream) (6.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090625220252-2qn0jwi9re34zcth
Tags: 0.4.16-2ubuntu1
* Resynchronise with Debian. Remaining changes:
  - 50_check_scim_binary.dpatch: Fix 10-20s delay in launching apps when
    scim is not running.
  - 50_fix_qt4_focus.dpatch: Fix focus loss under KDE 4.
  - 51_quiet.dpatch: Turn some error messages into debug lines.
  - Just have scim-bridge-agent depend on scim, not scim | skim.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * SCIM Bridge
 
3
 *
 
4
 * Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
 
5
 *
 
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 as published by the Free Software Foundation and 
 
10
 * appearing in the file LICENSE.LGPL included in the package of this file.
 
11
 * You can also redistribute it and/or modify it under the terms of 
 
12
 * the GNU General Public License as published by the Free Software Foundation and 
 
13
 * appearing in the file LICENSE.GPL included in the package of this file.
 
14
 *
 
15
 * This library is distributed in the hope that it will be useful,
 
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
18
 */
 
19
 
 
20
/**
 
21
 * @file
 
22
 * @author Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
 
23
 * @brief This is the header for qt client of scim-bridge.
 
24
 */
 
25
 
 
26
#ifndef SCIMBRIDGECLIENTQT_H_
 
27
#define SCIMBRIDGECLIENTQT_H_
 
28
 
 
29
#ifdef QT4
 
30
#include <QObject>
 
31
#include <QSocketNotifier>
 
32
#else
 
33
#include <qobject.h>
 
34
#include <qsocketnotifier.h>
 
35
#endif
 
36
 
 
37
#include "scim-bridge.h"
 
38
#include "scim-bridge-client-imcontext-qt.h"
 
39
#include "scim-bridge-client-common-qt.h"
 
40
 
 
41
/**
 
42
 * The public interface of scim-bridge-client for Qt apps.
 
43
 */
 
44
class ScimBridgeClientQt: public QObject
 
45
{
 
46
 
 
47
    Q_OBJECT
 
48
 
 
49
    public slots:
 
50
 
 
51
        void handle_message ();
 
52
 
 
53
 
 
54
    public:
 
55
 
 
56
        
 
57
        /**
 
58
         * Constructor.
 
59
         */
 
60
        ScimBridgeClientQt ();
 
61
 
 
62
 
 
63
        /**
 
64
         * Destructor.
 
65
         */
 
66
        ~ScimBridgeClientQt ();
 
67
 
 
68
 
 
69
        /**
 
70
         * A messenger is opened.
 
71
         */
 
72
        void messenger_opened ();
 
73
 
 
74
 
 
75
        /**
 
76
         * A messenger is closed.
 
77
         */
 
78
        void messenger_closed ();
 
79
 
 
80
 
 
81
    private:
 
82
        
 
83
 
 
84
        /**
 
85
         * The notifier for the messenger socket.
 
86
         */
 
87
        QSocketNotifier *socket_notifier;
 
88
 
 
89
};
 
90
 
 
91
#endif                                            /*SCIMBRIDGECLIENTQT_H_*/