コード例 #1
0
ファイル: AuctionsManager.java プロジェクト: lmop/jbidwatcher
  /** @brief AuctionsManager is a singleton, there should only be one in the system. */
  private AuctionsManager() {
    //  This should be loaded from the configuration settings.
    mCheckpointFrequency = 10 * Constants.ONE_MINUTE;
    mLastCheckpointed = System.currentTimeMillis();

    mFilter = FilterManager.getInstance();
  }
コード例 #2
0
ファイル: AuctionsManager.java プロジェクト: lmop/jbidwatcher
 /**
  * @brief Delete from ALL auction lists!
  *     <p>The FilterManager does this, as it needs to be internally self-consistent.
  * @param ae - The auction entry to delete.
  */
 public void delEntry(AuctionEntry ae) {
   String id = ae.getIdentifier();
   DeletedEntry.create(id);
   ae.cancelSnipe(false);
   mFilter.deleteAuction(ae);
   ae.delete();
 }
コード例 #3
0
ファイル: AuctionsManager.java プロジェクト: lmop/jbidwatcher
 /**
  * @brief Return an iterator useful for iterating over all the auction lists managed.
  * @return An iterator pointing to the first auction list.
  */
 public static Iterator<AuctionEntry> getAuctionIterator() {
   return FilterManager.getInstance().getAuctionIterator();
 }
コード例 #4
0
ファイル: AuctionsManager.java プロジェクト: lmop/jbidwatcher
 /**
  * @brief Add a new auction entry to the set.
  *     <p>This is complex mainly because the splash screen needs to be updated if we're loading
  *     from XML at startup, and because the new auction type needs to be split across the
  *     hardcoded auction collection types.
  * @param ae - The auction entry to add.
  */
 public void addEntry(AuctionEntry ae) {
   mFilter.addAuction(ae);
 }