|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbase.PoddydClient
public class PoddydClient
This class implements the client connection to the remote poddy-server to retrieve/update CD and DVD data and to synchronize with a users remote account that contains scheduled recording information. Here within this class all functionalities for connectiong with the poddy-server "poddyd" and the poddy-protocol is implemented
| Constructor Summary | |
|---|---|
PoddydClient()
Default constructor for a PoddydClient object, here the socket connection to the poddy server is established to communicate with it in further method calls |
|
| Method Summary | |
|---|---|
void |
close()
Closes the connection to the poddy-server; after this method has been called the PoddydClient object canT be used any longer |
CDInfo |
getCD(CDInfo info)
Tries to retrieve information about a CD from the CD database; this functionality is not related to a user account, therefore no authentication is required |
DVDInfo |
getDVD(DVDInfo info)
Tries to retrieve information about a DVD from the DVD database; this functionality is not related to a user account, therefore no authentication is required |
void |
setCD(CDInfo info)
Sends information about a possibly new CD; this functionality is not related to a user account, therefore no authentication is required |
void |
setDVD(DVDInfo info)
Sends information about a possibly new DVD; this functionality is not related to a user account, therefore no authentication is required |
void |
setStations(StationsList list,
String uname,
String hash)
Sends the local list of known TV stations to the remote account of a user so that the latest list is available within the web interface; this method is called every time a new scan for TV stations was done, the TV stations have been re-arranged by the user or at least one TV station was edited |
void |
syncAll(SQLLocalAccess SQL,
String uname,
String hash)
Performs a full synchronisation of all remote and local userdata with new and deleted schedules |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PoddydClient()
throws Exception
Exception| Method Detail |
|---|
public void syncAll(SQLLocalAccess SQL,
String uname,
String hash)
SQL - local SQL connection object that handles the stored scheduling informationuname - remote username to authenticate withhash - remote password hash value to authenticate with
public void setStations(StationsList list,
String uname,
String hash)
list - the new list of TV stationsuname - remote username to authenticate withhash - remote password hash value to authenticate withpublic void setCD(CDInfo info)
info - the new CDInfo data to be stored within the global database; these values are rejected on
server side in case there already exists a CD with this identifierpublic CDInfo getCD(CDInfo info)
info - a CDInfo object that contains discid and tracksid values that uniquely identify this CD
public void setDVD(DVDInfo info)
info - the new DCDInfo data to be stored within the global database; these values are rejected on
server side in case there already exists a DVD with this identifierpublic DVDInfo getDVD(DVDInfo info)
info - a DVDInfo object that contains crcid value that uniquely identify this DVD
public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||