home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / utilities / time / dclock16.lha / DClock16 / src / Main.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-05  |  1.4 KB  |  38 lines

  1. struct AppPrefs       // Preferences structure for DClock
  2. {
  3.     int foreground;    // Foreground color
  4.     int background;    // Background color
  5.     int windowX;       // Window position x
  6.     int windowY;       // Window position y
  7.     BOOL seconds;      // Display seconds: true/false
  8.     BOOL alarm;        // Alarm on/off
  9.     BOOL timer;        // Timer on/off
  10.     BOOL dragbar;      // display window title and dragbar
  11.     int alarmval;      // hours * 10000 + mins * 100 + secs
  12.     int timerval;      // seconds
  13.     char alrmcmd[128]; // Command to be executed when alarm went off
  14.     char timrcmd[128]; // Command to be executed when timer went off
  15.     BOOL twentyfour;   // Display 13:00 instead of 1:00 pm
  16.     BOOL date;         // Display date
  17.     BOOL activate;     // activate window
  18.     BOOL ddmmyy;       // date format
  19. };
  20.  
  21. #define ALARM 1
  22. #define TIMER 2
  23.  
  24. extern ULONG alarmsig;   // Signal main task: alarm clock
  25. extern ULONG timersig;   // Signal main task: timer
  26. extern ULONG cleanupsig; // Signal main task: Child process can be removed safely
  27. extern ULONG exitsig;    // Signal child task: Clean up and Wait(0)
  28. extern ULONG exit_info;  // Signal info task: Clean up and Wait(0)
  29.  
  30. extern struct Task *childtask;
  31. extern struct Task *parenttask;
  32. extern struct Task *infotask;
  33. extern char *PubScreenName;
  34. extern struct TagItem ezRequestTags[];
  35.  
  36. // Obtain this semaphore before you draw to the window's rastport:
  37. extern struct SignalSemaphore draw_semaphore;
  38.