Exemplo n.º 1
0
  /** @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();
  }
Exemplo n.º 2
0
 /**
  * @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();
 }
Exemplo n.º 3
0
 /**
  * @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();
 }
Exemplo n.º 4
0
 /**
  * @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);
 }