home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / pocketbk / utilsf / lpc091s / LPC.CAT < prev    next >
Text File  |  1994-04-21  |  4KB  |  101 lines

  1. LIBRARY lpc
  2.  
  3. INCLUDE p_std.h
  4. INCLUDE p_object.h
  5.  
  6. CLASS lpcon
  7.     {
  8.     ADD lpc_destroy         Free buffers then root_destroy
  9.     ADD lpc_init            Set user status word, if any
  10.     !   next group of methods are asynchronous
  11.     ADD lpc_action          Interpret command and act on it
  12.     ADD lpc_key             Send key with modifier
  13.     ADD lpc_string          Send string of keys
  14.     ADD lpc_pause           Pause (in client) for specified time
  15.     ADD lpc_message         Cause message to be displayed
  16.     ADD lpc_disp_menu       Display menu at given position
  17.     ADD lpc_client_pos      Move process to specified client position
  18.     ADD lpc_ground_state    Bring application to ground state
  19.     ADD lpc_allcount        Alloc count in attached process
  20.     ADD lpc_self_check      Self test attached process
  21.     ADD lpc_dialog          Run remote dialog
  22.     ADD lpc_get_key         Get next key press to record
  23.     ADD lpc_exec            Execute program and attach to it
  24.     ADD lpc_wait            Wait for completion of last img/opl launched
  25.     ADD lpc_bring_send      Bring data then send it as a string
  26.     ADD lpc_name_send       Format name then send it as a string
  27.     !   next group are synchronous but have async interfaces via lpc_action
  28.     ADD lpc_store_pid       Store current pid for later use
  29.     ADD lpc_restore_pid     Restore current pid from earlier use
  30.     ADD lpc_attach          Try to attach to specified process
  31.     ADD lpc_attach_fore     Attach to foreground process
  32.     ADD lpc_attach_fname    Try to attach to process specified by file
  33.     ADD lpc_zap             Kill all specified processes
  34.     ADD lpc_kill            Kill attached process
  35.     ADD lpc_terminate       Terminate attached process
  36.     ADD lpc_closedown       Closedown message to attached process
  37.     ADD lpc_exec_img        Execute image program
  38.     ADD lpc_exec_opl        Execute Opl program
  39.     ADD lpc_hook_dyl        Application should launch and hook DYL
  40.     ADD lpc_convert         Convert selected stored characters to zero
  41.     ADD lpc_beep            Beep (as in Opl)
  42.     !   next group of methods are synchronous set or sense methods
  43.     ADD lpc_bring           Sense link paste data
  44.     ADD lpc_record          Turn recording state on or off
  45.     ADD lpc_yield           Yield CPU to any other processes that need it
  46.     ADD lpc_set_pid         Set attached pid
  47.     ADD lpc_sense_pid       Sense attached pid
  48.     ADD lpc_sense_name      Sense formatted name of process
  49.     ADD lpc_test_pid        Test whether could attach to given pid
  50.     ADD lpc_store           Store text buffer for later use
  51.     ADD lpc_process_info    Return menu/dialog/locked/filter/busy/start state
  52.     ADD lpc_count_dialogs   Return count of dialogs
  53.     ADD lpc_sense_iosem     Return value of io semaphore
  54.     ADD lpc_sense_amstart   Return value of appman.start
  55.     ADD lpc_cancel          Cancel current activity
  56.     CONSTANTS
  57.         {
  58.         LPC_MENU_SHOWING    0x01
  59.         LPC_DIALOG_SHOWING  0x02
  60.         LPC_APP_LOCKED      0x04
  61.         LPC_FILTER_USED     0x08
  62.         LPC_IOSEM_ACTIVE    0x10
  63.         LPC_AM_STARTED      0x20
  64.         }
  65.     TYPES
  66.         {
  67.         typedef struct
  68.             {
  69.             VOID *main;
  70.             UWORD main_len;
  71.             VOID *extra;
  72.             WORD extra_val;
  73.             } LPC_DIALOG_DATA;
  74.         typedef struct
  75.             {
  76.             UWORD time;
  77.             UWORD key;
  78.             UBYTE mods;
  79.             UBYTE count;
  80.             } LPC_GET_KEY;
  81.         }
  82.     PROPERTY
  83.         {
  84.         P_OBJECT pc;        PRS_ROOT
  85.         WORD pid;           Process currently attached to
  86.         WORD whandler;      Handle of wait handler
  87.         UBYTE cancel;       TRUE if cancel pending
  88.         UBYTE strCount;     Used by string processing
  89.         UBYTE *pstr;        For processing string commands
  90.         WORD sstat;         String status word
  91.         WORD lstat;         Logon status word
  92.         WORD mstat;         Messaging status word
  93.         WORD *pMstat;       Pointer to messaging status word
  94.         WORD *pUstat;       Pointer to user's status word
  95.         WORD ipid;          Process started with exec_img
  96.         WORD vpid;          Process stored to use later
  97.         VOID *pStore;       Extra storage possibly allocated
  98.         UWORD storeLen;     Length of extra storage
  99.         }
  100.     }
  101.