|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbuttress.main.Main
| Field Summary | |
static java.lang.String |
agent
the referring agent to the torrent site |
static java.lang.String |
DEFAULT_BT_PATH
|
static java.lang.String |
DEFAULT_BUT_FOLDER
|
static int |
MIN_DELAY
variable for time check |
| Constructor Summary | |
Main()
Constructor |
|
Main(java.lang.String bt)
Constructor |
|
Main(java.lang.String bt,
java.lang.String but)
Constructor |
|
| Method Summary | |
void |
addFeed(Rss newRss)
adding a new feed with a rss object |
void |
addFeed(java.lang.String s)
adds a new rss feed to the feedlist |
void |
addFilter(Filter newFilter)
adds a new filter from a filter object |
void |
addFilter(java.lang.String s)
adds a new filter to the filter list |
void |
doCheck()
Checks all the rssfeeds in buttress |
void |
editFeed(int editPlace,
Rss newRss)
|
void |
editFilter(int editPlace,
Filter newFilter)
|
static java.lang.String |
getBtPath()
returns btPath string |
static java.lang.String |
getButFolder()
returns butFolder string |
Rss |
getFeed(int feedNum)
|
Filter |
getFilter(int filterNum)
|
java.util.List |
getFilters()
|
java.util.ArrayList |
getFoundItemList()
|
java.util.List |
getRssList()
|
static int |
getTimeDelay()
Returns the time between checking the feeds |
static boolean |
isAutoStart()
|
Rss |
removeFeed(int pos)
removes the rss feed at specfic place |
boolean |
removeFeed(Rss feed)
removes the specfied feed |
boolean |
removeFilter(Filter deadFilter)
adds a new filter from a filter object |
Filter |
removeFilter(int pos)
removes the rss feed at specfic place |
void |
resumeMe()
makes the thread stop sleeping to make it update |
void |
run()
Main processing method to run doCheck() ever x mins |
static void |
setAutoStart(boolean autoStart)
|
static java.lang.String |
setBtPath(java.lang.String bt)
sets a new bittorrent path |
static java.lang.String |
setButFolder(java.lang.String but)
sets a new buttress folder path |
static int |
setTimeDelay(int t)
Changes the time between checking the feeds |
void |
startThread()
Starts the timer running |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MIN_DELAY
public static final java.lang.String DEFAULT_BT_PATH
public static final java.lang.String DEFAULT_BUT_FOLDER
public static final java.lang.String agent
| Constructor Detail |
public Main()
public Main(java.lang.String bt)
bt - bittorrent path
public Main(java.lang.String bt,
java.lang.String but)
bt - bittorrent pathbut - buttress folder| Method Detail |
public java.util.List getFilters()
public java.util.List getRssList()
public static java.lang.String getBtPath()
public static java.lang.String getButFolder()
public static java.lang.String setBtPath(java.lang.String bt)
bt - bittorrent client path
public static java.lang.String setButFolder(java.lang.String but)
but - buttress folder path
public void addFeed(java.lang.String s)
s - string of the new rss feedpublic void addFeed(Rss newRss)
newRss - new rss feed
public void editFeed(int editPlace,
Rss newRss)
public void editFilter(int editPlace,
Filter newFilter)
public Rss getFeed(int feedNum)
public Filter getFilter(int filterNum)
public Rss removeFeed(int pos)
pos - int pos of item to be removed
public boolean removeFeed(Rss feed)
feed - the item to be removed
public void addFilter(java.lang.String s)
s - string to add as a filterpublic void addFilter(Filter newFilter)
newFilter - Filterpublic Filter removeFilter(int pos)
pos - int pos of item to be removed
public boolean removeFilter(Filter deadFilter)
deadFilter - Filter
public static int getTimeDelay()
public static int setTimeDelay(int t)
t - int time value in minutes
public java.util.ArrayList getFoundItemList()
public void doCheck()
public void resumeMe()
public void startThread()
public void run()
run in interface java.lang.Runnablepublic static boolean isAutoStart()
public static void setAutoStart(boolean autoStart)
autoStart - Whether or not buttress should automatically start the
torrent client
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||