List of all members | Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Static Protected Attributes
ConfigCreditCardProcessor Class Referenceabstract

An abstract class for showing and saving configuration information for a specific credit card processor. More...

#include <configcreditcardprocessor.h>

Inheritance diagram for ConfigCreditCardProcessor:
XWidget QWidget ScriptablePrivate ScriptableWidget ConfigAuthorizeDotNetProcessor ConfigCyberSourceProcessor

Public Slots

virtual enum SetResponse set (const ParameterList &)
 
virtual bool sSave ()=0
 Save the details required for a specific credit card processing company. More...
 

Public Member Functions

 ConfigCreditCardProcessor (QWidget *parent=0, Qt::WindowFlags flags=0)
 
virtual ~ConfigCreditCardProcessor ()
 
virtual Q_INVOKABLE ParameterList get () const
 

Protected Slots

virtual void languageChange ()=0
 
virtual enum SetResponse postSet ()
 

Protected Member Functions

virtual void callCloseEvent (QEvent *)
 
virtual enum SetResponse callSet (const ParameterList &)
 
virtual void callShowEvent (QEvent *)
 
void closeEvent (QCloseEvent *event)
 
virtual QScriptEngine * engine ()
 
virtual void loadScript (const QString &oName)
 
virtual void loadScript (const QStringList &list)
 
virtual void loadScriptEngine ()
 
virtual Q_INVOKABLE bool setScriptableParams (ParameterList &)
 
void showEvent (QShowEvent *event)
 

Protected Attributes

QScriptEngineDebugger * _debugger
 
QScriptEngine * _engine
 
ParameterList _lastSetParams
 
QAction_rememberPos
 
QAction_rememberSize
 
bool _scriptLoaded
 
QWidget_self
 
QAction_showMe
 
bool _shown
 

Static Protected Attributes

static ScriptCache_cache
 
static GuiClientInterface_guiClientInterface
 

Detailed Description

An abstract class for showing and saving configuration information for a specific credit card processor.

Each credit card processing company has its own API and requirements for communicating with it over the Internet. The commonalities are encapsulated in the configureCC class. The ConfigCreditCardProcessor class abstracts a simple interface that configureCC can use to save the details specific to individual processing companies.

Subclasses of ConfigCreditCardProcessor are expected to load the specific details in their constructors, present them in a UI for the user to view and change, and save these changes with the sSave slot.

See also
CreditCardProcessor
configureCC

Constructor & Destructor Documentation

◆ ConfigCreditCardProcessor()

ConfigCreditCardProcessor::ConfigCreditCardProcessor ( QWidget parent = 0,
Qt::WindowFlags  flags = 0 
)

◆ ~ConfigCreditCardProcessor()

ConfigCreditCardProcessor::~ConfigCreditCardProcessor ( )
virtual

Member Function Documentation

◆ callCloseEvent()

void ScriptablePrivate::callCloseEvent ( QEvent *  event)
virtualinherited

◆ callSet()

enum SetResponse ScriptablePrivate::callSet ( const ParameterList &  params)
virtualinherited

◆ callShowEvent()

void ScriptablePrivate::callShowEvent ( QEvent *  event)
virtualinherited

◆ closeEvent()

void XWidget::closeEvent ( QCloseEvent *  event)
protectedinherited

◆ engine()

QScriptEngine * ScriptablePrivate::engine ( )
virtualinherited

Reimplemented from ScriptableWidget.

◆ get()

ParameterList XWidget::get ( ) const
virtualinherited

Implements ScriptablePrivate.

◆ languageChange

virtual void ConfigCreditCardProcessor::languageChange ( )
protectedpure virtualslot

◆ loadScript() [1/2]

void ScriptableWidget::loadScript ( const QString &  oName)
virtualinherited

◆ loadScript() [2/2]

void ScriptableWidget::loadScript ( const QStringList &  list)
virtualinherited

◆ loadScriptEngine()

void ScriptableWidget::loadScriptEngine ( )
virtualinherited

◆ postSet

enum SetResponse XWidget::postSet ( )
protectedvirtualslotinherited

◆ set

enum SetResponse XWidget::set ( const ParameterList &  pParams)
virtualslotinherited

◆ setScriptableParams()

bool ScriptableWidget::setScriptableParams ( ParameterList &  params)
virtualinherited

◆ showEvent()

void XWidget::showEvent ( QShowEvent *  event)
protectedinherited

◆ sSave

virtual bool ConfigCreditCardProcessor::sSave ( )
pure virtualslot

Save the details required for a specific credit card processing company.

An abstract method. Child classes are expected to save the details specific to their own credit card processing companies with the sSave slot.

Returns
true if successful; false if there was an error, such as a missing required field.

Member Data Documentation

◆ _cache

ScriptCache * ScriptableWidget::_cache
staticprotectedinherited

◆ _debugger

QScriptEngineDebugger* ScriptableWidget::_debugger
protectedinherited

◆ _engine

QScriptEngine* ScriptableWidget::_engine
protectedinherited

◆ _guiClientInterface

GuiClientInterface * ScriptableWidget::_guiClientInterface
staticinherited

◆ _lastSetParams

ParameterList ScriptablePrivate::_lastSetParams
inherited

◆ _rememberPos

QAction* ScriptablePrivate::_rememberPos
inherited

◆ _rememberSize

QAction* ScriptablePrivate::_rememberSize
inherited

◆ _scriptLoaded

bool ScriptableWidget::_scriptLoaded
protectedinherited

◆ _self

QWidget* ScriptableWidget::_self
protectedinherited

◆ _showMe

QAction* ScriptablePrivate::_showMe
inherited

◆ _shown

bool ScriptablePrivate::_shown
inherited

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 5.1.0 doxygen 1.8.17