/* */ package quicktime.std.qtcomponents;
/* */
/* */ import com.apple.mrj.macos.carbon.CarbonAccess;
/* */ import com.apple.mrj.macos.carbon.CarbonEventClient;
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.jdirect.QTNative;
/* */ import quicktime.std.StdQTException;
/* */ import quicktime.std.comp.Component;
/* */ import quicktime.std.movies.AtomContainer;
/* */ import quicktime.util.QTHandleRef;
/* */
/* */ public class CompressionDialog extends Component
/* */ {
/* */ int res;
/* */
/* */ CompressionDialog(int paramInt)
/* */ throws QTException
/* */ {
/* 39 */ super(1935893609, paramInt);
/* */ }
/* */
/* */ public void requestSettings()
/* */ throws StdQTException
/* */ {
/* 48 */ int i = _ID();
/* */
/* 51 */ if (QTSession.isCurrentOS(4)) {
/* 52 */ this.res = ((Integer)CarbonAccess.invokeCarbonEventClient(new CarbonEventClient() { private final int val$i;
/* */
/* 54 */ public Object invoke() { int i = 0;
/* 55 */ synchronized (QTNative.globalsLock) {
/* 56 */ CompressionDialog.this.res = CompressionDialog.SCRequestImageSettings(this.val$i);
/* */ }
/* 58 */ return new Integer(CompressionDialog.this.res);
/* */ }
/* */ })).intValue();
/* */
/* 61 */ if (this.res == 1) throw new StdQTException(-128);
/* 62 */ StdQTException.checkError(this.res);
/* */ }
/* */ else {
/* 65 */ synchronized (QTNative.globalsLock) {
/* 66 */ this.res = SCRequestImageSettings(_ID());
/* 67 */ if (this.res == 1) throw new StdQTException(-128);
/* 68 */ StdQTException.checkError(this.res);
/* */ }
/* */ }
/* */ }
/* */
/* */ public QTHandleRef getInfoState()
/* */ throws QTException
/* */ {
/* 79 */ return QTHandleRef.fromCompressionDialogState(this);
/* */ }
/* */
/* */ public void setInfoState(QTHandleRef paramQTHandleRef)
/* */ throws StdQTException
/* */ {
/* 87 */ int[] arrayOfInt = { QTObject.ID(paramQTHandleRef) };
/* 88 */ StdQTException.checkError(SCSetInfo(_ID(), 1936946273, arrayOfInt));
/* */ }
/* */
/* */ public void setInfoPreferences(int paramInt)
/* */ throws StdQTException
/* */ {
/* 99 */ int[] arrayOfInt = { paramInt };
/* 100 */ StdQTException.checkError(SCSetInfo(_ID(), 1886545254, arrayOfInt));
/* */ }
/* */
/* */ public int getInfoPreferences()
/* */ throws StdQTException
/* */ {
/* 111 */ int[] arrayOfInt = { 0 };
/* 112 */ StdQTException.checkError(SCGetInfo(_ID(), 1886545254, arrayOfInt));
/* */
/* 115 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public AtomContainer getSettings()
/* */ throws StdQTException
/* */ {
/* 124 */ return AtomContainer.fromCompressionDialog(this);
/* */ }
/* */
/* */ /** @deprecated */
/* */ public void setInfoState(AtomContainer paramAtomContainer)
/* */ throws StdQTException
/* */ {
/* 134 */ StdQTException.checkError(SCSetSettingsFromAtomContainer(_ID(), QTObject.ID(paramAtomContainer)));
/* */ }
/* */
/* */ public void setSettings(AtomContainer paramAtomContainer)
/* */ throws StdQTException
/* */ {
/* 145 */ StdQTException.checkError(SCSetSettingsFromAtomContainer(_ID(), QTObject.ID(paramAtomContainer)));
/* */ }
/* */
/* */ private static native int SCRequestImageSettings(int paramInt);
/* */
/* */ private static native int SCGetInfo(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native int SCSetInfo(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native int SCSetInfo(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native int SCGetInfo(int paramInt1, int paramInt2, short[] paramArrayOfShort);
/* */
/* */ private static native int SCSetInfo(int paramInt1, int paramInt2, short[] paramArrayOfShort);
/* */
/* */ private static native int SCGetInfo(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/* */
/* */ private static native int SCSetInfo(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/* */
/* */ private static native int SCSetSettingsFromAtomContainer(int paramInt1, int paramInt2);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.std.qtcomponents.CompressionDialog
* JD-Core Version: 0.6.2
*/