~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to test/harness/shocker/shocker.h

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifndef __SHOCKER_H__
 
3
#define __SHOCKER_H__
 
4
 
 
5
#include "logging.h"
 
6
#include "image-capture.h"
 
7
#include "input.h"
 
8
 
 
9
struct ShockerScriptableControlType : NPClass {
 
10
 
 
11
        ShockerScriptableControlType ();
 
12
        ~ShockerScriptableControlType () {}
 
13
 
 
14
};
 
15
extern ShockerScriptableControlType* ShockerScriptableControlClass;
 
16
 
 
17
 
 
18
 
 
19
struct ShockerScriptableControlObject : public NPObject
 
20
{
 
21
  
 
22
        ShockerScriptableControlObject (NPP instance);
 
23
        virtual ~ShockerScriptableControlObject ();
 
24
 
 
25
        void Connect ();
 
26
        void SignalShutdown ();
 
27
 
 
28
        InputProvider* GetInputProvider ();
 
29
        ImageCaptureProvider* GetImageCaptureProvider ();
 
30
        LogProvider* GetLogProvider ();
 
31
 
 
32
        //
 
33
        // Wrappers around some JS functions
 
34
        //
 
35
        char*         GetTestPath ();
 
36
        void          SetJsStatus (const char* status);
 
37
private:
 
38
        NPP instance;
 
39
        char* test_path;
 
40
 
 
41
        InputProvider* input_provider;
 
42
        ImageCaptureProvider* image_capture;
 
43
        LogProvider* log_provider;
 
44
 
 
45
 
 
46
};
 
47
 
 
48
 
 
49
 
 
50
bool Shocker_Initialize (void);
 
51
void Shocker_Shutdown (void);
 
52
 
 
53
 
 
54
 
 
55
#endif // __SHOCKER_H__
 
56
 
 
57