-
Notifications
You must be signed in to change notification settings - Fork 0
/
CameraEvent.cs
50 lines (45 loc) · 1.76 KB
/
CameraEvent.cs
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
41
42
43
44
45
46
47
48
49
50
/******************************************************************************
* *
* PROJECT : Eos Digital camera Software Development Kit EDSDK *
* *
* Description: This is the Sample code to show the usage of EDSDK. *
* *
* *
*******************************************************************************
* *
* Written and developed by Canon Inc. *
* Copyright Canon Inc. 2018 All Rights Reserved *
* *
*******************************************************************************/
using System;
namespace CameraControl
{
public class CameraEvent
{
public enum Type
{
NONE,
ERROR,
DEVICE_BUSY,
DOWNLOAD_START,
DOWNLOAD_COMPLETE,
EVFDATA_CHANGED,
PROGRESS_REPORT,
PROPERTY_CHANGED,
PROPERTY_DESC_CHANGED,
DELETE_START,
DELETE_COMPLETE,
PROGRESS,
SHUT_DOWN
}
private Type _type = Type.NONE;
private IntPtr _arg;
public CameraEvent(Type type, IntPtr arg)
{
_type = type;
_arg = arg;
}
public Type GetEventType() { return _type; }
public IntPtr GetArg() { return _arg; }
}
}