Package com.jitcaforwin.basic.api.exceptions

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


  public void updateIPod() throws SourceDeletedException {
    try {
      this.iTunesCom.callProcedure("UpdateIPod");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new SourceDeletedException(this);
    }
  }
View Full Code Here


  public void ejectIPod() throws SourceDeletedException {
    try {
      this.iTunesCom.callProcedure("EjectIPod");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new SourceDeletedException(this);
    }
  }
View Full Code Here

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

  public IITPlaylist item(long index) throws SourceDeletedException {
    try {
      DispatchObject dispatch = super.itemDispatchObject(index);
      return ITPlaylistImpl.newIITPlaylist(dispatch);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new SourceDeletedException();
    } catch (ObjectDeletedException e) {
      throw new SourceDeletedException();
    }

  }
View Full Code Here

  public IITPlaylist itemByName(String name) throws SourceDeletedException {
    try {
      DispatchObject dispatch = super.itemByNameDispatchObject(name);
      return ITPlaylistImpl.newIITPlaylist(dispatch);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new SourceDeletedException();
    }
  }
View Full Code Here

  public IITPlaylist itemByPersistentID(long highID, long lowID) throws SourceDeletedException {
    try {
      DispatchObject dispatch = super.itemByPersistentIDDispatchObject(highID, lowID);
      return ITPlaylistImpl.newIITPlaylist(dispatch);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new SourceDeletedException();
    }
  }
View Full Code Here

  public ITSourceKind getKind() throws SourceDeletedException {
    try {
      return new ITSourceKind(this.iTunesCom.getPropertyAsEnum("Kind"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new SourceDeletedException(this);
    }
  }
View Full Code Here

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

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

    try {
      return new ITPlaylistCollectionImpl(this.iTunesCom.getPropertyAsDispatchObject("Playlists"));
    } catch (DispatchObjectNullException e) {
      return null; // No playlists for this source.
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new SourceDeletedException(this);
    }
  }
View Full Code Here

TOP

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

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.