summaryrefslogtreecommitdiffhomepage
path: root/opentrack-api/opentrack-guts.h
blob: 1061d75d1d68ed5c1f0f5fbbd82a417ad7bb1c1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once

#include "ftnoir_tracker_base/ftnoir_tracker_base.h"
#include "facetracknoir/global-settings.h"
#include <QString>
#include <QDir>
#include <QList>
#include <QStringList>
#include <QDebug>
#include <QIcon>
#include <iostream>
#include <cstring>

typedef ITracker* opentrack_tracker;

class opentrack_meta {
public:
    Metadata* meta;
    QString path;
    DynamicLibrary* lib;

    opentrack_meta(Metadata* meta, QString& path, DynamicLibrary* lib) :
        meta(meta), path(path), lib(lib)
    {}
    ~opentrack_meta()
    {
        delete meta;
        delete lib;
    }
};

typedef class opentrack_ctx {
public:
    QDir dir;
    char** list;
    QList<opentrack_meta> meta_list;
    QFrame fake_frame;
    opentrack_ctx(QDir& dir);
    ~opentrack_ctx();
} *opentrack;