home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / internet-tools / connect-line / cl / devkit / c / include / system.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  1.9 KB  |  121 lines

  1. //
  2. // ConnectLine: Allgemeine Systemprefs und -daten
  3. //
  4. // $RCSfile: System.h $
  5. // $Revision: 1.1 $
  6. // $Date: 1994/02/19 17:05:14 $
  7. //
  8. // $Author: balzer $
  9. // $Locker: balzer $
  10. // $State: Exp $
  11. //
  12. // $Log: System.h $
  13. // Revision 1.1  1994/02/19  17:05:14  balzer
  14. // Initial revision
  15. //
  16. //
  17.  
  18. #ifndef _CL_System_H
  19. #define _CL_System_H
  20.  
  21. #include <cl/types.h>
  22. #include <cl/cl_prefs.h>
  23. #include <cl/clutil.h>
  24. #include <time.h>
  25.  
  26.  
  27. //
  28. // Kerndaten
  29. //
  30.  
  31. typedef struct CLSystem CLSystem;
  32.  
  33. struct CLSystem
  34. {
  35.     char    SystemName[64];
  36.     char    SystemPasswd[64];
  37.     
  38.     // Flags
  39.  
  40.     UBYTE    NoSysopChat;            // SysOp will nicht Chatten
  41.  
  42.     // Daten
  43.  
  44.     char    OfflineEditor[256];        // Texteditor für Offline-Logins
  45.  
  46.     char    NewRegistrations[256];    // EMP:
  47.  
  48.     char    ExportPathBin[256];
  49.     char    ExportPathText[256];
  50.  
  51.     char    SystemLocation[32];
  52.     char    SystemOwner[64];
  53.     char    SystemSnailmail[128];
  54.     char    SystemVoicephone[64];
  55.     char    SystemOrganization[256];
  56.  
  57.     time_t    LoginBlockTime;            // Blockzeit nach falschem Passwd
  58. };
  59.  
  60.  
  61. //
  62. // Zeitzonen
  63. //
  64.  
  65. typedef struct TimeZone TimeZone;
  66.  
  67. struct TimeZone
  68. {
  69.     // Bezeichnung
  70.     char    name[8];
  71.     
  72.     // Zeitverschiebung ggü. GMT in Minuten
  73.     long    gmt_offset;
  74.     
  75.     // Beginn
  76.     ulong    month;
  77.     ulong    day;
  78.     ulong    hour;
  79. };
  80.  
  81. typedef struct CLTimeZones CLTimeZones;
  82.  
  83. struct CLTimeZones
  84. {
  85.     TimeZone    summer;
  86.     TimeZone    winter;
  87. };
  88.  
  89.  
  90. //
  91. // Tags
  92. //
  93.  
  94. #define PREFSID_SYSTEM MAKE_ID('M','P','S','Y')
  95.  
  96. #define PTSYS_PRIMARY        (0 + TAGT_STANDARD)        // Kerndaten
  97. #define PTSYS_DOMAINLIST    (1 + TAGT_NOL)            // Liste der Domains der Box
  98. #define PTSYS_TIMEZONES        (2 + TAGT_STANDARD)        // Zeitzonen
  99.  
  100.  
  101. //
  102. // PrefsData-Struktur
  103. //
  104.  
  105. typedef struct PDSystem PDSystem;
  106.  
  107. struct PDSystem
  108. {
  109.     CLSystem        da_primary, st_primary;
  110.     NOL                da_domainlist, st_domainlist;
  111.     CLTimeZones        da_timezones, st_timezones;
  112. };
  113.  
  114.  
  115. bool CLP_ReadSystemPrefs( PDSystem *prefs );
  116. bool CLP_WriteSystemPrefs( PDSystem *prefs );
  117. bool CLP_MergeSystemPrefs( PDSystem *prefs, ulong subtag );
  118.  
  119.  
  120. #endif
  121.