home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / ViewKit_dev.idb / usr / include / Vk / VkRunOnce2.h.z / VkRunOnce2.h
Encoding:
C/C++ Source or Header  |  1996-09-20  |  1.1 KB  |  57 lines

  1. #ifndef VkRunOnce2_H
  2. #define VkRunOnce2_H
  3.  
  4. #include <Vk/VkCallbackObject.h>
  5. #include <Xm/AtomMgr.h>
  6.  
  7. class VkNameList;
  8.  
  9. class VkRunOnce2 : public VkCallbackObject {
  10.  
  11.   public:
  12.  
  13.     static const char*  const invokedCallback;
  14.  
  15.     VkRunOnce2(Boolean autoRaise = FALSE);
  16.   
  17.     VkRunOnce2(VkNameList*,
  18.           Boolean perhost = FALSE,
  19.           const char *name = NULL,
  20.           Boolean autoRaise = TRUE);
  21.  
  22.     VkRunOnce2(char **args, int numArgs,
  23.           Boolean perhost = FALSE,
  24.           const char *name = NULL,
  25.           Boolean autoRaise = TRUE);    
  26.   
  27.     virtual ~VkRunOnce2();
  28.  
  29.     int numArgs();
  30.     char *arg(int);
  31.  
  32.   void notifyOthers(VkNameList*,
  33.             Boolean perhost = FALSE,
  34.             const char *name = NULL);
  35.  
  36.   void notifyOthers(char **args, int numArgs,
  37.             Boolean perhost = FALSE,
  38.             const char *name = NULL);    
  39.  
  40.   void takeCharge();
  41.  
  42.   protected:
  43.  
  44.      Atom        _property;
  45.      VkNameList *_args;
  46.      void handleClientMessage();
  47.  
  48.    private:
  49.  
  50.      Boolean _autoRaise;
  51.      static void handleClientMessageCallback(Widget, XtPointer, XEvent *, Boolean *);
  52.      void show();
  53. };
  54.  
  55.  
  56. #endif
  57.