Slicer  5.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkPermissionPrompter.h
Go to the documentation of this file.
1 #ifndef __vtkPermissionPrompter_h
2 #define __vtkPermissionPrompter_h
3 
4 // MRML includes
5 #include "vtkMRML.h"
6 
7 // VTK includes
8 #include <vtkObject.h>
9 
10 class VTK_MRML_EXPORT vtkPermissionPrompter : public vtkObject
11 {
12  public:
13 
15  static vtkPermissionPrompter *New();
16  vtkTypeMacro(vtkPermissionPrompter, vtkObject);
17  void PrintSelf(ostream& os, vtkIndent indent) override;
18 
21  vtkGetStringMacro ( Username );
22  vtkSetStringMacro ( Username );
23 
26  vtkGetStringMacro ( Password );
27  vtkSetStringMacro ( Password );
28 
29  vtkGetStringMacro (HostName );
30  vtkSetStringMacro (HostName );
31 
35  vtkGetMacro ( Remember, int );
36  vtkSetMacro ( Remember, int );
37 
38  vtkGetStringMacro ( PromptMessage );
39  vtkSetStringMacro ( PromptMessage );
40  vtkGetStringMacro ( PromptTitle );
41  vtkSetStringMacro ( PromptTitle );
42 
45  //--- all derived classes should implement this method.
46  //--- method should return -1 for empty fields
47  //--- return 0 for a cancel
48  //--- and return 1 for everything looks ok.
49  virtual int Prompt(const char *message );
50 
51  private:
52  char *Username;
53  char *HostName;
54  char *Password;
55  int Remember;
56  char *PromptMessage;
57  char *PromptTitle;
58 
59  protected:
61  ~vtkPermissionPrompter() override;
63  void operator=(const vtkPermissionPrompter&);
64 
65 };
66 
67 #endif