home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Utilities / ctxt-util-1.0 / ABAppInfo.h next >
Encoding:
Text File  |  1998-04-01  |  1.5 KB  |  67 lines

  1. /**********************************************************************
  2.   ABAppInfo.h
  3.  
  4.   Copyright (c) 1998, David C. Lambert.  All Rights Reserved.
  5. **********************************************************************/
  6. #import <appkit/appkit.h>
  7.  
  8. #define ARRBUF                (10)
  9. #define NOMENU                (100000)
  10. #define NOWHERE                (-1000.0)
  11.  
  12. @interface ABAppInfo : Object
  13. {
  14.     int            appUid;
  15.     int            appPid;
  16.     int            appCtxt;
  17.     int            appIconWin;
  18.     int            appMainMenu;
  19.     id            appMiniWins;
  20.     BOOL        isLaunched;
  21.     NXAtom        appFileName;
  22.     NXAtom        appShortName;
  23. }
  24.  
  25. + reset;
  26. + initialize;
  27. + getShortName:(char *)shortName from:(const char *)appFileName;
  28. + unhidePid:(int)appPid raise:(BOOL)raiseFlag activate:(BOOL)activateFlag hideOthers:(BOOL)hideFlag;
  29. + unhideCtxt:(int)appCtxt raise:(BOOL)raiseFlag activate:(BOOL)activateFlag hideOthers:(BOOL)hideFlag;
  30.  
  31. + vanishIconForPid:(int)pid;
  32. + vanishIconForCtxt:(int)ctxt;
  33. + unvanishIconForPid:(int)pid;
  34. + unvanishIconForCtxt:(int)ctxt;
  35.  
  36. + (int)getPidFor:(char *)aName;
  37. + (int)getUidForPid:(int)aPid;
  38. + (int)getAppMenuForPid:(int)aPid;
  39. + (int)getAppIconForPid:(int)aPid;
  40. + (int)getAppCtxtForPid:(int)aPid;
  41. + (int)getPidForAppCtxt:(int)aCtxt;
  42. + getAppMiniWinsForPid:(int)aPid;
  43.  
  44. + (BOOL)pidExists:(int)testPid;
  45.  
  46. - initForFile:(char *)theAppFileName;
  47. - free;
  48.  
  49. - update;
  50. - activateApp:(BOOL)activateFlag raise:(BOOL)raiseFlag hideOthers:(BOOL)hideFlag;
  51.  
  52. - vanishIcon;
  53. - unvanishIcon;
  54.  
  55. - (BOOL)isLaunched;
  56.  
  57. - (int)appPid;
  58. - (int)appUid;
  59. - (int)appCtxt;
  60. - (int)appIconWin;
  61. - (int)appMainMenu;
  62. - (NXAtom)appShortName;
  63. - (NXAtom)appFileName;
  64. - appMiniWins;
  65.  
  66. @end
  67.