org.gnu.pilotlink
Class PilotLink

java.lang.Object
  extended by org.gnu.pilotlink.PilotLink

public class PilotLink
extends java.lang.Object


Constructor Summary
PilotLink(java.lang.String port)
           
 
Method Summary
 void closeDB(int dbh)
           
 void close()
           
 int createDB(java.lang.String dbn, java.lang.String creator, java.lang.String type, int flags, int version)
           
 int createDB(java.lang.String dbn, java.lang.String creator, java.lang.String type)
           
 int deleteDB(java.lang.String dbn)
           
 void deleteRecordById(int dbhandle, long id)
           
 void endSync()
           
 RawAppInfo getAppInfoBlock(java.lang.String dbname)
           
 RawAppInfo getAppInfo(int db)
          Deprecated.  
 Record getRecordByIndex(int dbh, int idx)
           
 int getRecordCount(int dbhandle)
           
 RawRecord getResourceByIndex(int dbhandle, int idx)
           
 SysInfo getSysInfo()
           
 User getUserInfo()
           
 boolean isConnected()
           
 void openConduit()
           
 int openDB(java.lang.String dbn)
           
 DBInfo readDBList(int cardno, int flags, int start)
           
 void resetSystem()
           
 int writeAppBlock(byte[] data, int dbhandle)
           
 int writeNewRecord(int dbhandle, Record r)
           
 boolean writeRecord(int dbh, Record r)
           
 void writeResource(int dbhandle, RawRecord r)
           
 void writeUserInfo(User u)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

PilotLink

public PilotLink(java.lang.String port)
          throws java.io.IOException,
                 PilotLinkException
Throws:
java.io.IOException
PilotLinkException
Method Detail

isConnected

public boolean isConnected()

getSysInfo

public SysInfo getSysInfo()
                   throws PilotLinkException
Throws:
PilotLinkException

getUserInfo

public User getUserInfo()
                 throws PilotLinkException
Throws:
PilotLinkException

getAppInfo

public RawAppInfo getAppInfo(int db)
                      throws PilotLinkException
Deprecated. 

Throws:
PilotLinkException

getAppInfoBlock

public RawAppInfo getAppInfoBlock(java.lang.String dbname)

writeUserInfo

public void writeUserInfo(User u)
                   throws PilotLinkException
Throws:
PilotLinkException

createDB

public int createDB(java.lang.String dbn,
                    java.lang.String creator,
                    java.lang.String type)
             throws PilotLinkException
Throws:
PilotLinkException

createDB

public int createDB(java.lang.String dbn,
                    java.lang.String creator,
                    java.lang.String type,
                    int flags,
                    int version)
             throws PilotLinkException
Throws:
PilotLinkException

deleteDB

public int deleteDB(java.lang.String dbn)
             throws PilotLinkException
Throws:
PilotLinkException

openDB

public int openDB(java.lang.String dbn)
           throws PilotLinkException
Throws:
PilotLinkException

writeAppBlock

public int writeAppBlock(byte[] data,
                         int dbhandle)
                  throws PilotLinkException
Throws:
PilotLinkException

getRecordCount

public int getRecordCount(int dbhandle)
                   throws PilotLinkException
Throws:
PilotLinkException

getRecordByIndex

public Record getRecordByIndex(int dbh,
                               int idx)
                        throws PilotLinkException
Throws:
PilotLinkException

deleteRecordById

public void deleteRecordById(int dbhandle,
                             long id)

writeRecord

public boolean writeRecord(int dbh,
                           Record r)
                    throws PilotLinkException
Throws:
PilotLinkException

writeNewRecord

public int writeNewRecord(int dbhandle,
                          Record r)
                   throws PilotLinkException
Throws:
PilotLinkException

closeDB

public void closeDB(int dbh)
             throws PilotLinkException
Throws:
PilotLinkException

endSync

public void endSync()
             throws PilotLinkException
Throws:
PilotLinkException

close

public void close()

openConduit

public void openConduit()
                 throws PilotLinkException
Throws:
PilotLinkException

getResourceByIndex

public RawRecord getResourceByIndex(int dbhandle,
                                    int idx)
                             throws PilotLinkException
Throws:
PilotLinkException

writeResource

public void writeResource(int dbhandle,
                          RawRecord r)
                   throws PilotLinkException
Throws:
PilotLinkException

resetSystem

public void resetSystem()
                 throws PilotLinkException
Throws:
PilotLinkException

readDBList

public DBInfo readDBList(int cardno,
                         int flags,
                         int start)
                  throws PilotLinkException
Throws:
PilotLinkException