mozsync/vendor/github.com/mappu/miqt/qt6/gen_qbasictimer.cpp
Philip Peterson 3dbad35769 Initial commit: mozsync, a CLI to export bookmarks from Firefox Sync
Authenticates via the FxA OAuth flow (borrowing Firefox for Android's
public client id) in an embedded, off-the-record Qt6 WebEngine view,
decrypts the Sync 1.5 crypto/keys envelope, and dumps bookmarks as JSON.
Packaged as a flatpak (org.mozsync.App.yml) against io.qt.qtwebengine.BaseApp.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-30 02:16:21 -08:00

45 lines
913 B
C++

#include <QBasicTimer>
#include <QObject>
#include <qbasictimer.h>
#include "gen_qbasictimer.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
QBasicTimer* QBasicTimer_new() {
return new (std::nothrow) QBasicTimer();
}
void QBasicTimer_swap(QBasicTimer* self, QBasicTimer* other) {
self->swap(*other);
}
bool QBasicTimer_isActive(const QBasicTimer* self) {
return self->isActive();
}
int QBasicTimer_timerId(const QBasicTimer* self) {
return self->timerId();
}
void QBasicTimer_start(QBasicTimer* self, int msec, QObject* obj) {
self->start(static_cast<int>(msec), obj);
}
void QBasicTimer_start2(QBasicTimer* self, int msec, int timerType, QObject* obj) {
self->start(static_cast<int>(msec), static_cast<Qt::TimerType>(timerType), obj);
}
void QBasicTimer_stop(QBasicTimer* self) {
self->stop();
}
void QBasicTimer_delete(QBasicTimer* self) {
delete self;
}