PythonQtWrapper_QDateTime.cpp
185 lines
| 4.9 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QDateTime.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qdatetime.h> | ||||
QDateTime* PythonQtWrapper_QDateTime::new_QDateTime() | ||||
{ | ||||
return new QDateTime(); } | ||||
QDateTime* PythonQtWrapper_QDateTime::new_QDateTime(const QDate& arg__1) | ||||
{ | ||||
return new QDateTime(arg__1); } | ||||
QDateTime* PythonQtWrapper_QDateTime::new_QDateTime(const QDate& arg__1, const QTime& arg__2, Qt::TimeSpec spec) | ||||
{ | ||||
return new QDateTime(arg__1, arg__2, spec); } | ||||
QDateTime* PythonQtWrapper_QDateTime::new_QDateTime(const QDateTime& other) | ||||
{ | ||||
return new QDateTime(other); } | ||||
|
r28 | void PythonQtWrapper_QDateTime::readFrom(QDateTime* theWrappedObject, QDataStream& arg__1) | ||
{ | ||||
arg__1 >> (*theWrappedObject); | ||||
} | ||||
|
r24 | QDateTime PythonQtWrapper_QDateTime::static_QDateTime_fromString(const QString& s, const QString& format) | ||
|
r13 | { | ||
|
r24 | return QDateTime::fromString(s, format); | ||
|
r13 | } | ||
|
r24 | void PythonQtWrapper_QDateTime::setTimeSpec(QDateTime* theWrappedObject, Qt::TimeSpec spec) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setTimeSpec(spec); | ||
|
r13 | } | ||
|
r28 | QDateTime PythonQtWrapper_QDateTime::addYears(QDateTime* theWrappedObject, int years) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->addYears(years); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QDateTime::writeTo(QDateTime* theWrappedObject, QDataStream& arg__1) | ||
|
r13 | { | ||
|
r28 | arg__1 << (*theWrappedObject); | ||
|
r13 | } | ||
|
r24 | bool PythonQtWrapper_QDateTime::operator_equal(QDateTime* theWrappedObject, const QDateTime& other) const | ||
|
r13 | { | ||
|
r24 | return (*theWrappedObject)== other; | ||
|
r13 | } | ||
|
r24 | int PythonQtWrapper_QDateTime::utcOffset(QDateTime* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->utcOffset(); | ||
|
r13 | } | ||
|
r24 | void PythonQtWrapper_QDateTime::setUtcOffset(QDateTime* theWrappedObject, int seconds) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setUtcOffset(seconds); | ||
|
r13 | } | ||
|
r24 | uint PythonQtWrapper_QDateTime::toTime_t(QDateTime* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->toTime_t(); | ||
|
r13 | } | ||
|
r24 | QDateTime PythonQtWrapper_QDateTime::toLocalTime(QDateTime* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->toLocalTime(); | ||
|
r13 | } | ||
|
r24 | int PythonQtWrapper_QDateTime::daysTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->daysTo(arg__1); | ||
|
r13 | } | ||
|
r24 | QDateTime PythonQtWrapper_QDateTime::toTimeSpec(QDateTime* theWrappedObject, Qt::TimeSpec spec) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->toTimeSpec(spec); | ||
|
r13 | } | ||
|
r24 | QDateTime PythonQtWrapper_QDateTime::static_QDateTime_fromTime_t(uint secsSince1Jan1970UTC) | ||
|
r13 | { | ||
|
r24 | return QDateTime::fromTime_t(secsSince1Jan1970UTC); | ||
|
r13 | } | ||
|
r24 | QDateTime PythonQtWrapper_QDateTime::addMSecs(QDateTime* theWrappedObject, qint64 msecs) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->addMSecs(msecs); | ||
|
r13 | } | ||
|
r24 | QDateTime PythonQtWrapper_QDateTime::addMonths(QDateTime* theWrappedObject, int months) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->addMonths(months); | ||
|
r13 | } | ||
|
r24 | bool PythonQtWrapper_QDateTime::operator_less(QDateTime* theWrappedObject, const QDateTime& other) const | ||
|
r13 | { | ||
|
r24 | return (*theWrappedObject)< other; | ||
|
r13 | } | ||
|
r24 | QDateTime PythonQtWrapper_QDateTime::addSecs(QDateTime* theWrappedObject, int secs) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->addSecs(secs); | ||
|
r13 | } | ||
|
r24 | void PythonQtWrapper_QDateTime::setTime(QDateTime* theWrappedObject, const QTime& time) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setTime(time); | ||
|
r13 | } | ||
|
r24 | void PythonQtWrapper_QDateTime::setTime_t(QDateTime* theWrappedObject, uint secsSince1Jan1970UTC) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setTime_t(secsSince1Jan1970UTC); | ||
|
r13 | } | ||
|
r24 | bool PythonQtWrapper_QDateTime::isNull(QDateTime* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isNull(); | ||
|
r13 | } | ||
|
r24 | QTime PythonQtWrapper_QDateTime::time(QDateTime* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->time(); | ||
|
r13 | } | ||
|
r24 | QDateTime PythonQtWrapper_QDateTime::toUTC(QDateTime* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->toUTC(); | ||
|
r13 | } | ||
|
r24 | QDate PythonQtWrapper_QDateTime::date(QDateTime* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->date(); | ||
|
r13 | } | ||
|
r24 | Qt::TimeSpec PythonQtWrapper_QDateTime::timeSpec(QDateTime* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->timeSpec(); | ||
|
r13 | } | ||
|
r24 | QDateTime PythonQtWrapper_QDateTime::static_QDateTime_currentDateTime() | ||
|
r13 | { | ||
|
r24 | return QDateTime::currentDateTime(); | ||
|
r13 | } | ||
|
r24 | void PythonQtWrapper_QDateTime::setDate(QDateTime* theWrappedObject, const QDate& date) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setDate(date); | ||
|
r13 | } | ||
|
r24 | QDateTime PythonQtWrapper_QDateTime::static_QDateTime_fromString(const QString& s, Qt::DateFormat f) | ||
|
r13 | { | ||
|
r24 | return QDateTime::fromString(s, f); | ||
|
r13 | } | ||
|
r24 | bool PythonQtWrapper_QDateTime::isValid(QDateTime* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isValid(); | ||
|
r13 | } | ||
|
r24 | int PythonQtWrapper_QDateTime::secsTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->secsTo(arg__1); | ||
|
r13 | } | ||
|
r24 | QString PythonQtWrapper_QDateTime::toString(QDateTime* theWrappedObject, const QString& format) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->toString(format); | ||
|
r13 | } | ||
|
r24 | QDateTime PythonQtWrapper_QDateTime::addDays(QDateTime* theWrappedObject, int days) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->addDays(days); | ||
|
r13 | } | ||
|
r24 | QString PythonQtWrapper_QDateTime::toString(QDateTime* theWrappedObject, Qt::DateFormat f) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->toString(f); | ||
|
r13 | } | ||