Public Member Functions | Private Member Functions | Private Attributes

PWGenDialog Class Reference

Password Generator Dialog. More...

#include <pwgendialog.h>

Inheritance diagram for PWGenDialog:
Inheritance graph
[legend]
Collaboration diagram for PWGenDialog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

const YAPET::UI::secstringgetPassword ()
bool isCanceled () const
 PWGenDialog () throw (YAPET::UI::UIException)
void refresh () throw (YAPET::UI::UIException)
void resize () throw (YAPET::UI::UIException)
void run () throw (YAPET::UI::UIException)
virtual ~PWGenDialog ()

Private Member Functions

int CheckBoxOptions2Charpools (uint16_t o) const
void createWindow () throw (YAPET::UI::UIException)
std::string getNameOfRNG () const
void initCheckBoxItems ()
const PWGenDialogoperator= (const PWGenDialog &)
void printTitles () throw (YAPET::UI::UIException)
 PWGenDialog (const PWGenDialog &bla)
int startX ()
int startY ()
int windowHeight ()
int windowWidth ()

Private Attributes

YAPET::UI::Buttoncancelbutton
bool canceled
int ckbox_options
YAPET::UI::CheckBoxGroupckbxgroup
std::vector< std::string > ckbxitems
YAPET::UI::Buttonokbutton
YAPET::UI::secstring password
YAPET::UI::InputWidgetpwdisplay
YAPET::PWGEN::PWGen pwgen
size_t pwlen
YAPET::UI::IntInWidgetpwleninput
YAPET::UI::Buttonregenbutton
WINDOW * window

Detailed Description

Display the Password generator dialog.

Definition at line 70 of file pwgendialog.h.


Constructor & Destructor Documentation

PWGenDialog::PWGenDialog ( const PWGenDialog bla  )  [inline, private]

Definition at line 87 of file pwgendialog.h.

PWGenDialog::PWGenDialog (  )  throw (YAPET::UI::UIException)

The default password length and character pools are taken from YAPET::GLOBALS::Globals

Definition at line 159 of file pwgendialog.cc.

References createWindow(), YAPET::PWGEN::RNG::getAvailableRNGs(), YAPET::GLOBALS::Globals::getPWGenRNG(), pwgen, and YAPET::PWGEN::PWGen::setNewRNG().

Here is the call graph for this function:

PWGenDialog::~PWGenDialog (  )  [virtual]

Member Function Documentation

int PWGenDialog::CheckBoxOptions2Charpools ( uint16_t  o  )  const [private]

Definition at line 70 of file pwgendialog.cc.

References YAPET::PWGEN::DIGITS, YAPET::PWGEN::LETTERS, YAPET::PWGEN::OTHER, YAPET::PWGEN::PUNCT, and YAPET::PWGEN::SPECIAL.

Referenced by run(), and ~PWGenDialog().

Here is the caller graph for this function:

void PWGenDialog::createWindow (  )  throw (YAPET::UI::UIException) [private]
std::string PWGenDialog::getNameOfRNG (  )  const [private]

Definition at line 49 of file pwgendialog.cc.

References YAPET::PWGEN::AUTO, YAPET::PWGEN::DEVRANDOM, YAPET::PWGEN::DEVURANDOM, YAPET::PWGEN::PWGen::getRNGUsed(), YAPET::PWGEN::LRAND48, YAPET::PWGEN::NONE, pwgen, and YAPET::PWGEN::RAND.

Referenced by printTitles().

Here is the call graph for this function:

Here is the caller graph for this function:

const YAPET::UI::secstring& PWGenDialog::getPassword (  )  [inline]

Definition at line 135 of file pwgendialog.h.

References password.

Referenced by PasswordRecord::run().

Here is the caller graph for this function:

void PWGenDialog::initCheckBoxItems (  )  [private]

Definition at line 83 of file pwgendialog.cc.

References ckbx_strings, and ckbxitems.

Referenced by createWindow().

Here is the caller graph for this function:

bool PWGenDialog::isCanceled (  )  const [inline]

Definition at line 139 of file pwgendialog.h.

References canceled.

Referenced by PasswordRecord::run().

Here is the caller graph for this function:

const PWGenDialog& PWGenDialog::operator= ( const PWGenDialog  )  [inline, private]

Definition at line 90 of file pwgendialog.h.

void PWGenDialog::printTitles (  )  throw (YAPET::UI::UIException) [private]

Definition at line 138 of file pwgendialog.cc.

References getNameOfRNG(), and window.

Referenced by refresh().

Here is the call graph for this function:

Here is the caller graph for this function:

void PWGenDialog::refresh (  )  throw (YAPET::UI::UIException) [virtual]
void PWGenDialog::resize (  )  throw (YAPET::UI::UIException) [virtual]

Implements YAPET::UI::BaseWindow.

Definition at line 403 of file pwgendialog.cc.

References cancelbutton, ckbxgroup, createWindow(), okbutton, pwdisplay, pwleninput, regenbutton, and window.

Here is the call graph for this function:

void PWGenDialog::run (  )  throw (YAPET::UI::UIException)
int PWGenDialog::startX (  )  [inline, private]

Definition at line 105 of file pwgendialog.h.

References YAPET::UI::BaseWindow::minX().

Referenced by createWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

int PWGenDialog::startY (  )  [inline, private]

Definition at line 109 of file pwgendialog.h.

References YAPET::UI::BaseWindow::maxY(), and windowHeight().

Referenced by createWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

int PWGenDialog::windowHeight (  )  [inline, private]

Definition at line 98 of file pwgendialog.h.

Referenced by createWindow(), and startY().

Here is the caller graph for this function:

int PWGenDialog::windowWidth (  )  [inline, private]

Definition at line 94 of file pwgendialog.h.

References YAPET::UI::BaseWindow::maxX().

Referenced by createWindow().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 78 of file pwgendialog.h.

Referenced by createWindow(), refresh(), resize(), run(), and ~PWGenDialog().

bool PWGenDialog::canceled [private]

Definition at line 83 of file pwgendialog.h.

Referenced by isCanceled(), and run().

Definition at line 82 of file pwgendialog.h.

Referenced by createWindow().

Definition at line 73 of file pwgendialog.h.

Referenced by createWindow(), refresh(), resize(), run(), and ~PWGenDialog().

std::vector<std::string> PWGenDialog::ckbxitems [private]

Definition at line 85 of file pwgendialog.h.

Referenced by createWindow(), and initCheckBoxItems().

Definition at line 77 of file pwgendialog.h.

Referenced by createWindow(), refresh(), resize(), run(), and ~PWGenDialog().

Definition at line 79 of file pwgendialog.h.

Referenced by getPassword(), and run().

Definition at line 74 of file pwgendialog.h.

Referenced by createWindow(), refresh(), resize(), run(), and ~PWGenDialog().

Definition at line 80 of file pwgendialog.h.

Referenced by createWindow(), getNameOfRNG(), PWGenDialog(), and run().

size_t PWGenDialog::pwlen [private]

Definition at line 81 of file pwgendialog.h.

Referenced by createWindow(), refresh(), and run().

Definition at line 75 of file pwgendialog.h.

Referenced by createWindow(), refresh(), resize(), run(), and ~PWGenDialog().

Definition at line 76 of file pwgendialog.h.

Referenced by createWindow(), refresh(), resize(), run(), and ~PWGenDialog().

WINDOW* PWGenDialog::window [private]

Definition at line 72 of file pwgendialog.h.

Referenced by createWindow(), printTitles(), refresh(), resize(), and ~PWGenDialog().


The documentation for this class was generated from the following files: