4 @SuppressWarnings public class QMediaObject : QObject{
7 public QMediaObject(long handle){
10 onMediaObjectCallback __callback = nilptr;
20 return QtXnl.widget_get_bool_value(nativehandle, Constant.QMEDIAOBJECT_ISAVAILABLE);
24 return (AvailabilityStatus)QtXnl.widget_get_int_value(nativehandle, Constant.QMEDIAOBJECT_AVAILABILITY);
28 return (QMediaService)QtXnl.widget_get_object(nativehandle, Constant.QMEDIAOBJECT_SERVICE);
32 return QtXnl.widget_get_int_value(nativehandle, Constant.QMEDIAOBJECT_NOTIFYINTERVAL);
35 QtXnl.widget_set_vint_value(nativehandle, Constant.QMEDIAOBJECT_SETNOTIFYINTERVAL, milliSeconds);
38 public bool bind(QObject o){
39 return QtXnl.core_getintlong(nativehandle, Constant.QMEDIAOBJECT_BIND, o.nativehandle) == 1;
43 QtXnl.core_getintlong(nativehandle, Constant.QMEDIAOBJECT_UNBIND, o.nativehandle);
47 return QtXnl.widget_get_bool_value(nativehandle, Constant.QMEDIAOBJECT_ISMETADATAAVAILABLE);
52 if (__callback != nilptr){
53 __callback.notifyIntervalChanged(
this,milliSeconds);
58 if (__callback != nilptr){
59 __callback.metaDataAvailableChanged(
this,available);
64 if (__callback != nilptr){
65 __callback.metaDataChanged(
this);
70 if (__callback != nilptr){
71 __callback.availabilityChanged(
this, available);
76 if (__callback != nilptr){
77 __callback.availabilityChanged(
this, availability);