Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.bugvm.apple.coremidi;
/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.corefoundation.*;
/**/
/**/
/**/
/**/@Library("CoreMIDI") @Marshaler(CFString.AsStringMarshaler.class)/**/
/**/public/**/ class /**/MIDIObject/**/
extends /**/NativeObject/**/
/**//**/ {
/**/public static class MIDIObjectPtr extends Ptr {}/**/
/**/static { Bro.bind(MIDIObject.class); }/**/
/**//**/
/**//**/
/**//**/
/**//**/
/**
* @since Available in iOS 4.2 and later.
*/
public int getIntegerProperty(String propertyID) {
IntPtr ptr = new IntPtr();
getIntegerProperty(propertyID, ptr);
return ptr.get();
}
/**
* @since Available in iOS 4.2 and later.
*/
public String getStringProperty(String propertyID) {
NSString.NSStringPtr ptr = new NSString.NSStringPtr();
getStringProperty(propertyID, ptr);
NSString str = ptr.get();
if (str != null) return str.toString();
return null;
}
/**
* @since Available in iOS 4.2 and later.
*/
public NSData getDataProperty(String propertyID) {
NSData.NSDataPtr ptr = new NSData.NSDataPtr();
getDataProperty(propertyID, ptr);
return ptr.get();
}
/**
* @since Available in iOS 4.2 and later.
*/
public NSDictionary, ?> getDictionaryProperty(String propertyID) {
NSDictionary.NSDictionaryPtr ptr = new NSDictionary.NSDictionaryPtr();
getDictionaryProperty(propertyID, ptr);
return (NSDictionary, ?>)ptr.get();
}
/**
* @since Available in iOS 4.2 and later.
*/
public CFPropertyList getProperties(boolean deep) {
CFPropertyList.CFPropertyListPtr ptr = new CFPropertyList.CFPropertyListPtr();
getProperties(ptr, deep);
return ptr.get();
}
/**
* @since Available in iOS 4.2 and later.
*/
public static MIDIObject findObjectById(int uniqueID) {
MIDIObjectPtr ptr = new MIDIObjectPtr();
findByUniqueID(uniqueID, ptr, null);
return ptr.get();
}
/**
* @since Available in iOS 4.2 and later.
*/
public static MIDIObjectType findObjectTypeById(int uniqueID) {
IntPtr ptr = new IntPtr();
findByUniqueID(uniqueID, null, ptr);
return MIDIObjectType.valueOf(ptr.get());
}
/**/
/**
* @since Available in iOS 4.2 and later.
*/
@Bridge(symbol="MIDIObjectGetIntegerProperty", optional=true)
protected native MIDIError getIntegerProperty(String propertyID, IntPtr outValue);
/**
* @since Available in iOS 4.2 and later.
*/
@Bridge(symbol="MIDIObjectSetIntegerProperty", optional=true)
public native MIDIError setIntegerProperty(String propertyID, int value);
/**
* @since Available in iOS 4.2 and later.
*/
@Bridge(symbol="MIDIObjectGetStringProperty", optional=true)
protected native MIDIError getStringProperty(String propertyID, NSString.NSStringPtr str);
/**
* @since Available in iOS 4.2 and later.
*/
@Bridge(symbol="MIDIObjectSetStringProperty", optional=true)
public native MIDIError setStringProperty(String propertyID, String str);
/**
* @since Available in iOS 4.2 and later.
*/
@Bridge(symbol="MIDIObjectGetDataProperty", optional=true)
protected native MIDIError getDataProperty(String propertyID, NSData.NSDataPtr outData);
/**
* @since Available in iOS 4.2 and later.
*/
@Bridge(symbol="MIDIObjectSetDataProperty", optional=true)
public native MIDIError setDataProperty(String propertyID, NSData data);
/**
* @since Available in iOS 4.2 and later.
*/
@Bridge(symbol="MIDIObjectGetDictionaryProperty", optional=true)
protected native MIDIError getDictionaryProperty(String propertyID, NSDictionary.NSDictionaryPtr outDict);
/**
* @since Available in iOS 4.2 and later.
*/
@Bridge(symbol="MIDIObjectSetDictionaryProperty", optional=true)
public native MIDIError setDictionaryProperty(String propertyID, NSDictionary data);
/**
* @since Available in iOS 4.2 and later.
*/
@Bridge(symbol="MIDIObjectGetProperties", optional=true)
protected native MIDIError getProperties(CFPropertyList.CFPropertyListPtr outProperties, boolean deep);
/**
* @since Available in iOS 4.2 and later.
*/
@Bridge(symbol="MIDIObjectRemoveProperty", optional=true)
public native MIDIError removeProperty(String propertyID);
/**
* @since Available in iOS 4.2 and later.
*/
@Bridge(symbol="MIDIObjectFindByUniqueID", optional=true)
protected static native MIDIError findByUniqueID(int inUniqueID, MIDIObject.MIDIObjectPtr outObject, IntPtr outObjectType);
/**/
}