Package quicktime.std

Source Code of quicktime.std.QTPreferences$AC

/*     */ package quicktime.std;
/*     */
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTObject;
/*     */ import quicktime.QTSession;
/*     */ import quicktime.std.movies.AtomContainer;
/*     */ import quicktime.util.QTHandle;
/*     */ import quicktime.util.QTHandleRef;
/*     */ import quicktime.util.QTUtils;
/*     */
/*     */ public final class QTPreferences
/*     */ {
/*  21 */   private static boolean apriori = QTSession.apriori();
/*     */
/*     */   public static AtomContainer getAccessKeys(String paramString)
/*     */     throws StdQTException
/*     */   {
/*  43 */     int[] arrayOfInt = { 0 };
/*  44 */     int i = QTGetAccessKeys(QTUtils.String2PString(paramString, 255), 0, arrayOfInt);
/*  45 */     StdQTException.checkError(i);
/*  46 */     return new AC(arrayOfInt[0]);
/*     */   }
/*     */
/*     */   public static void registerAccessKey(String paramString1, int paramInt, String paramString2)
/*     */     throws QTException
/*     */   {
/*  61 */     QTHandle localQTHandle = new QTHandle(paramString2.length(), false);
/*  62 */     localQTHandle.copyFromArray(0, paramString2.getBytes(), 0, paramString2.length());
/*     */
/*  64 */     int i = QTRegisterAccessKey(QTUtils.String2PString(paramString1, 255), paramInt, QTObject.ID(localQTHandle));
/*  65 */     StdQTException.checkError(i);
/*     */   }
/*     */
/*     */   public static void registerAccessKey(String paramString, int paramInt, QTHandleRef paramQTHandleRef)
/*     */     throws QTException
/*     */   {
/*  80 */     int i = QTRegisterAccessKey(QTUtils.String2PString(paramString, 255), paramInt, QTObject.ID(paramQTHandleRef));
/*  81 */     StdQTException.checkError(i);
/*     */   }
/*     */
/*     */   public static void unregisterAccessKey(String paramString1, int paramInt, String paramString2)
/*     */     throws QTException
/*     */   {
/*  96 */     QTHandle localQTHandle = new QTHandle(paramString2.length(), false);
/*  97 */     localQTHandle.copyFromArray(0, paramString2.getBytes(), 0, paramString2.length());
/*     */
/*  99 */     int i = QTUnregisterAccessKey(QTUtils.String2PString(paramString1, 255), paramInt, QTObject.ID(localQTHandle));
/* 100 */     StdQTException.checkError(i);
/*     */   }
/*     */
/*     */   public static void unregisterAccessKey(String paramString, int paramInt, QTHandleRef paramQTHandleRef)
/*     */     throws QTException
/*     */   {
/* 114 */     int i = QTUnregisterAccessKey(QTUtils.String2PString(paramString, 255), paramInt, QTObject.ID(paramQTHandleRef));
/* 115 */     StdQTException.checkError(i);
/*     */   }
/*     */
/*     */   public static AtomContainer getPreference(int paramInt)
/*     */     throws QTException
/*     */   {
/* 126 */     int[] arrayOfInt = { 0 };
/* 127 */     int i = GetQuickTimePreference(paramInt, arrayOfInt);
/* 128 */     StdQTException.checkError(i);
/* 129 */     if (arrayOfInt[0] == 0) return null;
/* 130 */     return new AC(arrayOfInt[0]);
/*     */   }
/*     */
/*     */   public static void setPreference(int paramInt, AtomContainer paramAtomContainer)
/*     */     throws QTException
/*     */   {
/* 141 */     StdQTException.checkError(SetQuickTimePreference(paramInt, QTObject.ID(paramAtomContainer)));
/*     */   }
/*     */
/*     */   private static native short QTGetAccessKeys(byte[] paramArrayOfByte, int paramInt, int[] paramArrayOfInt);
/*     */
/*     */   private static native short QTRegisterAccessKey(byte[] paramArrayOfByte, int paramInt1, int paramInt2);
/*     */
/*     */   private static native short QTUnregisterAccessKey(byte[] paramArrayOfByte, int paramInt1, int paramInt2);
/*     */
/*     */   private static native short GetQuickTimePreference(int paramInt, int[] paramArrayOfInt);
/*     */
/*     */   private static native short SetQuickTimePreference(int paramInt1, int paramInt2);
/*     */
/*     */   static class AC extends AtomContainer
/*     */   {
/*     */     AC(int paramInt)
/*     */     {
/*  25 */       super(null, false);
/*     */     }
/*     */   }
/*     */ }

/* Location:           Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name:     quicktime.std.QTPreferences
* JD-Core Version:    0.6.2
*/
TOP

Related Classes of quicktime.std.QTPreferences$AC

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.