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

  1.  
  2. # This file was generated by the SOM Compiler.
  3. # FileName: .\faxjob1.sc.
  4. # Generated using:
  5. #     SOM Precompiler spc: 1.22
  6. #     SOM Emitter emitcsc: 1.10
  7. #include <somobj.sc>
  8.  
  9. class: FaxJob, 
  10.     local, major version = 1, minor version = 3, 
  11.     file stem = faxjob1;
  12.  
  13.  
  14. parent class: SOMObject;
  15.  
  16.  
  17. release order:
  18.     ulSetupDone, ulJobType, ulJobNumber, 
  19.     szFaxNumber, szAttention, ulExternalCall, 
  20.     ulPostPolling, ulHighRes, szDocName, 
  21.     szFaxMgrId, szUserName, szDocType, 
  22.     ulStartTime, ulEndTime, ulRetriesDone, 
  23.     ulMaxRetries, ulStatus, ulCriteria, 
  24.     ulPtrFaxFile, ulUseCount, ulVersion, 
  25.     ulMailing, szErrorMessage, szUserData, 
  26.     szFaxObjUserName, Codes, Clear, 
  27.     somInit, Get, Create, 
  28.     Update, Delete, GetJobType, 
  29.     GetJobNumber, GetFaxNumber, GetAttention, 
  30.     GetExternalCall, GetDocName, GetFaxMgrId, 
  31.     GetUserName, GetDocType, GetStartTime, 
  32.     GetEndTime, GetRetriesDone, GetMaxRetries, 
  33.     GetStatus, GetCriteria, GetPtrFaxFile, 
  34.     GetUseCount, GetVersion, GetMailing, 
  35.     GetResolution, GetErrorMessage, GetDocTypes, 
  36.     SetJobType, SetJobNumber, SetFaxNumber, 
  37.     SetAttention, SetExternalCall, SetDocName, 
  38.     SetFaxMgrId, SetUserName, SetDocType, 
  39.     SetStartTime, SetEndTime, SetRetriesDone, 
  40.     SetMaxRetries, SetStatus, SetCriteria, 
  41.     SetPtrFaxFile, SetUseCount, SetVersion, 
  42.     SetMailing, Setup, FaxJobReset, 
  43.     CODEDTOCLEAR, CLEARTOCODED;
  44.  
  45.  
  46. passthru: C.h, before;
  47.  
  48. /* CRITERIA */
  49. #define        FAX_JOB_BYTIME                0
  50. #define        FAX_JOB_BYRETRY               1
  51.  
  52.  
  53. /* STATE */
  54. #define        FAX_JOB_READY                 0
  55. #define        FAX_JOB_HELD                  1
  56. #define        FAX_JOB_IN_PROGRESS           2
  57. #define        FAX_JOB_CANCELLED             3
  58. #define        FAX_JOB_LIMIT                 4
  59. #define        FAX_JOB_DONE                  5
  60.  
  61. /* TIME */
  62. #define        UNLIMITED_TIME            0x7FFFFFFF
  63.  
  64.  
  65.  
  66. /* ERRORS */
  67. #define        FAX_JOB_OK                    0
  68. #define        FAX_JOBERR_NOSETUP            1000
  69. #define        FAX_JOBERR_BADID              1001
  70. #define        FAX_JOBERR_NOUSERNAME         1002
  71. #define        FAX_JOBERR_STRINGTOOLONG      1003
  72. #define        FAX_JOBERR_MEMORYALLOCFAILED  1004
  73. #define        FAX_JOBERR_JOBINPROGRESS      1005
  74. #define        FAX_JOBERR_BADJOBNUMBER       1006
  75. #define        FAX_JOBERR_BADUSERNAME        1007
  76. #define        FAX_JOBERR_REQUESTNOTFOUND    1008
  77. #define        FAX_JOBERR_CREATEFAILED       1009
  78. #define        FAX_JOBERR_FILENAMECHANGED    1010
  79. #define        FAX_JOBERR_BADFILENAME        1011
  80. #define        FAX_JOBERR_NOFAXNUMBER        1012
  81. #define        FAX_JOBERR_CANNOTGETRECIPIENT 1013
  82. #define        FAX_JOBERR_BADSTATE           1014
  83.  
  84. endpassthru;
  85. methods:
  86.  
  87.  
  88.     override somInit;
  89.  
  90.     -- From SOMObject
  91.  
  92.     APIRET    Get(ULONG ulJobNumber);
  93.  
  94.     APIRET    Create(PULONG pulNewReqNumber);
  95.  
  96.     APIRET    Update();
  97.  
  98.     APIRET    Delete();
  99.  
  100.     APIRET    GetJobNumber(PULONG pulJobNumber);
  101.  
  102.     APIRET    GetFaxNumber(PSZ pszFaxNumber,
  103.         PULONG pulLen);
  104.  
  105.     APIRET    GetAttention(PSZ pszAttention,
  106.         PULONG pulLen);
  107.  
  108.     APIRET    GetExternalCall(PULONG pulExtCall);
  109.  
  110.     APIRET    GetDocName(PSZ pszDocName,
  111.         PULONG pulLen);
  112.  
  113.     APIRET    GetFaxMgrId(PSZ pszFaxMgrId,
  114.         PULONG pulLen);
  115.  
  116.     APIRET    GetUserName(PSZ pszUserName,
  117.         PULONG pulLen);
  118.  
  119.     APIRET    GetDocType(PSZ pszDocType,
  120.         PULONG pulLen);
  121.  
  122.     APIRET    GetStartTime(PULONG pulTime);
  123.  
  124.     APIRET    GetEndTime(PULONG pulTime);
  125.  
  126.     APIRET    GetRetriesDone(PULONG pulRetries);
  127.  
  128.     APIRET    GetMaxRetries(PULONG pulRetries);
  129.  
  130.     APIRET    GetStatus(PULONG pulStatus);
  131.  
  132.     APIRET    GetCriteria(PULONG pulCrit);
  133.  
  134.     APIRET    GetErrorMessage(PSZ pszErr,
  135.         PULONG pulLen);
  136.  
  137.     APIRET    GetDocTypes(PSZ pszDocTypes,
  138.         PULONG pulLen);
  139.  
  140.     APIRET    SetJobNumber(ULONG ulJobNumber);
  141.  
  142.     APIRET    SetFaxNumber(PSZ pszFaxNumber);
  143.  
  144.     APIRET    SetAttention(PSZ pszAttention);
  145.  
  146.     APIRET    SetExternalCall(ULONG ulExternalCall);
  147.  
  148.     APIRET    SetDocName(PSZ pszDocName);
  149.  
  150.     APIRET    SetFaxMgrId(PSZ pszFaxMgrId);
  151.  
  152.     APIRET    SetUserName(PSZ pszUserName);
  153.  
  154.     APIRET    SetDocType(PSZ pszDocType);
  155.  
  156.     APIRET    SetStartTime(ULONG ulStartTime);
  157.  
  158.     APIRET    SetEndTime(ULONG ulEndTime);
  159.  
  160.     APIRET    SetRetriesDone(ULONG ulRetriesDone);
  161.  
  162.     APIRET    SetMaxRetries(ULONG ulMaxRetries);
  163.  
  164.     APIRET    SetStatus(ULONG ulStatus);
  165.  
  166.     APIRET    SetCriteria(ULONG ulCriteria);
  167.  
  168.     APIRET    Setup(PSZ pszUserName);
  169.  
  170.     APIRET    FaxJobReset();
  171.  
  172.     APIRET    CODEDTOCLEAR(PSZ pszDocType);
  173.  
  174.     APIRET    CLEARTOCODED(PSZ pszDocType);
  175.  
  176.