home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Networking / SambaManager / Services.h < prev    next >
Encoding:
Text File  |  1998-03-28  |  7.1 KB  |  335 lines

  1. /*
  2.     SambaManger. A graphical frontend to configure the NetInfo enhanced samba.
  3.     Copyright (C) 1998  Robert Frank
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.         
  19.         Robert Frank, frank@ifi.unibas.ch
  20. */
  21.  
  22. #import "Service.h"
  23. #import <appkit/appkit.h>
  24. #import <netinfo/ni.h>
  25.  
  26. @interface Services:Service
  27. {        
  28.         id    buttonPages;
  29.         id    popupPages;
  30.         id    matrixPages;
  31.  
  32.         id    titleKind;
  33.         
  34.         id    boxChoices;
  35.         // Globals
  36.         id    boxGAccPwSecNM;
  37.         id    boxGLockLog;
  38.         id    boxGBinder;
  39.         id    boxGStartup;
  40.         id    boxGTunig;
  41.  
  42.     // Services
  43.         id    boxSAccess;
  44.         id    boxSVisMangle;
  45.         id    boxSPermLock;
  46.         id    boxSPwSecLogExecStart;
  47.  
  48.         id    boxes[9];
  49.         
  50.         // Globals
  51.         // access password security
  52.         id    radioEncryptPasswd;
  53.         id    radioNullPasswd;
  54.         id    radioUnixRealName;
  55.         id    textPasswdLevel;
  56.         id    sliderPasswdLevel;
  57.         id    popupSecurity;
  58.         id    textHostsEquiv;
  59.         id    textPasswdChat;
  60.         id    textPasswdProgram;
  61.         id    textRootDirectory;
  62.         id    textSMBPasswdFile;
  63.         id    formSetPassSec;
  64.         id    browserPasswdServer;
  65.         id    textPasswdServer;
  66.         id    buttonAddPasswdServer;
  67.         id    buttonRemPasswdServer;
  68.             
  69.         // name mangling
  70.         id    radioCaseSensitive;
  71.         id    radioStripDot;
  72.         id    textMangleStack;
  73.         id    sliderMangleStack;
  74.         id    popupCharSet;
  75.         id    popupCodePage;
  76.         
  77.         // Logon
  78.         id    radioDomainLogons;
  79.         id    textLogonPath;
  80.         id    textLogonScript;
  81.         id    textMessageCommand;
  82.         id    textSMBRun;
  83.         id    textUserNameMap;
  84.         id    formGSetLogon;
  85.         // locking and logging
  86.         id    textLockDir;
  87.         id    buttonSetLockDir;
  88.         id    radioStatus;
  89.         id    radioSyslogOnly;
  90.         id    textLogFile;
  91.         id    buttonSetLogFile;
  92.         id    textLogSize;
  93.         id    sliderLogSize;
  94.         id    textLogLevel;
  95.         id    sliderLogLevel;
  96.  
  97.         // name binder
  98.         id    radioDNSProxy;
  99.         id    radioLocalMaster;
  100.         id    radioTimeServer;
  101.         id    radioWINSProxy;
  102.         id    browserRemAnnounce;
  103.         id    formRemAnnounce;
  104.         id    buttonAddRemAnnounce;
  105.         id    buttonRemRemAnnounce;
  106.         id    remAnnounce;
  107.         id    browserNBAliases;
  108.         id    textNBAliases;
  109.         id    buttonAddNBAliases;
  110.         id    buttonRemNBAliases;
  111.  
  112.         // Startup
  113.         id    radioDomainMaster;
  114.         id    radioLoadPrinters;
  115.         id    radioPrefMaster;
  116.         id    radioWINSSupport;
  117.         id    textOSLevel;
  118.         id    sliderOSLevel;
  119.         id    popupAnnounceAs;
  120.         id    popupPrinting;
  121.         id    popupProtocol;
  122.         id    textAnnounceVersion;
  123.         id    textConfigFile;
  124.         id    textDefaultService;
  125.         id    textNetBIOSName;
  126.         id    textPrintcapName;
  127.         id    textServerString;
  128.         id    textSocketAddress;
  129.         id    textWINSServer;
  130.         id    textWorkGroup;
  131.         id    formSetStartup;
  132.         id    interfaces;
  133.         id    browserInterfaces;
  134.         id    formInterfaces;
  135.         id    buttonAddInterfaces;
  136.         id    buttonRemInterfaces;
  137.         id    browserAutoServices;
  138.         id    buttonAddAutoServices;
  139.         id    buttonRemAutoServices;
  140.  
  141.         // Tuning
  142.         id    radioGetwdCache;
  143.         id    radioReadPrediction;
  144.         id    radioReadRaw;
  145.         id    radioSyncAlways;
  146.         id    radioWriteRaw;
  147.         id    textDeadTime;
  148.         id    sliderDeadTime;
  149.         id    textKeepAlive;
  150.         id    sliderKeepAlive;
  151.         id    textlpqCache;
  152.         id    sliderlpqCache;
  153.         id    textReadSize;
  154.         id    sliderReadSize;
  155.         id    formSOChecks;
  156.         id    formSOBufSizes;
  157.         id    formSOLowWatMark;
  158.         
  159.  
  160.     // Services
  161.         // access
  162.         id    radioBrowseable;
  163.         id    radioGuestOnly;
  164.         id    radioOnlyUser;
  165.         id    radioPrintable;
  166.         id    radioPublic;
  167.         id    radioReadOnly;
  168.         id    browserAllowHosts;
  169.         id    buttonAddAllowHosts;
  170.         id    buttonRemAllowHosts;
  171.         id    browserDenyHosts;
  172.         id    buttonAddDenyHosts;
  173.         id    buttonRemDenyHosts;
  174.         id    browserReadList;
  175.         id    buttonAddReadList;
  176.         id    buttonRemReadList;
  177.         id    browserWriteList;
  178.         id    buttonAddWriteList;
  179.         id    buttonRemWriteList;
  180.         id    browserValidUsers;
  181.         id    buttonAddValidUsers;
  182.         id    buttonRemValidUsers;
  183.         id    browserInvalidUsers;
  184.         id    buttonAddInvalidUsers;
  185.         id    buttonRemInvalidUsers;
  186.         id    textMaxCons;
  187.         id    sliderMaxCons;
  188.         id    textVolume;
  189.  
  190.         //    file visibility
  191.         id    radioHideDots;
  192.         id    radioSetDir;
  193.         id    radioFollowSymLinks;
  194.         id    radioWideLinks;
  195.         id    browserDescend;
  196.         id    buttonAddDescend;
  197.         id    buttonRemDescend;
  198.         id    browserHideFiles;
  199.         id    textHideFiles;
  200.         id    buttonAddHideFiles;
  201.         id    buttonRemHideFiles;
  202.         id    browserVetoFiles;
  203.         id    textVetoFiles;
  204.         id    buttonAddVetoFiles;
  205.         id    buttonRemVetoFiles;
  206.         // name mangling
  207.         id    radioMangleCase;
  208.         id    radioMangledName;
  209.         id    radioPreserveCase;
  210.         id    radioShortPresCase;
  211.         id    radioDefaultCase;
  212.         id    browserValidChars;
  213.         id    textValidChars;
  214.         id    buttonAddValidChars;
  215.         id    buttonRemValidChars;
  216.         id    browserMangledMap;
  217.         id    formMangleMap;
  218.         id    mangleMap;
  219.         id    buttonAddMangledMap;
  220.         id    buttonRemMangledMap;
  221.         id    textMangleChar;
  222.  
  223.         // file permissions
  224.         id    radioAlternate;
  225.         id    radioDelReadOnly;
  226.         id    radioDOSFileTimes;
  227.         id    radioMapArchive;
  228.         id    radioMapHidden;
  229.         id    radioMapSystem;
  230.         id    textForceUser;
  231.         id    buttonSetForceUser;
  232.         id    textForceGroup;
  233.         id    buttonSetForceGroup;
  234.         id    radioCreateMask;
  235.         id    check1CreateMask;
  236.         id    check2CreateMask;
  237.         id    check3CreateMask;
  238.         id    objCreateMask;
  239.         id    radioDirMask;
  240.         id    check1DirMask;
  241.         id    check2DirMask;
  242.         id    check3DirMask;
  243.         id    objDirMask;
  244.         id    radioForceCreateMask;
  245.         id    check1ForceCreateMask;
  246.         id    check2ForceCreateMask;
  247.         id    check3ForceCreateMask;
  248.         id    objForceCreateMask;
  249.         id    radioForceDirMask;
  250.         id    check1ForceDirMask;
  251.         id    check2ForceDirMask;
  252.         id    check3ForceDirMask;
  253.         id    objForceDirMask;
  254.         // locking and logging
  255.         id    radioFakeOpLocks;
  256.         id    radioLocking;
  257.         id    radioShareModes;
  258.         id    radioStrictLocking;
  259.  
  260.         // passwords and security
  261.         id    radioRevalidate;
  262.         id    textGuestAccount;
  263.         id    buttonSetGuestAccount;
  264.         id    browserAdminUsers;
  265.         id    buttonAddAdminUsers;
  266.         id    buttonRemAdminUsers;
  267.         id    browserUserNames;
  268.         id    buttonAddUserNames;
  269.         id    buttonRemUserNames;
  270.         // Logon and exectution
  271.         id    textMagicOutput;
  272.         id    textMagicScript;
  273.         id    textPath;
  274.         id    textPreExecution;
  275.         id    textPostExecution;
  276.         id    textRootPreExecution;
  277.         id    textRootPostExecution;
  278.         id    formSetLogon;
  279.     // startup
  280.         id    textInclude;
  281.         id    buttonSetInclude;
  282.  
  283.  
  284.         // The printers section:
  285.         id    boxPrinters;
  286.         id    checkPAvailable;
  287.         id    textMinPrntSpace;
  288.         id    sliderMinPrntSpace;
  289.         id    radioPBrowseable;
  290.         id    radioPostscript;
  291.         id    radioPPublic;
  292.         id    radioPGuestOnly;
  293.         id    radioPWriteable;
  294.         id    textUnixPrint;
  295.         id    textUnixDelete;
  296.         id    textUnixShowQueue;
  297.         id    textUnixPause;
  298.         id    textUnixResume;
  299.         id    textPrinterDriver;
  300.         id    textSpoolDirectory;
  301.         id    buttonSetSpoolDir;
  302.         
  303.         
  304. //    id    window;
  305.  
  306.         int                        serviceType; /* 0 = directory
  307.                                       1 = globals
  308.                                                                     2 = homes
  309.                                                                     3 = printers */
  310.  
  311.         id                        lastPageID;
  312.         int                        lastPage;
  313.         BOOL                    locked;
  314.  
  315.         // Panels    (these are external so we only allocat them once).
  316.         id    panels;
  317.         
  318.         // properties
  319.         id    propLogFile;
  320.         id    propMagicOutput;
  321.         id    propAllowHosts;
  322.         id    propDenyHosts;
  323.         id    propReadList;
  324.         id    propWriteList;
  325.         id    propValidUsers;
  326.         id    propInvalidUsers;
  327.         id    propUserNames;
  328.         id    propHideFiles;
  329.         id    propHideFilesSeparator;
  330.         id    propVetoFiles;
  331.         id    propVetoFilesSeparator;
  332.         id    propAnnounceVersion;
  333. }
  334. @end
  335.