Package com.jitcaforwin.basic.api.exceptions

Examples of com.jitcaforwin.basic.api.exceptions.EQPresetDeletedException


  public void delete(boolean updateAllTracks) throws EQPresetDeletedException {
    try {
      this.iTunesCom.callProcedure("Delete", updateAllTracks);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new EQPresetDeletedException(this);
    }
  }
View Full Code Here


      Object[] params = new Object[2];
      params[0] = newName;
      params[1] = updateAllTracks;
      this.iTunesCom.callProcedure("Rename", params);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new EQPresetDeletedException(this);
    } catch (ITUNES_E_OBJECTEXISTS e) {
      throw new ObjectExists("An EQ preset with the name \" " + newName + "\" already exists.");
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new JitcaGeneralException("This is the Manual EQ preset, which cannot be renamed.");
    }
View Full Code Here

  public String getName() throws EQPresetDeletedException {
    try {
      return this.iTunesCom.getPropertyAsString("Name");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new EQPresetDeletedException(this);
    }
  }
View Full Code Here

  public boolean isModifiable() throws EQPresetDeletedException {
    try {
      return this.iTunesCom.getPropertyAsBoolean("Modifiable");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new EQPresetDeletedException(this);
    }
  }
View Full Code Here

  public double getPreamp() throws EQPresetDeletedException {
    try {
      return this.iTunesCom.getPropertyAsDouble("Preamp");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new EQPresetDeletedException(this);
    }
  }
View Full Code Here

  public void setPreamp(double level) throws EQPresetDeletedException {
    try {
      this.iTunesCom.setProperty("Preamp", level);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new EQPresetDeletedException(this);
    }
  }
View Full Code Here

  public double getBand(int index) throws EQPresetDeletedException {
    try {
      return this.iTunesCom.getPropertyAsDouble(this.propertyNameForBand(index));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new EQPresetDeletedException(this);
    }
  }
View Full Code Here

  public void setBand(int index, double level) throws EQPresetDeletedException {
    try {
      this.iTunesCom.setProperty(this.propertyNameForBand(index), level);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new EQPresetDeletedException(this);
    }
  }
View Full Code Here

  // TestTODO
  public void setCurrentEQPreset(IITEQPreset eqPreset) throws EQPresetDeletedException {
    try {
      this.iTunesCom.setProperty("CurrentEQPreset", eqPreset.getDispatchObject());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new EQPresetDeletedException(eqPreset);
    }

  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.api.exceptions.EQPresetDeletedException

Copyright © 2018 www.massapicom. 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.