~vcs-imports-ii/gpgme/master

« back to all changes in this revision

Viewing changes to gpgme/kdpipeiodevice.moc

  • Committer: Marcus Brinkmann
  • Date: 2007-09-06 22:41:11 UTC
  • Revision ID: git-v1:becf580f6163889de683500957a0a7cfceb7ed47
2007-09-07  Marcus Brinkmann  <marcus@g10code.de>

        * configure.ac: Check for C++, Qt and support --enable-w32-qt.
        * m4/pkg.m4: New file.

gpgme/
2007-09-07  Marcus Brinkmann  <marcus@g10code.de>

        * kdpipeiodevice.h, kdpipeiodevice.cpp, moc_kdpipeiodevice.cpp,
        kdpipeiodevice.moc, w32-qt-io.c: New files.
        * Makefile.am (ltlib_gpgme_extra): Rename to ltlib_gpgme_glib.
        (ltlib_gpgme_qt): New variable.
        (lib_LTLIBRARIES): Add $(ltlib_gpgme_qt).
        (libgpgme_qt_la_SOURCES): New variable.
        (AM_CPPFLAGS): Add @QT4_CORE_INCLUDES@
        (AM_CFLAGS): Add @QT4_CORE_CFLAGS@.
        (libgpgme_qt_la_LDFLAGS, libgpgme_qt_la_DEPENDENCIES)
        (libgpgme_qt_la_LIBADD): New variables.
        * sema.h (struct critsect_s): Rename "private" to "priv" to make
        C++ users happy.  Change users.
        * posix-sema.c (_gpgme_sema_cs_enter, _gpgme_sema_cs_leave)
        (_gpgme_sema_cs_destroy): Likewise.
        * w32-sema.c (critsect_init, _gpgme_sema_cs_enter)
        (_gpgme_sema_cs_leave, _gpgme_sema_cs_destroy): Likewise.
        * w32-glib-io.c (gpgme_get_giochannel): Change return type to
        void*.
        (gpgme_get_fdptr): New function.
        * w32-io.c (gpgme_get_fdptr): New function
        * gpgme.def: Add gpgme_get_fdptr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
** Meta object code from reading C++ file 'kdpipeiodevice.cpp'
 
3
**
 
4
** Created: Mon Aug 27 15:17:18 2007
 
5
**      by: The Qt Meta Object Compiler version 59 (Qt 4.3.0)
 
6
**
 
7
** WARNING! All changes made in this file will be lost!
 
8
*****************************************************************************/
 
9
 
 
10
#if !defined(Q_MOC_OUTPUT_REVISION)
 
11
#error "The header file 'kdpipeiodevice.cpp' doesn't include <QObject>."
 
12
#elif Q_MOC_OUTPUT_REVISION != 59
 
13
#error "This file was generated using the moc from 4.3.0. It"
 
14
#error "cannot be used with the include files from this version of Qt."
 
15
#error "(The moc has changed too much.)"
 
16
#endif
 
17
 
 
18
static const uint qt_meta_data_Reader[] = {
 
19
 
 
20
 // content:
 
21
       1,       // revision
 
22
       0,       // classname
 
23
       0,    0, // classinfo
 
24
       1,   10, // methods
 
25
       0,    0, // properties
 
26
       0,    0, // enums/sets
 
27
 
 
28
 // signals: signature, parameters, type, tag, flags
 
29
       8,    7,    7,    7, 0x05,
 
30
 
 
31
       0        // eod
 
32
};
 
33
 
 
34
static const char qt_meta_stringdata_Reader[] = {
 
35
    "Reader\0\0readyRead()\0"
 
36
};
 
37
 
 
38
const QMetaObject Reader::staticMetaObject = {
 
39
    { &QThread::staticMetaObject, qt_meta_stringdata_Reader,
 
40
      qt_meta_data_Reader, 0 }
 
41
};
 
42
 
 
43
const QMetaObject *Reader::metaObject() const
 
44
{
 
45
    return &staticMetaObject;
 
46
}
 
47
 
 
48
void *Reader::qt_metacast(const char *_clname)
 
49
{
 
50
    if (!_clname) return 0;
 
51
    if (!strcmp(_clname, qt_meta_stringdata_Reader))
 
52
        return static_cast<void*>(const_cast< Reader*>(this));
 
53
    return QThread::qt_metacast(_clname);
 
54
}
 
55
 
 
56
int Reader::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
 
57
{
 
58
    _id = QThread::qt_metacall(_c, _id, _a);
 
59
    if (_id < 0)
 
60
        return _id;
 
61
    if (_c == QMetaObject::InvokeMetaMethod) {
 
62
        switch (_id) {
 
63
        case 0: readyRead(); break;
 
64
        }
 
65
        _id -= 1;
 
66
    }
 
67
    return _id;
 
68
}
 
69
 
 
70
// SIGNAL 0
 
71
void Reader::readyRead()
 
72
{
 
73
    QMetaObject::activate(this, &staticMetaObject, 0, 0);
 
74
}
 
75
static const uint qt_meta_data_Writer[] = {
 
76
 
 
77
 // content:
 
78
       1,       // revision
 
79
       0,       // classname
 
80
       0,    0, // classinfo
 
81
       1,   10, // methods
 
82
       0,    0, // properties
 
83
       0,    0, // enums/sets
 
84
 
 
85
 // signals: signature, parameters, type, tag, flags
 
86
       8,    7,    7,    7, 0x05,
 
87
 
 
88
       0        // eod
 
89
};
 
90
 
 
91
static const char qt_meta_stringdata_Writer[] = {
 
92
    "Writer\0\0bytesWritten(qint64)\0"
 
93
};
 
94
 
 
95
const QMetaObject Writer::staticMetaObject = {
 
96
    { &QThread::staticMetaObject, qt_meta_stringdata_Writer,
 
97
      qt_meta_data_Writer, 0 }
 
98
};
 
99
 
 
100
const QMetaObject *Writer::metaObject() const
 
101
{
 
102
    return &staticMetaObject;
 
103
}
 
104
 
 
105
void *Writer::qt_metacast(const char *_clname)
 
106
{
 
107
    if (!_clname) return 0;
 
108
    if (!strcmp(_clname, qt_meta_stringdata_Writer))
 
109
        return static_cast<void*>(const_cast< Writer*>(this));
 
110
    return QThread::qt_metacast(_clname);
 
111
}
 
112
 
 
113
int Writer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
 
114
{
 
115
    _id = QThread::qt_metacall(_c, _id, _a);
 
116
    if (_id < 0)
 
117
        return _id;
 
118
    if (_c == QMetaObject::InvokeMetaMethod) {
 
119
        switch (_id) {
 
120
        case 0: bytesWritten((*reinterpret_cast< qint64(*)>(_a[1]))); break;
 
121
        }
 
122
        _id -= 1;
 
123
    }
 
124
    return _id;
 
125
}
 
126
 
 
127
// SIGNAL 0
 
128
void Writer::bytesWritten(qint64 _t1)
 
129
{
 
130
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
 
131
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
 
132
}