jSyncManager

org.jSyncManager.API.Protocol.Util.StdApps
Class ToDoListAppBlock

java.lang.Object
  extended byorg.jSyncManager.API.Protocol.Util.DLPBlock
      extended byorg.jSyncManager.API.Protocol.Util.StdApps.AbstractAppBlock
          extended byorg.jSyncManager.API.Protocol.Util.StdApps.ToDoListAppBlock
All Implemented Interfaces:
java.io.Serializable

public class ToDoListAppBlock
extends AbstractAppBlock

Application information block for the Palm ToDoList database.

Version:
$Revision: 3.4 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>
Last modified by: $Author: yaztromo $ on $Date: 2004/08/03 02:35:10 $.
See Also:
Serialized Form

Field Summary
static byte SORT_BY_CATEGORY_THEN_DUEDATE
          A value denoting that we should sort the databases records by category and then due date.
static byte SORT_BY_CATEGORY_THEN_PRIORITY
          A value denoting that we should sort the databases records by category and then priority.
static byte SORT_BY_DUEDATE_THEN_PRIORITY
          A value denoting that we should sort the databases records by due date and then priority.
static byte SORT_BY_PRIORITY_THEN_DUEDATE
          A value denoting that we should sort the databases records by priority then due date.
 
Fields inherited from class org.jSyncManager.API.Protocol.Util.StdApps.AbstractAppBlock
categories, lastUniqueID, numCategories
 
Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPBlock
blockSize, data
 
Constructor Summary
ToDoListAppBlock()
          ExpenseAppBlock default constructor.
ToDoListAppBlock(DLPBlock block)
          Construct a new ToDoList app block object using the data from the specified DLPBlork object.
 
Method Summary
protected  void generateData()
          Generate the raw data block from the existing fields.
 int getDirtyAppInfo()
          Get the designator for Whether the app info has changed and needs to be refreshed.
protected  void parseFields()
          Parse the data fields.
 void setDirtyAppInfo(int i)
          Set the designator for whether the app info has changed and needs to be refreshed.
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.StdApps.AbstractAppBlock
findCategoryInfo, findCategoryInfoByName, findCategoryInfoObject, getCategories, getCategoryInfo, getLastUniqueID, getNumCategories, getSortOrder, setCategoryInfo, setLastUniqueID, setSortOrder
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPBlock
getBlockSize, getData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SORT_BY_DUEDATE_THEN_PRIORITY

public static final byte SORT_BY_DUEDATE_THEN_PRIORITY
A value denoting that we should sort the databases records by due date and then priority.

See Also:
Constant Field Values

SORT_BY_PRIORITY_THEN_DUEDATE

public static final byte SORT_BY_PRIORITY_THEN_DUEDATE
A value denoting that we should sort the databases records by priority then due date.

See Also:
Constant Field Values

SORT_BY_CATEGORY_THEN_PRIORITY

public static final byte SORT_BY_CATEGORY_THEN_PRIORITY
A value denoting that we should sort the databases records by category and then priority.

See Also:
Constant Field Values

SORT_BY_CATEGORY_THEN_DUEDATE

public static final byte SORT_BY_CATEGORY_THEN_DUEDATE
A value denoting that we should sort the databases records by category and then due date.

See Also:
Constant Field Values
Constructor Detail

ToDoListAppBlock

public ToDoListAppBlock()
ExpenseAppBlock default constructor.


ToDoListAppBlock

public ToDoListAppBlock(DLPBlock block)
Construct a new ToDoList app block object using the data from the specified DLPBlork object.

Parameters:
block - a DLPBlock object containing an app block from the ToDo List database.
Method Detail

generateData

protected void generateData()
Generate the raw data block from the existing fields.

Overrides:
generateData in class DLPBlock

getDirtyAppInfo

public int getDirtyAppInfo()
Get the designator for Whether the app info has changed and needs to be refreshed.

Returns:
the Dirty App info indicator.

parseFields

protected void parseFields()
Parse the data fields.

Overrides:
parseFields in class DLPBlock

setDirtyAppInfo

public void setDirtyAppInfo(int i)
Set the designator for whether the app info has changed and needs to be refreshed.

Parameters:
i - the new value for the dirtyAppInfo field.

jSyncManager

Copyright (c) 1999 - 2004 Brad BARCLAY and others. All Rights Reserved.