Re: [Algol-devel] Vlad YOUR TASK
Status: Alpha
Brought to you by:
cloover
From: Chabaane, z. <cha...@ya...> - 2007-09-25 08:33:09
|
Hi Vlad, Your task most respect this structure : 1. DATABASE MYSQL : (you can create it in localhost) - TABLE NAME : ALGOL_USER - FIELDS : ID (NUMBER) LOGIN (VARCHAR(50)) PASSWD (VARCHAR(50)) LAST_SEEN (DATE+TIME) STAT (VARCHAR(3) contain "ON" or "OFF") 2. public class ADMIN_DB : - void connect() // connect() for establishing connection to DATABASE - int onLine() // return a number of user have a value "ON" - boolean getUser() // return a STAT of user (true or false) - void setUser(boolean) // affect to user a value "ON" or "OFF" - void onConnect() // an EventListener if new user connected (ON). - void onDisconnect() // an EventListener if an user disconnected (OFF). This all for the moment. Thanks, ohloh profile <http://www.ohloh.net/accounts/9665?ref=Tiny> ohloh profile for CLoOVeR |