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

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

#include <configcreditcardprocessor.h>

Public Member Functions

 ConfigCreditCardProcessor (QWidget *parent=0, Qt::WindowFlags flags=0)
 
virtual ~ConfigCreditCardProcessor ()
 
- Public Member Functions inherited from XWidget
 XWidget (QWidget *parent=0, Qt::WindowFlags flags=0)
 
 XWidget (QWidget *parent, const char *name, Qt::WindowFlags flags=0)
 
 ~XWidget ()
 
virtual Q_INVOKABLE ParameterList get () const
 

Public Slots

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

Protected Slots

virtual void languageChange ()=0
 
- Protected Slots inherited from XWidget
virtual enum SetResponse postSet ()
 

Additional Inherited Members

- Protected Member Functions inherited from XWidget
void closeEvent (QCloseEvent *event)
 
QScriptEngine * engine ()
 
void showEvent (QShowEvent *event)
 

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 ( QWidget parent = 0,
Qt::WindowFlags  flags = 0 
)
ConfigCreditCardProcessor::~ConfigCreditCardProcessor ( )
virtual

Member Function Documentation

virtual void ConfigCreditCardProcessor::languageChange ( )
protectedpure virtualslot
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.

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

Generated on Fri Oct 7 2016 14:23:28 xTuple ERP Programmer Reference, Version 4.2.0 doxygen 1.8.10