home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Networking / SambaManager / Panels.h < prev    next >
Encoding:
Text File  |  1998-03-25  |  1.9 KB  |  67 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 <appkit/appkit.h>
  23. #import <netinfo/ni.h>
  24.  
  25. @interface Panels:Object
  26. {
  27.         // Select a user or group from netinfo
  28.         id    panelUserGroup;
  29.  
  30.         // Select a netgroup or host from netinfo
  31.         id    panelNetgroupHost;
  32.  
  33.         // The select a new service type
  34.         id    panelServices;
  35.         id    buttonCancel;
  36.         id    buttonCreate;
  37.     id    buttonChoice;
  38.  
  39.         // The broswer panel
  40.         id    panelBroswer;
  41.         id    browser;
  42.         ni_namelist    *values;
  43. }
  44. + new;
  45.  
  46. // Select a user or group from netinfo:
  47. // This is also used for the netgroup/host selection:
  48. //       group == netgroup and user == host
  49. #define PS_NONE        0
  50. #define PS_GROUP    1
  51. #define PS_USER        2
  52.  
  53. - (int)userOrGroup;
  54. - (int)netgroupOrHost;
  55. - userOrGroupCancel:sender;    // netgroupOrHostCancel
  56. - userOrGroupGroup:sender;    // netgroupOrHostNetgroup
  57. - userOrGroupUser:sender;        // netgroupOrHostUser
  58.  
  59. // Actions from the select service type panel:
  60. - (int)selectService;
  61. - serviceCancel:sender;
  62. - serviceCreate:sender;    // broswer select
  63.  
  64. // Actions from the browser panel:
  65. - (const char *)showNetgroups:(ni_namelist *)netgroupList;
  66. @end
  67.