Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtmail / dtmail / PasswordDialogManager.h
1 /*
2  *+SNOTICE
3  *
4  *      $XConsortium: PasswordDialogManager.h /main/4 1996/04/21 19:42:56 drk $
5  *
6  *      RESTRICTED CONFIDENTIAL INFORMATION:
7  *      
8  *      The information in this document is subject to special
9  *      restrictions in a confidential disclosure agreement between
10  *      HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
11  *      document outside HP, IBM, Sun, USL, SCO, or Univel without
12  *      Sun's specific written approval.  This document and all copies
13  *      and derivative works thereof must be returned or destroyed at
14  *      Sun's request.
15  *
16  *      Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
17  *
18  *+ENOTICE
19  */
20
21 ///////////////////////////////////////////////////////////
22 // PasswordDialogManager.h
23 //////////////////////////////////////////////////////////
24
25 #ifndef PASSWORDDIALOGMANAGER_H
26 #define PASSWORDDIALOGMANAGER_H
27 #include "PromptDialogManager.h"
28
29 class PasswordDialogManager : public PromptDialogManager {
30 private:
31
32   Widget _user;
33   Widget _password;
34   static void modifyVerifyCallback(Widget, XtPointer, XmTextVerifyCallbackStruct *);
35   char _pwd[100]; // Big enough for most reasonable passwords.
36 protected:
37     
38   Widget createDialog ( Widget );
39     
40 public:
41   
42   PasswordDialogManager ( char * );
43   void modifyVerify( Widget,XmTextVerifyCallbackStruct * );
44 #ifdef DEAD_WOOD
45   char *userName();
46   char *password();
47   void resetPassword();
48 #endif /* DEAD_WOOD */
49
50 };
51
52 extern PasswordDialogManager *thePasswordDialogManager;
53
54 #endif