local.tomas.irmc
Class IrMCConnection

java.lang.Object
  extended by local.tomas.irmc.IrMCConnection

public class IrMCConnection
extends java.lang.Object


Nested Class Summary
static interface IrMCConnection.IrMCAppCommand
           
 
Field Summary
static java.lang.String LUID_NAME
           
static java.lang.String SYNC_SERVICE
           
 
Constructor Summary
IrMCConnection(local.tomas.obex.api.ObexConnection obex, local.tomas.vcard.VType type)
           
 
Method Summary
 IrMCWriteResponse addVCard(local.tomas.vcard.impl.VCardConfiguration config, local.tomas.vcard.VCard vCard)
           
 IrMCWriteResponse deleteVCard(java.lang.String uid, boolean hard, java.lang.Long maxChangeCounter)
           
 java.util.Map<java.lang.String,local.tomas.vcard.VCard> getAllVCards(local.tomas.vcard.impl.VCardConfiguration config)
           
 long getChangeCounter()
           
 IrMCChangeLog getChangeLog(java.util.Date timestamp)
           
 IrMCChangeLog getChangeLog(long changeCounter)
           
 java.lang.String getCharset()
           
 java.lang.String getDeviceInfo()
           
 IrMCInfoLog getInfoLog()
           
 local.tomas.vcard.VType getType()
           
 local.tomas.vcard.VCard getVCard(local.tomas.vcard.impl.VCardConfiguration config, java.lang.String uid)
           
 java.util.Date readDate()
           
 void setCharset(java.lang.String charset)
           
static com.satline.util.Pair<java.lang.String,java.lang.String> splitPair(java.lang.String line)
           
 IrMCWriteResponse updateVCard(local.tomas.vcard.impl.VCardConfiguration config, java.lang.String uid, local.tomas.vcard.VCard vCard, java.lang.Long maxChangeCounter)
           
 void writeDate(java.util.Date date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LUID_NAME

public static final java.lang.String LUID_NAME
See Also:
Constant Field Values

SYNC_SERVICE

public static final java.lang.String SYNC_SERVICE
See Also:
Constant Field Values
Constructor Detail

IrMCConnection

public IrMCConnection(local.tomas.obex.api.ObexConnection obex,
                      local.tomas.vcard.VType type)
Method Detail

getCharset

public java.lang.String getCharset()

setCharset

public void setCharset(java.lang.String charset)

getType

public local.tomas.vcard.VType getType()

getInfoLog

public IrMCInfoLog getInfoLog()
                       throws IrMCException
Throws:
IrMCException

getChangeCounter

public long getChangeCounter()
                      throws IrMCException
Throws:
IrMCException

readDate

public java.util.Date readDate()
                        throws IrMCException
Throws:
IrMCException

writeDate

public void writeDate(java.util.Date date)
               throws IrMCException
Throws:
IrMCException

getChangeLog

public IrMCChangeLog getChangeLog(long changeCounter)
                           throws IrMCException
Throws:
IrMCException

getChangeLog

public IrMCChangeLog getChangeLog(java.util.Date timestamp)
                           throws IrMCException
Throws:
IrMCException

splitPair

public static com.satline.util.Pair<java.lang.String,java.lang.String> splitPair(java.lang.String line)

getDeviceInfo

public java.lang.String getDeviceInfo()
                               throws IrMCException
Throws:
IrMCException

getVCard

public local.tomas.vcard.VCard getVCard(local.tomas.vcard.impl.VCardConfiguration config,
                                        java.lang.String uid)
                                 throws IrMCException
Throws:
IrMCException

getAllVCards

public java.util.Map<java.lang.String,local.tomas.vcard.VCard> getAllVCards(local.tomas.vcard.impl.VCardConfiguration config)
                                                                     throws IrMCException
Throws:
IrMCException

addVCard

public IrMCWriteResponse addVCard(local.tomas.vcard.impl.VCardConfiguration config,
                                  local.tomas.vcard.VCard vCard)
                           throws IrMCException
Throws:
IrMCException

updateVCard

public IrMCWriteResponse updateVCard(local.tomas.vcard.impl.VCardConfiguration config,
                                     java.lang.String uid,
                                     local.tomas.vcard.VCard vCard,
                                     java.lang.Long maxChangeCounter)
                              throws IrMCException
Throws:
IrMCException

deleteVCard

public IrMCWriteResponse deleteVCard(java.lang.String uid,
                                     boolean hard,
                                     java.lang.Long maxChangeCounter)
                              throws IrMCException
Throws:
IrMCException


Copyright © 2007 null. All Rights Reserved.