hlp:桂林国际齿轮泵代码

This commit is contained in:
kite_lucs
2026-10-09 10:25:24 +08:00
commit fd606b3c81
2447 changed files with 999531 additions and 0 deletions
@@ -0,0 +1,192 @@
/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
** This file may be used 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. Please review the following information to ensure the GNU Lesser
** General Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU General
** Public License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of this
** file. Please review the following information to ensure the GNU General
** Public License version 3.0 requirements will be met:
** http://www.gnu.org/copyleft/gpl.html.
**
** Other Usage
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QJSONVALUE_H
#define QJSONVALUE_H
#include <QtCore/qglobal.h>
#include <QtCore/qstring.h>
#include <QtCore/qvariant.h>
#include "qjsonexport.h"
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
class QDebug;
class QVariant;
class QJsonArray;
class QJsonObject;
namespace QJsonPrivate {
class Data;
class Base;
class Object;
class Header;
class Array;
class Value;
class Entry;
}
class Q_JSONRPC_EXPORT QJsonValue
{
public:
enum Type {
Null = 0x0,
Bool = 0x1,
Double = 0x2,
String = 0x3,
Array = 0x4,
Object = 0x5,
Undefined = 0x80
};
QJsonValue(Type = Null);
QJsonValue(bool b);
QJsonValue(double n);
QJsonValue(int n);
QJsonValue(const QString &s);
QJsonValue(const QLatin1String &s);
QJsonValue(const QJsonArray &a);
QJsonValue(const QJsonObject &o);
~QJsonValue();
QJsonValue(const QJsonValue &other);
QJsonValue &operator =(const QJsonValue &other);
static QJsonValue fromVariant(const QVariant &variant);
QVariant toVariant() const;
Type type() const;
inline bool isNull() const { return type() == Null; }
inline bool isBool() const { return type() == Bool; }
inline bool isDouble() const { return type() == Double; }
inline bool isString() const { return type() == String; }
inline bool isArray() const { return type() == Array; }
inline bool isObject() const { return type() == Object; }
inline bool isUndefined() const { return type() == Undefined; }
bool toBool() const;
double toDouble() const;
QString toString() const;
QJsonArray toArray() const;
QJsonObject toObject() const;
bool operator==(const QJsonValue &other) const;
bool operator!=(const QJsonValue &other) const;
inline QJsonValue(const void *) {}
private:
// avoid implicit conversions from char * to bool
friend class QJsonPrivate::Value;
friend class QJsonArray;
friend class QJsonObject;
friend Q_JSONRPC_EXPORT QDebug operator<<(QDebug, const QJsonValue &);
QJsonValue(QJsonPrivate::Data *d, QJsonPrivate::Base *b, const QJsonPrivate::Value& v);
void detach();
union {
quint64 ui;
bool b;
double dbl;
// QStringData *stringData;
QJsonPrivate::Base *base;
};
QString stringValue;
QJsonPrivate::Data *d; // needed for Objects and Arrays
Type t;
};
class Q_JSONRPC_EXPORT QJsonValueRef
{
public:
QJsonValueRef(QJsonArray *array, int idx)
: a(array), is_object(false), index(idx) {}
QJsonValueRef(QJsonObject *object, int idx)
: o(object), is_object(true), index(idx) {}
inline operator QJsonValue() const { return toValue(); }
QJsonValueRef &operator = (const QJsonValue &val);
inline QJsonValue::Type type() const { return toValue().type(); }
inline bool isNull() const { return type() == QJsonValue::Null; }
inline bool isBool() const { return type() == QJsonValue::Bool; }
inline bool isDouble() const { return type() == QJsonValue::Double; }
inline bool isString() const { return type() == QJsonValue::String; }
inline bool isArray() const { return type() == QJsonValue::Array; }
inline bool isObject() const { return type() == QJsonValue::Object; }
inline bool isUndefined() const { return type() == QJsonValue::Undefined; }
inline bool toBool() const { return toValue().toBool(); }
inline double toDouble() const { return toValue().toDouble(); }
inline QString toString() const { return toValue().toString(); }
QJsonArray toArray() const;
QJsonObject toObject() const;
inline bool operator==(const QJsonValue &other) const { return toValue() == other; }
inline bool operator!=(const QJsonValue &other) const { return toValue() != other; }
private:
QJsonValue toValue() const;
union {
QJsonArray *a;
QJsonObject *o;
};
uint is_object : 1;
uint index : 31;
};
#ifndef QT_NO_DEBUG_STREAM
Q_JSONRPC_EXPORT QDebug operator<<(QDebug, const QJsonValue &);
#endif
QT_END_NAMESPACE
QT_END_HEADER
#endif // QJSONVALUE_H
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

