comparison dstep/qtkit/QTError.d @ 16:19885b43130e

Huge update, the bridge actually works now
author Jacob Carlborg <doob@me.com>
date Sun, 03 Jan 2010 22:06:11 +0100
parents
children
comparison
equal deleted inserted replaced
15:7ff919f595d5 16:19885b43130e
1 /**
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
3 * Authors: Jacob Carlborg
4 * Version: Initial created: Sep 28, 2009
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
6 */
7 module dstep.qtkit.QTError;
8
9 import dstep.foundation.Foundation;
10 import dstep.objc.bridge.Bridge;
11 import dstep.objc.objc;
12 import dstep.qtkit.QTKitDefines;
13
14 import bindings = dstep.qtkit.QTError_bindings;
15
16 private
17 {
18 NSString QTKitErrorDomain_;
19 NSString QTErrorCaptureInputKey_;
20 NSString QTErrorCaptureOutputKey_;
21 NSString QTErrorDeviceKey_;
22 NSString QTErrorExcludingDeviceKey_;
23 NSString QTErrorRecordingSuccesfullyFinishedKey_;
24 }
25
26 NSString QTKitErrorDomain ()
27 {
28 if (QTKitErrorDomain_)
29 return QTKitErrorDomain_;
30
31 return QTKitErrorDomain_ = new NSString(bindings.QTKitErrorDomain);
32 }
33
34 NSString QTErrorCaptureInputKey ()
35 {
36 if (QTErrorCaptureInputKey_)
37 return QTErrorCaptureInputKey_;
38
39 return QTErrorCaptureInputKey_ = new NSString(bindings.QTErrorCaptureInputKey);
40 }
41
42 NSString QTErrorCaptureOutputKey ()
43 {
44 if (QTErrorCaptureOutputKey_)
45 return QTErrorCaptureOutputKey_;
46
47 return QTErrorCaptureOutputKey_ = new NSString(bindings.QTErrorCaptureOutputKey);
48 }
49
50 NSString QTErrorDeviceKey ()
51 {
52 if (QTErrorDeviceKey_)
53 return QTErrorDeviceKey_;
54
55 return QTErrorDeviceKey_ = new NSString(bindings.QTErrorDeviceKey);
56 }
57
58 NSString QTErrorExcludingDeviceKey ()
59 {
60 if (QTErrorExcludingDeviceKey_)
61 return QTErrorExcludingDeviceKey_;
62
63 return QTErrorExcludingDeviceKey_ = new NSString(bindings.QTErrorExcludingDeviceKey);
64 }
65
66 NSString QTErrorRecordingSuccesfullyFinishedKey ()
67 {
68 if (QTErrorRecordingSuccesfullyFinishedKey_)
69 return QTErrorRecordingSuccesfullyFinishedKey_;
70
71 return QTErrorRecordingSuccesfullyFinishedKey_ = new NSString(bindings.QTErrorRecordingSuccesfullyFinishedKey);
72 }
73
74 enum
75 {
76 QTErrorUnknown = -1,
77 QTErrorIncompatibleInput = 1002,
78 QTErrorIncompatibleOutput = 1003,
79 QTErrorInvalidInputsOrOutputs = 1100,
80 QTErrorDeviceAlreadyUsedbyAnotherSession = 1101,
81 QTErrorNoDataCaptured = 1200,
82 QTErrorSessionConfigurationChanged = 1201,
83 QTErrorDiskFull = 1202,
84 QTErrorDeviceWasDisconnected = 1203,
85 QTErrorMediaChanged = 1204,
86 QTErrorMaximumDurationReached = 1205,
87 QTErrorMaximumFileSizeReached = 1206,
88 QTErrorMediaDiscontinuity = 1207,
89 QTErrorDeviceNotConnected = 1300,
90 QTErrorDeviceInUseByAnotherApplication = 1301,
91 QTErrorDeviceExcludedByAnotherDevice = 1302
92 }
93