home *** CD-ROM | disk | FTP | other *** search
/ IBM CD Showcase / OS2_CD_ROM.iso / smce0001 / faxpm / demo / api0 / RECIP.SC < prev    next >
Encoding:
Text File  |  1993-11-10  |  3.9 KB  |  179 lines

  1.  
  2. # This file was generated by the SOM Compiler.
  3. # FileName: .\recip.sc.
  4. # Generated using:
  5. #     SOM Precompiler spc: 1.22
  6. #     SOM Emitter emitcsc: 1.10
  7.  
  8. /*
  9.  * 
  10.  * /
  11.  * /* File         RECIP.CSC
  12.  * /
  13.  * /* Description  Class for a recipient entry in the phonebook
  14.  * /
  15.  * /* Last modif   February 4, 1993
  16.  * /
  17.  * /* Copyright    (c) Microformatic S.A. 1992
  18.  * /
  19.  * /
  20.  * 
  21.  * /* Include section
  22.  * /
  23.  */
  24.  
  25. #include <somobj.sc>
  26.  
  27. class: FaxRecipient, 
  28.     local, major version = 1 , minor version = 3 , 
  29.     file stem = recip;
  30.  
  31.     -- 
  32.     -- /* Parent section
  33.     -- /
  34.  
  35.  
  36. parent class: SOMObject;
  37.  
  38.     -- 
  39.     -- /* Passthru section
  40.     -- /
  41.  
  42.  
  43. release order:
  44.     fNewTel, fExternalCall, szName, 
  45.     szTel, szCountryCode, szAreaCode, 
  46.     szExtension, szCompany, szDivision, 
  47.     szActivity, szAddress, szCity, 
  48.     szState, szZip, szCountry, 
  49.     szOwner, szUserName, bInitDone, 
  50.     GetExternalCall, GetOwner, GetName, 
  51.     GetTel, GetCountryCode, GetAreaCode, 
  52.     GetExtension, GetCompany, GetDivision, 
  53.     GetActivity, GetAddress, GetCity, 
  54.     GetState, GetZip, GetCountry, 
  55.     SetExternalCall, SetOwner, SetName, 
  56.     SetTel, SetCountryCode, SetAreaCode, 
  57.     SetExtension, SetCompany, SetDivision, 
  58.     SetActivity, SetAddress, SetCity, 
  59.     SetState, SetZip, SetCountry, 
  60.     GetNewTel, SetNewTel, GetAllNames, 
  61.     Create, Delete, Update, 
  62.     DeleteName, Setup, Get, 
  63.     GetFaxPmPhoneBookName, DeleteFromGroup, DeleteGroup, 
  64.     GetAllGroupsNames, UpdateGroup, GetGroupContents;
  65.  
  66.  
  67. passthru: C.h, before;
  68.  
  69. #define FAX_PHONEBOOK_OK                        0
  70. #define FAX_PHONEBOOK_NOTSETUP                  1
  71. #define FAX_PHONEBOOK_ERROR_UNKNOWN             2
  72. #define FAX_PHONEBOOK_NAME_NOTFOUND             3
  73. #define FAX_PHONEBOOK_GROUP_NOTFOUND            4
  74. #define FAX_PHONEBOOK_ACCESS_NOTALLOWED         5
  75. #define FAX_PHONEBOOK_MEMORY_REQUIRED           6
  76. #define FAX_PHONEBOOK_OUTOFRANGE                7
  77. #define FAX_PHONEBOOK_INVALID_PARM              8
  78. #define FAX_PHONEBOOK_INVALID_NAME              9
  79. #define FAX_PHONEBOOK_INVALID_FAXNUMBER         10
  80. #define FAX_PHONEBOOK_OUTOF_MEMORY              11
  81.  
  82. endpassthru;
  83. methods:
  84.  
  85.  
  86.     APIRET    GetExternalCall(PULONG pulExtCall);
  87.  
  88.     APIRET    GetOwner(PSZ pszVal,
  89.         PULONG pulLen);
  90.  
  91.     APIRET    GetName(PSZ pszVal,
  92.         PULONG pulLen);
  93.  
  94.     APIRET    GetTel(PSZ pszVal,
  95.         PULONG pulLen);
  96.  
  97.     APIRET    GetCountryCode(PSZ pszVal,
  98.         PULONG pulLen);
  99.  
  100.     APIRET    GetAreaCode(PSZ pszVal,
  101.         PULONG pulLen);
  102.  
  103.     APIRET    GetExtension(PSZ pszVal,
  104.         PULONG pulLen);
  105.  
  106.     APIRET    GetCompany(PSZ pszVal,
  107.         PULONG pulLen);
  108.  
  109.     APIRET    GetDivision(PSZ pszVal,
  110.         PULONG pulLen);
  111.  
  112.     APIRET    GetActivity(PSZ pszVal,
  113.         PULONG pulLen);
  114.  
  115.     APIRET    GetAddress(PSZ pszVal,
  116.         PULONG pulLen);
  117.  
  118.     APIRET    GetCity(PSZ pszVal,
  119.         PULONG pulLen);
  120.  
  121.     APIRET    GetState(PSZ pszVal,
  122.         PULONG pulLen);
  123.  
  124.     APIRET    GetZip(PSZ pszVal,
  125.         PULONG pulLen);
  126.  
  127.     APIRET    GetCountry(PSZ pszVal,
  128.         PULONG pulLen);
  129.  
  130.     APIRET    SetExternalCall(ULONG ulVal);
  131.  
  132.     APIRET    SetOwner(PSZ pszVal);
  133.  
  134.     APIRET    SetName(PSZ pszVal);
  135.  
  136.     APIRET    SetTel(PSZ pszVal);
  137.  
  138.     APIRET    SetCountryCode(PSZ pszVal);
  139.  
  140.     APIRET    SetAreaCode(PSZ pszVal);
  141.  
  142.     APIRET    SetExtension(PSZ pszVal);
  143.  
  144.     APIRET    SetCompany(PSZ pszVal);
  145.  
  146.     APIRET    SetDivision(PSZ pszVal);
  147.  
  148.     APIRET    SetActivity(PSZ pszVal);
  149.  
  150.     APIRET    SetAddress(PSZ pszVal);
  151.  
  152.     APIRET    SetCity(PSZ pszVal);
  153.  
  154.     APIRET    SetState(PSZ pszVal);
  155.  
  156.     APIRET    SetZip(PSZ pszVal);
  157.  
  158.     APIRET    SetCountry(PSZ pszVal);
  159.  
  160.     APIRET    GetAllNames(PSZ pszVal,
  161.         PULONG pulLen);
  162.  
  163.     APIRET    Create();
  164.  
  165.     APIRET    Delete();
  166.  
  167.     APIRET    Update();
  168.  
  169.     APIRET    DeleteName(PSZ pszName);
  170.  
  171.     APIRET    Setup(PSZ pszOwner);
  172.  
  173.     APIRET    Get(PSZ pszName);
  174.  
  175.     override somInit;
  176.  
  177.     -- From SOMObject
  178.  
  179.