Commits

Bob Ippolito committed 0b62437

DiscRecording

Comments (0)

Files changed (12)

Lib/DiscRecording/__init__.py

+from _DiscRecording import *
+import objc as _objc
+if _objc.platform == 'MACOSX':
+    _objc.loadBundle(
+        "DiscRecording",
+        globals(),
+        bundle_identifier=u'com.apple.DiscRecording',
+    )
+import protocols

Lib/DiscRecording/protocols.py

+# generated from '/System/Library/Frameworks/DiscRecording.framework'
+import objc as _objc
+
+

Lib/DiscRecordingUI/__init__.py

+from _DiscRecordingUI import *
+import objc as _objc
+if _objc.platform == 'MACOSX':
+    _objc.loadBundle(
+        "DiscRecordingUI",
+        globals(),
+        bundle_identifier=u'com.apple.DiscRecordingUI',
+    )
+import protocols

Lib/DiscRecordingUI/protocols.py

+# generated from '/System/Library/Frameworks/DiscRecordingUI.framework'
+import objc as _objc
+
+
+DRBurnProgressPanelDelegateMethods = _objc.informal_protocol(
+    "DRBurnProgressPanelDelegateMethods",
+    [
+# (BOOL) burnProgressPanel:(DRBurnProgressPanel*)theBurnPanel burnDidFinish:(DRBurn*)burn
+        _objc.selector(
+            None,
+            selector='burnProgressPanel:burnDidFinish:',
+            signature='c@:@@',
+            isRequired=0,
+        ),
+# (void) burnProgressPanelDidFinish:(NSNotification*)aNotification
+        _objc.selector(
+            None,
+            selector='burnProgressPanelDidFinish:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+# (void) burnProgressPanelWillBegin:(NSNotification*)aNotification
+        _objc.selector(
+            None,
+            selector='burnProgressPanelWillBegin:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+    ]
+)
+
+DREraseProgressPanelDelegateMethods = _objc.informal_protocol(
+    "DREraseProgressPanelDelegateMethods",
+    [
+# (BOOL) eraseProgressPanel:(DREraseProgressPanel*)theErasePanel eraseDidFinish:(DRErase*)erase
+        _objc.selector(
+            None,
+            selector='eraseProgressPanel:eraseDidFinish:',
+            signature='c@:@@',
+            isRequired=0,
+        ),
+# (void) eraseProgressPanelDidFinish:(NSNotification*)aNotification
+        _objc.selector(
+            None,
+            selector='eraseProgressPanelDidFinish:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+# (void) eraseProgressPanelWillBegin:(NSNotification*)aNotification
+        _objc.selector(
+            None,
+            selector='eraseProgressPanelWillBegin:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+    ]
+)
+
+DRSetupPanelDelegate = _objc.informal_protocol(
+    "DRSetupPanelDelegate",
+    [
+# (BOOL) setupPanel:(DRSetupPanel*)aPanel deviceContainsSuitableMedia:(DRDevice*)device promptString:(NSString**)prompt
+        _objc.selector(
+            None,
+            selector='setupPanel:deviceContainsSuitableMedia:promptString:',
+            signature='c@:@@^@',
+            isRequired=0,
+        ),
+# (BOOL) setupPanel:(DRSetupPanel*)aPanel deviceCouldBeTarget:(DRDevice*)device
+        _objc.selector(
+            None,
+            selector='setupPanel:deviceCouldBeTarget:',
+            signature='c@:@@',
+            isRequired=0,
+        ),
+# (void) setupPanelDeviceSelectionChanged:(NSNotification*)aNotification
+        _objc.selector(
+            None,
+            selector='setupPanelDeviceSelectionChanged:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+# (BOOL) setupPanelShouldHandleMediaReservations:(DRSetupPanel*)aPanel
+        _objc.selector(
+            None,
+            selector='setupPanelShouldHandleMediaReservations:',
+            signature='c@:@',
+            isRequired=0,
+        ),
+    ]
+)
+

Modules/DiscRecording/_DiscRecording.m

+/*
+ * Mapping of static items in the DiscRecording framework
+ */
+#include <Python.h>
+
+#import <DiscRecording/DiscRecording.h>
+#import <CoreFoundation/CoreFoundation.h>
+
+#include "pyobjc-api.h"
+#include "wrapper-const-table.h"
+
+static PyMethodDef ib_methods[] = {
+	{ 0, 0, 0, 0 }
+};
+
+
+PyDoc_STRVAR(ib_doc,
+"DiscRecording._DiscRecording defines constants, types and global functions used by "
+"DiscRecording"
+);
+
+
+#include "_DiscRecording_Enum.inc"
+#include "_DiscRecording_Str.inc"
+
+void init_DiscRecording(void);
+
+void init_DiscRecording(void)
+{
+	PyObject *m, *d;
+	CFBundleRef bundle;
+
+	m = Py_InitModule4("_DiscRecording", ib_methods, 
+		ib_doc, NULL, PYTHON_API_VERSION);
+	if (!m) return;
+
+	d = PyModule_GetDict(m);
+	if (!d) return;
+
+	if (PyObjC_ImportAPI(m) < 0) {
+		return;
+	}
+
+	bundle = CFBundleGetBundleWithIdentifier(CFSTR("com.apple.DiscRecording"));
+
+	if (register_ints(d, enum_table) < 0) return;
+	if (register_variableList(d, bundle, string_table, 
+		(sizeof(string_table)/sizeof(string_table[0]))-1) < 0) return;
+
+	//CFRelease(bundle);
+}

Modules/DiscRecordingUI/_DiscRecordingUI.m

+/*
+ * Mapping of static items in the DiscRecordingUI framework
+ */
+#include <Python.h>
+
+#import <DiscRecordingUI/DiscRecordingUI.h>
+#import <CoreFoundation/CoreFoundation.h>
+
+#include "pyobjc-api.h"
+#include "wrapper-const-table.h"
+
+static PyMethodDef ib_methods[] = {
+	{ 0, 0, 0, 0 }
+};
+
+
+PyDoc_STRVAR(ib_doc,
+"DiscRecordingUI._DiscRecordingUI defines constants, types and global functions used by "
+"DiscRecordingUI"
+);
+
+
+#include "_DiscRecordingUI_Enum.inc"
+#include "_DiscRecordingUI_Str.inc"
+
+void init_DiscRecordingUI(void);
+
+void init_DiscRecordingUI(void)
+{
+	PyObject *m, *d;
+	CFBundleRef bundle;
+
+	m = Py_InitModule4("_DiscRecordingUI", ib_methods, 
+		ib_doc, NULL, PYTHON_API_VERSION);
+	if (!m) return;
+
+	d = PyModule_GetDict(m);
+	if (!d) return;
+
+	if (PyObjC_ImportAPI(m) < 0) {
+		return;
+	}
+
+	bundle = CFBundleGetBundleWithIdentifier(CFSTR("com.apple.DiscRecordingUI"));
+
+	if (register_ints(d, enum_table) < 0) return;
+	if (register_variableList(d, bundle, string_table, 
+		(sizeof(string_table)/sizeof(string_table[0]))-1) < 0) return;
+
+	//CFRelease(bundle);
+}
 <li><code><span>AppKitScripting</span></code></li>
 <li><code><span>Automator</span></code></li>
 <li><code><span>CoreData</span></code></li>
+<li><code><span>DiscRecording</span></code></li>
+<li><code><span>DiscRecordingUI</span></code></li>
 <li><code><span>SyncServices</span></code></li>
 <li><code><span>XgridFoundation</span></code></li>
 </ul>
   - ``AppKitScripting``
   - ``Automator``
   - ``CoreData``
+  - ``DiscRecording``
+  - ``DiscRecordingUI``
   - ``SyncServices``
   - ``XgridFoundation``
 

Scripts/CodeGenerators/cocoa_generator.py

     APPKITSCRIPTING_HDRS=pathjoin(FRAMEWORKS, "AppKitScripting.framework", "Headers")
     AUTOMATOR_HDRS=pathjoin(FRAMEWORKS, "Automator.framework", "Headers")
     COREDATA_HDRS=pathjoin(FRAMEWORKS, "CoreData.framework", "Headers")
+    DISCRECORDING_HDRS=pathjoin(FRAMEWORKS, "DiscRecording.framework", "Headers")
+    DISCRECORDINGUI_HDRS=pathjoin(FRAMEWORKS, "DiscRecordingUI.framework", "Headers")
     SYNCSERVICES_HDRS=pathjoin(FRAMEWORKS, "SyncServices.framework", "Headers")
     XGRIDFOUNDATION_HDRS=pathjoin(FRAMEWORKS, "XgridFoundation.framework", "Headers")
 
     APPKITSCRIPTING_HDRS=None
     AUTOMATOR_HDRS=None
     COREDATA_HDRS=None
+    DISCRECORDING_HDRS=None
+    DISCRECORDINGUI_HDRS=None
     SYNCSERVICES_HDRS=None
     XGRIDFOUNDATION_HDRS=None
 
                                 'build/codegen/_CoreData_Str.inc',
                                 ignore=())
 
+if DISCRECORDING_HDRS is not None:
+    enum_generator.generate(
+            DISCRECORDING_HDRS,
+            'build/codegen/_DiscRecording_Enum.inc',
+                ignore_files=[])
+
+    strconst_generator.generate(DISCRECORDING_HDRS,
+                                'build/codegen/_DiscRecording_Str.inc',
+                                ignore=())
+
+if DISCRECORDINGUI_HDRS is not None:
+    enum_generator.generate(
+            DISCRECORDINGUI_HDRS,
+            'build/codegen/_DiscRecordingUI_Enum.inc',
+                ignore_files=[])
+
+    strconst_generator.generate(DISCRECORDINGUI_HDRS,
+                                'build/codegen/_DiscRecordingUI_Str.inc',
+                                ignore=())
+
 if SYNCSERVICES_HDRS is not None:
     enum_generator.generate(
             SYNCSERVICES_HDRS,

Scripts/gen_all_protocols.py

 for framework in [
         "WebKit", "ExceptionHandling", "SecurityInterface", "AppleScriptKit",
         "AppKitScripting", "Automator", "CoreData", "XgridFoundation",
-        "SyncServices",
+        "SyncServices", "DiscRecording", "DiscRecordingUI",
         ]:
     path = "/System/Library/Frameworks/%s.framework" % framework
     protfile = file(os.path.join(libdir, framework, "protocols.py"), "w")

sandbox/parsing/scanframework.py

     types = {
         'id': 'objc._C_ID',
         'NSString *': 'objc._C_ID',
+        'NSString*': 'objc._C_ID',
         'double': 'objc._C_DBL',
     }
     ignores = set([
 AppKitScriptingDepends = dict(depends=INCFILES)
 AutomatorDepends = dict(depends=INCFILES)
 CoreDataDepends = dict(depends=INCFILES)
+DiscRecordingDepends = dict(depends=INCFILES)
+DiscRecordingUIDepends = dict(depends=INCFILES)
 SyncServicesDepends = dict(depends=INCFILES)
 XgridFoundationDepends = dict(depends=INCFILES)
 
                       ),
         ], headername="CoreData.h")
 
+DiscRecordingPackages, DiscRecordingExtensions = \
+        IfFrameWork('DiscRecording.framework', [ 'DiscRecording' ], [
+            Extension('DiscRecording._DiscRecording',
+                      [ 'Modules/DiscRecording/_DiscRecording.m' ],
+                      extra_compile_args=[
+                        '-IModules/objc',
+                      ] + CFLAGS,
+                      extra_link_args=frameworks(
+                        'DiscRecording',
+                        'Foundation'
+                      ),
+                      **DiscRecordingDepends
+                      ),
+        ], headername="DiscRecording.h")
+
+DiscRecordingUIPackages, DiscRecordingUIExtensions = \
+        IfFrameWork('DiscRecordingUI.framework', [ 'DiscRecordingUI' ], [
+            Extension('DiscRecordingUI._DiscRecordingUI',
+                      [ 'Modules/DiscRecordingUI/_DiscRecordingUI.m' ],
+                      extra_compile_args=[
+                        '-IModules/objc',
+                      ] + CFLAGS,
+                      extra_link_args=frameworks(
+                        'DiscRecordingUI',
+                        'Foundation'
+                      ),
+                      **DiscRecordingUIDepends
+                      ),
+        ], headername="DiscRecordingUI.h")
+
 SyncServicesPackages, SyncServicesExtensions = \
         IfFrameWork('SyncServices.framework', [ 'SyncServices' ], [
             Extension('SyncServices._SyncServices',
     AppKitScriptingPackages +
     AutomatorPackages +
     CoreDataPackages +
+    DiscRecordingPackages +
+    DiscRecordingUIPackages +
     SyncServicesPackages +
     XgridFoundationPackages +
 
        + AppKitScriptingExtensions
        + AutomatorExtensions
        + CoreDataExtensions
+       + DiscRecordingExtensions
+       + DiscRecordingUIExtensions
        + SyncServicesExtensions
        + XgridFoundationExtensions