home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / happydays-src-1.37.tar.gz / happydays-src-1.37.tar / happydays-1.37 / memodb.h < prev    next >
C/C++ Source or Header  |  2000-04-01  |  3KB  |  91 lines

  1. /*******************************************************************
  2.  Copyright ⌐ 1995 - 1998, 3Com Corporation or its subsidiaries ("3Com").  
  3.  All rights reserved.
  4.    
  5.  This software may be copied and used solely for developing products for 
  6.  the Palm Computing platform and for archival and backup purposes.  Except 
  7.  for the foregoing, no part of this software may be reproduced or transmitted 
  8.  in any form or by any means or used to make any derivative work (such as 
  9.  translation, transformation or adaptation) without express written consent 
  10.  from 3Com.
  11.  
  12.  3Com reserves the right to revise this software and to make changes in content 
  13.  from time to time without obligation on the part of 3Com to provide notification 
  14.  of such revision or changes.  
  15.  3COM MAKES NO REPRESENTATIONS OR WARRANTIES THAT THE SOFTWARE IS FREE OF ERRORS 
  16.  OR THAT THE SOFTWARE IS SUITABLE FOR YOUR USE.  THE SOFTWARE IS PROVIDED ON AN 
  17.  "AS IS" BASIS.  3COM MAKES NO WARRANTIES, TERMS OR CONDITIONS, EXPRESS OR IMPLIED, 
  18.  EITHER IN FACT OR BY OPERATION OF LAW, STATUTORY OR OTHERWISE, INCLUDING WARRANTIES, 
  19.  TERMS, OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND 
  20.  SATISFACTORY QUALITY.
  21.  
  22.  TO THE FULL EXTENT ALLOWED BY LAW, 3COM ALSO EXCLUDES FOR ITSELF AND ITS SUPPLIERS 
  23.  ANY LIABILITY, WHETHER BASED IN CONTRACT OR TORT (INCLUDING NEGLIGENCE), FOR 
  24.  DIRECT, INCIDENTAL, CONSEQUENTIAL, INDIRECT, SPECIAL, OR PUNITIVE DAMAGES OF 
  25.  ANY KIND, OR FOR LOSS OF REVENUE OR PROFITS, LOSS OF BUSINESS, LOSS OF INFORMATION 
  26.  OR DATA, OR OTHER FINANCIAL LOSS ARISING OUT OF OR IN CONNECTION WITH THIS SOFTWARE, 
  27.  EVEN IF 3COM HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  28.  
  29.  3Com, HotSync, Palm Computing, and Graffiti are registered trademarks, and 
  30.  Palm III and Palm OS are trademarks of 3Com Corporation or its subsidiaries.
  31.  
  32.  IF THIS SOFTWARE IS PROVIDED ON A COMPACT DISK, THE OTHER SOFTWARE AND 
  33.  DOCUMENTATION ON THE COMPACT DISK ARE SUBJECT TO THE LICENSE AGREEMENT 
  34.  ACCOMPANYING THE COMPACT DISK.
  35.  
  36.  *************************************************************************
  37.  * FileName:
  38.  *        MemoDB.h
  39.  *
  40.  * Description:
  41.  *        Header for the Memo Manager
  42.  *
  43.  * History:
  44.  *       1/3/95    rsf - Created
  45.  *       9/13/95    mlb - added memo item type and MemoNewRecord
  46.  *
  47.  *******************************************************************/
  48.  
  49. #ifndef __TDMEMOMGR_H__
  50. #define __TDMEMOMGR_H__
  51.  
  52. #define LocalizedAppInfoStr            1000
  53.  
  54. typedef struct {
  55.     UInt16    renamedCategories;        // bitfield of categories with a different name
  56.     char    categoryLabels[dmRecNumCategories][dmCategoryLength];
  57.     UInt8    categoryUniqIDs[dmRecNumCategories];
  58.     UInt8    lastUniqID;            // Uniq IDs generated by the device are between
  59.     // 0 - 127.  Those from the PC are 128 - 255.
  60.     UInt8    reserved1;            // from the compiler word aligning things
  61.     UInt16    reserved2;
  62.     UInt16    reserved3;
  63.     UInt8    sortOrder;
  64. } MemoAppInfoType;
  65.  
  66. typedef MemoAppInfoType * MemoAppInfoPtr;
  67.  
  68.  
  69. // Sort orders
  70. #define soUnsorted        0
  71. #define soAlphabetic        1
  72.  
  73.  
  74. typedef struct {
  75.     char     note;        // null terminated
  76. } MemoDBRecordType;
  77.  
  78. typedef MemoDBRecordType * MemoDBRecordPtr;
  79.  
  80. typedef struct {
  81.     Char *                note;
  82. } MemoItemType;
  83.  
  84. typedef MemoItemType * MemoItemPtr;
  85.  
  86.  
  87. extern Err MemoNewRecord(DmOpenRef dbP, MemoItemPtr item, UInt16 *index);
  88.  
  89.  
  90. #endif
  91.