PythonQtWrapper_QDateTime.h
56 lines
| 2.8 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QDATETIME_H | ||
#define PYTHONQTWRAPPER_QDATETIME_H | ||||
#include <qdatetime.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qdatetime.h> | ||||
class PythonQtWrapper_QDateTime : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QDateTime* new_QDateTime(); | ||||
QDateTime* new_QDateTime(const QDate& arg__1); | ||||
QDateTime* new_QDateTime(const QDate& arg__1, const QTime& arg__2, Qt::TimeSpec spec = Qt::LocalTime); | ||||
QDateTime* new_QDateTime(const QDateTime& other); | ||||
void delete_QDateTime(QDateTime* obj) { delete obj; } | ||||
florianlink
|
r28 | void readFrom(QDateTime* theWrappedObject, QDataStream& arg__1); | ||
florianlink
|
r13 | QDateTime static_QDateTime_fromString(const QString& s, const QString& format); | ||
florianlink
|
r24 | void setTimeSpec(QDateTime* theWrappedObject, Qt::TimeSpec spec); | ||
QDateTime addYears(QDateTime* theWrappedObject, int years) const; | ||||
florianlink
|
r28 | void writeTo(QDateTime* theWrappedObject, QDataStream& arg__1); | ||
florianlink
|
r13 | bool operator_equal(QDateTime* theWrappedObject, const QDateTime& other) const; | ||
florianlink
|
r24 | int utcOffset(QDateTime* theWrappedObject) const; | ||
void setUtcOffset(QDateTime* theWrappedObject, int seconds); | ||||
uint toTime_t(QDateTime* theWrappedObject) const; | ||||
QDateTime toLocalTime(QDateTime* theWrappedObject) const; | ||||
int daysTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const; | ||||
QDateTime toTimeSpec(QDateTime* theWrappedObject, Qt::TimeSpec spec) const; | ||||
QDateTime static_QDateTime_fromTime_t(uint secsSince1Jan1970UTC); | ||||
QDateTime addMSecs(QDateTime* theWrappedObject, qint64 msecs) const; | ||||
QDateTime addMonths(QDateTime* theWrappedObject, int months) const; | ||||
bool operator_less(QDateTime* theWrappedObject, const QDateTime& other) const; | ||||
QDateTime addSecs(QDateTime* theWrappedObject, int secs) const; | ||||
florianlink
|
r13 | void setTime(QDateTime* theWrappedObject, const QTime& time); | ||
void setTime_t(QDateTime* theWrappedObject, uint secsSince1Jan1970UTC); | ||||
florianlink
|
r24 | bool isNull(QDateTime* theWrappedObject) const; | ||
florianlink
|
r13 | QTime time(QDateTime* theWrappedObject) const; | ||
florianlink
|
r24 | QDateTime toUTC(QDateTime* theWrappedObject) const; | ||
QDate date(QDateTime* theWrappedObject) const; | ||||
florianlink
|
r13 | Qt::TimeSpec timeSpec(QDateTime* theWrappedObject) const; | ||
florianlink
|
r24 | QDateTime static_QDateTime_currentDateTime(); | ||
void setDate(QDateTime* theWrappedObject, const QDate& date); | ||||
QDateTime static_QDateTime_fromString(const QString& s, Qt::DateFormat f = Qt::TextDate); | ||||
bool isValid(QDateTime* theWrappedObject) const; | ||||
int secsTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const; | ||||
florianlink
|
r13 | QString toString(QDateTime* theWrappedObject, const QString& format) const; | ||
florianlink
|
r24 | QDateTime addDays(QDateTime* theWrappedObject, int days) const; | ||
QString toString(QDateTime* theWrappedObject, Qt::DateFormat f = Qt::TextDate) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QDATETIME_H | ||||