File: TestCallback.h

package info (click to toggle)
mummy 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,628 kB
  • ctags: 1,000
  • sloc: cpp: 10,667; cs: 1,107; makefile: 22; xml: 8; sh: 5
file content (30 lines) | stat: -rw-r--r-- 740 bytes parent folder | download | duplicates (2)
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
#ifndef _TestCallback_h
#define _TestCallback_h

#include "VehiclesConfig.h"

class AbstractVehicle;
class FuelLevelChangedEventArgs;

// TestCallback is a "yet to be documented" example class...

class tests_dll TestCallback
{
public:
  static iwhTestIWH int Main(int argc, char *argv[]);

protected:
  // protected constructor/destructor means only instantiable from within Main:
  TestCallback();
  virtual ~TestCallback();

  // protected means it won't be wrapped:
  virtual void FuelLevelChangedCallback(AbstractVehicle* sender, FuelLevelChangedEventArgs* data);

private:
  // intentionally unimplemented to prevent copying:
  TestCallback(const TestCallback& other);
  TestCallback& operator=(const TestCallback& other);
};

#endif