GME
13
|
#include <Prompter.h>
Public Member Functions | |
PromptImpl () | |
virtual | ~PromptImpl () |
virtual bool | prompt (const char *realm, const char *pi_username, bool maySave)=0 |
virtual bool | askYesNo (const char *realm, const char *question, bool yesIsDefault)=0 |
virtual int | askTrust (const char *question, bool maySave)=0 |
virtual std::string | askQuestion (const char *realm, const char *question, bool showAnswer, bool maySave)=0 |
virtual std::string | password ()=0 |
virtual std::string | username ()=0 |
Static Public Member Functions | |
static void | scanfBlind (std::string &ret) |
Public Attributes | |
bool | m_maySave |
This software is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at http://subversion.tigris.org/license-1.html. If newer versions of this license are posted there, you may use a newer version instead, at your option.
This software consists of voluntary contributions made by many individuals. For exact contribution history, see the revision history and logs, available at http://subversion.tigris.org/. ==================================================================== Modified by Zoltan Molnar, Vanderbilt University, 2008 An interface to be implemented by subclasses. Callback methods of Prompter::CallbackHelpers will call these methods if needed.
Definition at line 38 of file Prompter.h.
PromptImpl::PromptImpl | ( | ) | [inline] |
Definition at line 41 of file Prompter.h.
virtual PromptImpl::~PromptImpl | ( | ) | [inline, virtual] |
Definition at line 42 of file Prompter.h.
virtual std::string PromptImpl::askQuestion | ( | const char * | realm, |
const char * | question, | ||
bool | showAnswer, | ||
bool | maySave | ||
) | [pure virtual] |
Implemented in GPromptImpl, and TextPromptImpl.
virtual int PromptImpl::askTrust | ( | const char * | question, |
bool | maySave | ||
) | [pure virtual] |
Implemented in GPromptImpl, and TextPromptImpl.
virtual bool PromptImpl::askYesNo | ( | const char * | realm, |
const char * | question, | ||
bool | yesIsDefault | ||
) | [pure virtual] |
Implemented in GPromptImpl, and TextPromptImpl.
virtual std::string PromptImpl::password | ( | ) | [pure virtual] |
Implemented in GPromptImpl, and TextPromptImpl.
virtual bool PromptImpl::prompt | ( | const char * | realm, |
const char * | pi_username, | ||
bool | maySave | ||
) | [pure virtual] |
Implemented in GPromptImpl, and TextPromptImpl.
static void PromptImpl::scanfBlind | ( | std::string & | ret | ) | [static] |
virtual std::string PromptImpl::username | ( | ) | [pure virtual] |
Implemented in GPromptImpl, and TextPromptImpl.
flag is the user allowed, that the last answer is stored in the configuration
Definition at line 63 of file Prompter.h.