com.ibm.manplato.Protocol
Class MSyncProtocol
java.lang.Object
|
+--com.ibm.manplato.Protocol.MSyncProtocol
- public class MSyncProtocol
- extends java.lang.Object
- Version:
- $Rev$-$Date: 2001/08/16 20:58:15 $$State: Exp $
- Author:
- File Created By: Brad BARCLAY <bbarclay@ca.ibm.com>, Last Modified By: $Author: Yaztromo $
Method Summary |
void |
addSyncLogEntry(java.lang.String s)
|
void |
cleanupDatabase(byte byte0)
|
void |
closeAllDatabases()
|
void |
closeDatabase(byte byte0)
|
void |
closeTransport()
Closing the underlying transport by disconnecting
from all handlers, and stopping all of their threads. |
void |
connect()
|
byte |
createDatabase(byte byte0,
int i,
int j,
java.lang.String s,
char c,
char c1)
|
byte |
createDatabase(byte byte0,
java.lang.String s,
java.lang.String s1,
java.lang.String s2,
char c,
char c1)
|
void |
deleteDatabase(byte byte0,
java.lang.String s)
|
void |
deleteRecord(byte byte0,
byte byte1,
int i)
|
void |
deleteResource(byte dbID,
byte flags,
int type,
char resourceID)
|
void |
disconnect()
|
void |
disconnect(char c)
|
DLPBlock |
getApplicationBlock(byte byte0,
int i,
int j)
|
CMP_DLP |
getCmpDlpHandler()
|
DLPDatabaseListGroup |
getDatabaseList(byte searchFlags,
byte cardNumber,
char startIndex)
Gets the list of information on the databases stored on the remote Palm Computing Platform device. |
int |
getOpenDatabaseInfo(byte dbID)
|
PADP |
getPADPHandler()
|
SLP |
getSLPHandler()
|
DLPBlock |
getSortBlock(byte byte0,
int i,
int j)
|
int |
getSpeed()
|
DLPStorageInfo |
getStorageInfo(byte card)
|
DLPSystemInfo |
getSystemInfo()
|
java.util.Calendar |
getTime()
|
DLPUserInfo |
getUserInfo()
|
boolean |
isConnected()
|
void |
moveCategory(byte byte0,
byte byte1,
byte byte2)
|
void |
openConduit()
|
byte |
openDatabase(byte byte0,
byte byte1,
java.lang.String s)
|
DLPAppPreference |
readAppPreference(int creatorID,
char prefID,
char size,
byte flags)
|
DLPRecord |
readNextModifiedRecord(byte dbID)
|
DLPRecord |
readNextModifiedRecordInCategory(byte dbID,
byte category)
|
DLPRecord |
readNextRecordInCategory(byte dbID,
byte category)
|
DLPRecord |
readRecord(byte byte0,
char c,
char c1,
char c2)
|
DLPRecord |
readRecord(byte byte0,
int i,
char c,
char c1)
|
int[] |
readRecordIDList(byte byte0,
byte byte1,
char c,
char c1)
|
DLPResource |
readResource(byte byte0,
char c,
char c1,
char c2)
|
DLPResource |
readResource(byte byte0,
int i,
char c,
char c1,
char c2)
|
void |
resetRecordIndex(byte byte0)
|
void |
resetSyncFlags(byte byte0)
|
void |
resetSystem()
|
void |
setSpeed(int speed)
|
void |
setTime(java.util.Calendar calendar)
|
void |
setTransport(SLPTransportInterface t)
|
void |
setUserInfo(DLPUserInfo dlpuserinfo)
|
void |
startTickles()
|
void |
stopTickles()
|
void |
suspend()
|
void |
writeApplicationBlock(byte byte0,
byte[] abyte0)
|
void |
writeApplicationBlock(byte dbID,
DLPBlock appBlock)
|
void |
writeAppPreference(int creatorID,
char prefID,
byte flags,
DLPAppPreference preference)
|
int |
writeRecord(byte dbID,
byte flags,
DLPRecord record)
|
int |
writeRecord(byte byte0,
byte byte1,
int i,
byte byte2,
byte byte3,
byte[] abyte0)
|
void |
writeResource(byte byte0,
DLPResource dlpresource)
|
void |
writeResource(byte byte0,
int i,
char c,
byte[] abyte0)
|
void |
writeSortBlock(byte byte0,
byte[] abyte0)
|
void |
writeSortBlock(byte dbID,
DLPBlock sortBlock)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
slpHandler
SLP slpHandler
padpHandler
PADP padpHandler
cmpDlpHandler
CMP_DLP cmpDlpHandler
transport
SLPTransportInterface transport
MSyncProtocol
public MSyncProtocol(CMP_DLP cmp_dlp)
MSyncProtocol
public MSyncProtocol(SLPTransportInterface slptransportinterface)
addSyncLogEntry
public void addSyncLogEntry(java.lang.String s)
throws DLPFunctionCallException,
NotConnectedException
cleanupDatabase
public void cleanupDatabase(byte byte0)
throws DLPFunctionCallException,
NotConnectedException
closeAllDatabases
public void closeAllDatabases()
throws DLPFunctionCallException,
NotConnectedException
closeDatabase
public void closeDatabase(byte byte0)
throws DLPFunctionCallException,
NotConnectedException
connect
public void connect()
throws NotConnectedException
createDatabase
public byte createDatabase(byte byte0,
int i,
int j,
java.lang.String s,
char c,
char c1)
throws DLPFunctionCallException,
NotConnectedException
createDatabase
public byte createDatabase(byte byte0,
java.lang.String s,
java.lang.String s1,
java.lang.String s2,
char c,
char c1)
throws DLPFunctionCallException,
NotConnectedException
deleteDatabase
public void deleteDatabase(byte byte0,
java.lang.String s)
throws DLPFunctionCallException,
NotConnectedException
deleteRecord
public void deleteRecord(byte byte0,
byte byte1,
int i)
throws DLPFunctionCallException,
NotConnectedException
deleteResource
public void deleteResource(byte dbID,
byte flags,
int type,
char resourceID)
throws DLPFunctionCallException,
NotConnectedException
disconnect
public void disconnect()
throws NotConnectedException
disconnect
public void disconnect(char c)
throws NotConnectedException
getApplicationBlock
public DLPBlock getApplicationBlock(byte byte0,
int i,
int j)
throws DLPFunctionCallException,
NotConnectedException
getCmpDlpHandler
public CMP_DLP getCmpDlpHandler()
getDatabaseList
public DLPDatabaseListGroup getDatabaseList(byte searchFlags,
byte cardNumber,
char startIndex)
throws DLPFunctionCallException,
NotConnectedException
- Gets the list of information on the databases stored on the remote Palm Computing Platform device.
- Parameters:
searchFlags
- the search flags to use for reading the database info (ie: DLPDatabase.RAM_BASED and DLPDatabase.ROM_BASED)cardNumber
- the card number to read database information objects from.startIndex
- the start index for reading database information objects.- Returns:
- the DLPDatabaseListGroup object containing the read database information objects.
- Throws:
DLPFunctionCallException
- Thrown if there is an error in processing the request.NotConnectedException
- thrown if the connection is lost while processing this command.- See Also:
DLPDatabaseListGroup
,
DLPDatabase
getOpenDatabaseInfo
public int getOpenDatabaseInfo(byte dbID)
throws DLPFunctionCallException,
NotConnectedException
getPADPHandler
public PADP getPADPHandler()
getSLPHandler
public SLP getSLPHandler()
getSortBlock
public DLPBlock getSortBlock(byte byte0,
int i,
int j)
throws DLPFunctionCallException,
NotConnectedException
getSpeed
public int getSpeed()
- Returns:
- int
getStorageInfo
public DLPStorageInfo getStorageInfo(byte card)
throws DLPFunctionCallException,
NotConnectedException
getSystemInfo
public DLPSystemInfo getSystemInfo()
throws DLPFunctionCallException,
NotConnectedException
getTime
public java.util.Calendar getTime()
throws DLPFunctionCallException,
NotConnectedException
getUserInfo
public DLPUserInfo getUserInfo()
throws DLPFunctionCallException,
NotConnectedException
isConnected
public boolean isConnected()
moveCategory
public void moveCategory(byte byte0,
byte byte1,
byte byte2)
throws DLPFunctionCallException,
NotConnectedException
openConduit
public void openConduit()
throws DLPFunctionCallException,
NotConnectedException
openDatabase
public byte openDatabase(byte byte0,
byte byte1,
java.lang.String s)
throws DLPFunctionCallException,
NotConnectedException
readAppPreference
public DLPAppPreference readAppPreference(int creatorID,
char prefID,
char size,
byte flags)
throws DLPFunctionCallException,
NotConnectedException
- Parameters:
creatorID
- intprefID
- charsize
- charflags
- byte- Returns:
- DLPAppPreference
readNextModifiedRecord
public DLPRecord readNextModifiedRecord(byte dbID)
throws DLPFunctionCallException,
NotConnectedException
readNextModifiedRecordInCategory
public DLPRecord readNextModifiedRecordInCategory(byte dbID,
byte category)
throws DLPFunctionCallException,
NotConnectedException
readNextRecordInCategory
public DLPRecord readNextRecordInCategory(byte dbID,
byte category)
throws DLPFunctionCallException,
NotConnectedException
readRecord
public DLPRecord readRecord(byte byte0,
char c,
char c1,
char c2)
throws DLPFunctionCallException,
NotConnectedException
readRecord
public DLPRecord readRecord(byte byte0,
int i,
char c,
char c1)
throws DLPFunctionCallException,
NotConnectedException
readRecordIDList
public int[] readRecordIDList(byte byte0,
byte byte1,
char c,
char c1)
throws DLPFunctionCallException,
NotConnectedException
readResource
public DLPResource readResource(byte byte0,
char c,
char c1,
char c2)
throws DLPFunctionCallException,
NotConnectedException
readResource
public DLPResource readResource(byte byte0,
int i,
char c,
char c1,
char c2)
throws DLPFunctionCallException,
NotConnectedException
resetRecordIndex
public void resetRecordIndex(byte byte0)
throws DLPFunctionCallException,
NotConnectedException
resetSyncFlags
public void resetSyncFlags(byte byte0)
throws DLPFunctionCallException,
NotConnectedException
resetSystem
public void resetSystem()
throws DLPFunctionCallException,
NotConnectedException
setSpeed
public void setSpeed(int speed)
- Parameters:
speed
- int
setTime
public void setTime(java.util.Calendar calendar)
throws DLPFunctionCallException,
NotConnectedException
setTransport
public void setTransport(SLPTransportInterface t)
- Parameters:
t
- com.ibm.manplato.Transport.SLPTransportInterface
setUserInfo
public void setUserInfo(DLPUserInfo dlpuserinfo)
throws DLPFunctionCallException,
NotConnectedException
startTickles
public void startTickles()
stopTickles
public void stopTickles()
suspend
public void suspend()
throws NotConnectedException
writeApplicationBlock
public void writeApplicationBlock(byte dbID,
DLPBlock appBlock)
throws DLPFunctionCallException,
NotConnectedException
writeApplicationBlock
public void writeApplicationBlock(byte byte0,
byte[] abyte0)
throws DLPFunctionCallException,
NotConnectedException
writeAppPreference
public void writeAppPreference(int creatorID,
char prefID,
byte flags,
DLPAppPreference preference)
throws DLPFunctionCallException,
NotConnectedException
- Parameters:
creatorID
- intprefID
- charpreference
- com.ibm.manplato.Protocol.Util.DLPAppPreference- Throws:
DLPFunctionCallException
- The exception description.
writeRecord
public int writeRecord(byte byte0,
byte byte1,
int i,
byte byte2,
byte byte3,
byte[] abyte0)
throws DLPFunctionCallException,
NotConnectedException
writeRecord
public int writeRecord(byte dbID,
byte flags,
DLPRecord record)
throws DLPFunctionCallException,
NotConnectedException
writeResource
public void writeResource(byte byte0,
int i,
char c,
byte[] abyte0)
throws DLPFunctionCallException,
NotConnectedException
writeResource
public void writeResource(byte byte0,
DLPResource dlpresource)
throws DLPFunctionCallException,
NotConnectedException
writeSortBlock
public void writeSortBlock(byte dbID,
DLPBlock sortBlock)
throws DLPFunctionCallException,
NotConnectedException
writeSortBlock
public void writeSortBlock(byte byte0,
byte[] abyte0)
throws DLPFunctionCallException,
NotConnectedException
closeTransport
public void closeTransport()
- Closing the underlying transport by disconnecting
from all handlers, and stopping all of their threads.
This method is only called by Synchronizer.stopSync to
change the transport.