home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / clients / xdm / Login.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-07-25  |  2.9 KB  |  96 lines

  1. /*
  2.  * xdm - display manager daemon
  3.  *
  4.  * $XConsortium: Login.h,v 1.8 89/07/25 17:58:57 keith Exp $
  5.  *
  6.  * Copyright 1988 Massachusetts Institute of Technology
  7.  *
  8.  * Permission to use, copy, modify, and distribute this software and its
  9.  * documentation for any purpose and without fee is hereby granted, provided
  10.  * that the above copyright notice appear in all copies and that both that
  11.  * copyright notice and this permission notice appear in supporting
  12.  * documentation, and that the name of M.I.T. not be used in advertising or
  13.  * publicity pertaining to distribution of the software without specific,
  14.  * written prior permission.  M.I.T. makes no representations about the
  15.  * suitability of this software for any purpose.  It is provided "as is"
  16.  * without express or implied warranty.
  17.  *
  18.  * Author:  Keith Packard, MIT X Consortium
  19.  */
  20.  
  21. /*
  22. * $XConsortium: Login.h,v 1.8 89/07/25 17:58:57 keith Exp $
  23. */
  24.  
  25. #ifndef _XtLogin_h
  26. #define _XtLogin_h
  27.  
  28. /***********************************************************************
  29.  *
  30.  * Login Widget
  31.  *
  32.  ***********************************************************************/
  33.  
  34. /* Parameters:
  35.  
  36.  Name             Class        RepType        Default Value
  37.  ----             -----        -------        -------------
  38.  background         Background        pixel        White
  39.  border             BorderColor    pixel        Black
  40.  borderWidth         BorderWidth    int        1
  41.  foreground         Foreground        Pixel        Black
  42.  height             Height        int        120
  43.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  44.  width             Width        int        120
  45.  x             Position        int        0
  46.  y             Position        int        0
  47.  
  48. */
  49.  
  50. # define XtNgreeting        "greeting"
  51. # define XtNunsecureGreeting    "unsecureGreeting"
  52. # define XtNnamePrompt        "namePrompt"
  53. # define XtNpasswdPrompt    "passwdPrompt"
  54. # define XtNfail        "fail"
  55. # define XtNnotifyDone        "notifyDone"
  56. # define XtNpromptColor        "promptColor"
  57. # define XtNgreetColor        "greetColor"
  58. # define XtNfailColor        "failColor"
  59. # define XtNpromptFont        "promptFont"
  60. # define XtNgreetFont        "greetFont"
  61. # define XtNfailFont        "failFont"
  62. # define XtNfailTimeout        "failTimeout"
  63. # define XtNsessionArgument    "sessionArgument"
  64. # define XtNsecureSession    "secureSession"
  65. # define XtNallowAccess        "allowAccess"
  66.  
  67. # define XtCGreeting        "Greeting"
  68. # define XtCNamePrompt        "NamePrompt"
  69. # define XtCPasswdPrompt    "PasswdPrompt"
  70. # define XtCFail        "Fail"
  71. # define XtCFailTimeout        "FailTimeout"
  72. # define XtCSessionArgument    "SessionArgument"
  73. # define XtCSecureSession    "SecureSession"
  74. # define XtCAllowAccess        "AllowAccess"
  75.  
  76. /* notifyDone interface definition */
  77.  
  78. #define NAME_LEN    32
  79.  
  80. typedef struct _LoginData { 
  81.     char    name[NAME_LEN], passwd[NAME_LEN];
  82. } LoginData;
  83.  
  84. # define NOTIFY_OK    0
  85. # define NOTIFY_ABORT    1
  86. # define NOTIFY_RESTART    2
  87. # define NOTIFY_ABORT_DISPLAY    3
  88.  
  89. typedef struct _LoginRec *LoginWidget;  /* completely defined in LoginPrivate.h */
  90. typedef struct _LoginClassRec *LoginWidgetClass;    /* completely defined in LoginPrivate.h */
  91.  
  92. extern WidgetClass loginWidgetClass;
  93.  
  94. #endif /* _XtLogin_h */
  95. /* DON'T ADD STUFF AFTER THIS #endif */
  96.