PythonQtWrapper_QTime.h
50 lines
| 2.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTIME_H | ||
#define PYTHONQTWRAPPER_QTIME_H | ||||
#include <qdatetime.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qdatetime.h> | ||||
class PythonQtWrapper_QTime : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QTime* new_QTime(); | ||||
QTime* new_QTime(int h, int m, int s = 0, int ms = 0); | ||||
florianlink
|
r24 | QTime* new_QTime(const QTime& other) { | ||
QTime* a = new QTime(); | ||||
*((QTime*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QTime(QTime* obj) { delete obj; } | ||
florianlink
|
r24 | bool setHMS(QTime* theWrappedObject, int h, int m, int s, int ms = 0); | ||
florianlink
|
r28 | void readFrom(QTime* theWrappedObject, QDataStream& arg__1); | ||
int minute(QTime* theWrappedObject) const; | ||||
QTime static_QTime_fromString(const QString& s, const QString& format); | ||||
florianlink
|
r24 | void writeTo(QTime* theWrappedObject, QDataStream& arg__1); | ||
florianlink
|
r28 | QTime addMSecs(QTime* theWrappedObject, int ms) const; | ||
florianlink
|
r13 | bool operator_equal(QTime* theWrappedObject, const QTime& other) const; | ||
florianlink
|
r28 | bool static_QTime_isValid(int h, int m, int s, int ms = 0); | ||
florianlink
|
r24 | QTime static_QTime_fromString(const QString& s, Qt::DateFormat f = Qt::TextDate); | ||
florianlink
|
r28 | bool isValid(QTime* theWrappedObject) const; | ||
void start(QTime* theWrappedObject); | ||||
int msecsTo(QTime* theWrappedObject, const QTime& arg__1) const; | ||||
int hour(QTime* theWrappedObject) const; | ||||
int elapsed(QTime* theWrappedObject) const; | ||||
florianlink
|
r24 | QString toString(QTime* theWrappedObject, const QString& format) const; | ||
florianlink
|
r13 | int secsTo(QTime* theWrappedObject, const QTime& arg__1) const; | ||
florianlink
|
r28 | QString toString(QTime* theWrappedObject, Qt::DateFormat f = Qt::TextDate) const; | ||
florianlink
|
r24 | int msec(QTime* theWrappedObject) const; | ||
florianlink
|
r28 | int restart(QTime* theWrappedObject); | ||
QTime addSecs(QTime* theWrappedObject, int secs) const; | ||||
QTime static_QTime_currentTime(); | ||||
bool operator_less(QTime* theWrappedObject, const QTime& other) const; | ||||
bool isNull(QTime* theWrappedObject) const; | ||||
int second(QTime* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QTIME_H | ||||