home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / taman002.zip / TASKMANA.ZIP / src / kSFNContainer.h < prev    next >
C/C++ Source or Header  |  2000-04-29  |  2KB  |  57 lines

  1. /* $Id: kSFNContainer.h,v 1.1 2000/04/29 19:06:35 stknut Exp $
  2.  *
  3.  * kSFNContainer (kTaskMgr) - generic SystemFileNumber (SFN) container.
  4.  *
  5.  * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
  6.  *
  7.  */
  8. #ifndef _kSFNContainer_h_
  9. #define _kSFNContainer_h_
  10.  
  11.  
  12.  
  13.  
  14. /**
  15.  * Generic object container.
  16.  * @author      knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
  17.  */
  18. class kSFNContainer : public kDetailCnr
  19. {
  20. private:
  21.     /** @cat private data */
  22.     USHORT          usPid;              /* Process identifier of the process we're displaying SFNs for. */
  23.                                         /* Special value 0xFFFF is used to show SFN for all processes.  */
  24.     kSFNRecord *    pCurRecord;         /* Pointer to the current record actual for menu action. */
  25.     kMenuBase *     pMenuCnrAll;        /* Entire container menu. */
  26.     USHORT          usSortId;           /* MenuId of the currently selecting sorting option. */
  27.  
  28.     /** @cat private methods */
  29.     BOOL    insertSFNsPid();
  30.     BOOL    insertSFNsAll();
  31.  
  32.     /** @cat private events */
  33.     VOID    menuEnd(USHORT usMenuId, HWND hwndMnu); //WM_MENUEND
  34.     VOID    command(USHORT usCmd, USHORT usSource, BOOL fPointer); //WM_COMMAND
  35.  
  36.     SHORT   sortCallBack(kCnrMiniRecord *pRecord1, kCnrMiniRecord *pRecord2);
  37.  
  38. public:
  39.     /**
  40.      * usPid = 0xFFFF: View all SFNs.
  41.      * usPid != 0:     View only SFNs for the given process.
  42.      */
  43.     kSFNContainer(HWND hwndDlg, ULONG ulCnrId, USHORT usPid = 0xFFFF) throw (kError);
  44.     ~kSFNContainer();
  45.  
  46.     /** @cat events which sorrily have to be invoked from the outside... */
  47.     VOID    cnrContextMenu(USHORT usId, PRECORDCORE pRecord);
  48.     VOID    cnrEnter(USHORT usId, HWND hwndCnr, PRECORDCORE pRecord, ULONG fKey);
  49.  
  50.     VOID    update();
  51. };
  52.  
  53.  
  54. #endif
  55.  
  56.  
  57.