@@ -0,0 +1,226 @@
/****************************************************************************
** Meta object code from reading C++ file 'modbustcp.h'
**
** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../modbus/modbustcp.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'modbustcp.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 63
#error "This file was generated using the moc from 4.8.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_ModbusTcp[] = {
// content:
6, // revision
0, // classname
0, 0, // classinfo
16, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
15, // signalCount
// signals: signature, parameters, type, tag, flags
11, 10, 10, 10, 0x05,
24, 10, 10, 10, 0x05,
37, 10, 10, 10, 0x05,
51, 49, 10, 10, 0x05,
74, 10, 10, 10, 0x05,
100, 10, 10, 10, 0x05,
114, 10, 10, 10, 0x05,
150, 130, 10, 10, 0x05,
178, 10, 10, 10, 0x05,
193, 10, 10, 10, 0x05,
210, 10, 10, 10, 0x05,
235, 10, 10, 10, 0x05,
260, 10, 10, 10, 0x05,
288, 10, 10, 10, 0x05,
314, 10, 10, 10, 0x05,
// slots: signature, parameters, type, tag, flags
328, 10, 10, 10, 0x0a,
0 // eod
};
static const char qt_meta_stringdata_ModbusTcp[] = {
"ModbusTcp\0\0startPrint()\0pausePrint()\0"
"stopPrint()\0,\0openFile(QString,bool)\0"
"receivedPrintContent(int)\0faultResume()\0"
"writeCalendar()\0lineSpace,charSpace\0"
"mbLineAndCharSpace(int,int)\0updateQRcode()\0"
"writeCalendar1()\0writeCalendar1EndValue()\0"
"writeCalendar2EndValue()\0"
"writeCalendar2RepeatValue()\0"
"writeCalendar2InitValue()\0CNTResetNow()\0"
"pvPollingThread()\0"
};
void ModbusTcp::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
Q_ASSERT(staticMetaObject.cast(_o));
ModbusTcp *_t = static_cast<ModbusTcp *>(_o);
switch (_id) {
case 0: _t->startPrint(); break;
case 1: _t->pausePrint(); break;
case 2: _t->stopPrint(); break;
case 3: _t->openFile((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
case 4: _t->receivedPrintContent((*reinterpret_cast< int(*)>(_a[1]))); break;
case 5: _t->faultResume(); break;
case 6: _t->writeCalendar(); break;
case 7: _t->mbLineAndCharSpace((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
case 8: _t->updateQRcode(); break;
case 9: _t->writeCalendar1(); break;
case 10: _t->writeCalendar1EndValue(); break;
case 11: _t->writeCalendar2EndValue(); break;
case 12: _t->writeCalendar2RepeatValue(); break;
case 13: _t->writeCalendar2InitValue(); break;
case 14: _t->CNTResetNow(); break;
case 15: _t->pvPollingThread(); break;
default: ;
}
}
}
const QMetaObjectExtraData ModbusTcp::staticMetaObjectExtraData = {
0, qt_static_metacall
};
const QMetaObject ModbusTcp::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_ModbusTcp,
qt_meta_data_ModbusTcp, &staticMetaObjectExtraData }
};
#ifdef Q_NO_DATA_RELOCATION
const QMetaObject &ModbusTcp::getStaticMetaObject() { return staticMetaObject; }
#endif //Q_NO_DATA_RELOCATION
const QMetaObject *ModbusTcp::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
}
void *ModbusTcp::qt_metacast(const char *_clname)
{
if (!_clname) return 0;
if (!strcmp(_clname, qt_meta_stringdata_ModbusTcp))
return static_cast<void*>(const_cast< ModbusTcp*>(this));
return QObject::qt_metacast(_clname);
}
int ModbusTcp::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QObject::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 16)
qt_static_metacall(this, _c, _id, _a);
_id -= 16;
}
return _id;
}
// SIGNAL 0
void ModbusTcp::startPrint()
{
QMetaObject::activate(this, &staticMetaObject, 0, 0);
}
// SIGNAL 1
void ModbusTcp::pausePrint()
{
QMetaObject::activate(this, &staticMetaObject, 1, 0);
}
// SIGNAL 2
void ModbusTcp::stopPrint()
{
QMetaObject::activate(this, &staticMetaObject, 2, 0);
}
// SIGNAL 3
void ModbusTcp::openFile(QString _t1, bool _t2)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
// SIGNAL 4
void ModbusTcp::receivedPrintContent(int _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 4, _a);
}
// SIGNAL 5
void ModbusTcp::faultResume()
{
QMetaObject::activate(this, &staticMetaObject, 5, 0);
}
// SIGNAL 6
void ModbusTcp::writeCalendar()
{
QMetaObject::activate(this, &staticMetaObject, 6, 0);
}
// SIGNAL 7
void ModbusTcp::mbLineAndCharSpace(int _t1, int _t2)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
QMetaObject::activate(this, &staticMetaObject, 7, _a);
}
// SIGNAL 8
void ModbusTcp::updateQRcode()
{
QMetaObject::activate(this, &staticMetaObject, 8, 0);
}
// SIGNAL 9
void ModbusTcp::writeCalendar1()
{
QMetaObject::activate(this, &staticMetaObject, 9, 0);
}
// SIGNAL 10
void ModbusTcp::writeCalendar1EndValue()
{
QMetaObject::activate(this, &staticMetaObject, 10, 0);
}
// SIGNAL 11
void ModbusTcp::writeCalendar2EndValue()
{
QMetaObject::activate(this, &staticMetaObject, 11, 0);
}
// SIGNAL 12
void ModbusTcp::writeCalendar2RepeatValue()
{
QMetaObject::activate(this, &staticMetaObject, 12, 0);
}
// SIGNAL 13
void ModbusTcp::writeCalendar2InitValue()
{
QMetaObject::activate(this, &staticMetaObject, 13, 0);
}
// SIGNAL 14
void ModbusTcp::CNTResetNow()
{
QMetaObject::activate(this, &staticMetaObject, 14, 0);
}
QT_END_MOC_NAMESPACE