summaryrefslogtreecommitdiffstats
path: root/tests/auto/integration/engine.rep
blob: d486aa82cdc04828c7b19607eadac91b23664045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "temperature.h"

class Engine
{
    ENUM EngineType { GAS=0, ELECTRIC=1, HYBRID=2 }
    PROP(int cylinders = 4 CONSTANT);
    PROP(bool started);
    PROP(int rpm READWRITE);
    PROP(EngineType engineType=GAS PERSISTED)

    SLOT(bool start());
    SLOT(void increaseRpm(int deltaRpm));

    SLOT(void unnormalizedSignature(int a, int b));

    SLOT(Temperature temperature())
    SLOT(void setSharedTemperature(const Temperature::Ptr &sharedTemperature))

    SLOT(QString myTestString())
    SLOT(setMyTestString(QString value))
};