1 //******************************************************************************
2 //  Copyright (c) 2005-2013 by Jan Van hijfte
3 //
4 //  See the included file COPYING.TXT for details about the copyright.
5 //
6 //  This program is distributed in the hope that it will be useful,
7 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9 //******************************************************************************
10 
11 
12 #ifndef QTIMER_C_H
13 #define QTIMER_C_H
14 
15 #include <QtCore>
16 #include "pascalbind.h"
17 
18 C_EXPORT QTimerH QTimer_Create(QObjectH parent);
19 C_EXPORT void QTimer_Destroy(QTimerH handle);
20 C_EXPORT bool QTimer_isActive(QTimerH handle);
21 C_EXPORT int QTimer_timerId(QTimerH handle);
22 C_EXPORT void QTimer_setInterval(QTimerH handle, int msec);
23 C_EXPORT int QTimer_interval(QTimerH handle);
24 C_EXPORT int QTimer_remainingTime(QTimerH handle);
25 C_EXPORT void QTimer_setTimerType(QTimerH handle, Qt::TimerType atype);
26 C_EXPORT Qt::TimerType QTimer_timerType(QTimerH handle);
27 C_EXPORT void QTimer_setSingleShot(QTimerH handle, bool singleShot);
28 C_EXPORT bool QTimer_isSingleShot(QTimerH handle);
29 C_EXPORT void QTimer_singleShot(int msec, const QObjectH receiver, const char* member);
30 C_EXPORT void QTimer_singleShot2(int msec, Qt::TimerType timerType, const QObjectH receiver, const char* member);
31 C_EXPORT void QTimer_start(QTimerH handle, int msec);
32 C_EXPORT void QTimer_start2(QTimerH handle);
33 C_EXPORT void QTimer_stop(QTimerH handle);
34 
35 #endif
36