libqutim  0.3.1.0
qutim_sdk_0_3::AbstractDataForm Class Referenceabstract

#include <dataforms.h>

+ Inheritance diagram for qutim_sdk_0_3::AbstractDataForm:

Classes

struct  Button
 

Public Types

enum  ButtonRole {
  InvalidRole = -1, AcceptRole, RejectRole, DestructiveRole,
  ActionRole, HelpRole, YesRole, NoRole,
  ResetRole, ApplyRole, NRoles
}
 
typedef QList< ButtonButtons
 
enum  StandardButton {
  NoButton = 0x00000000, Ok = 0x00000400, Save = 0x00000800, SaveAll = 0x00001000,
  Open = 0x00002000, Yes = 0x00004000, YesToAll = 0x00008000, No = 0x00010000,
  NoToAll = 0x00020000, Abort = 0x00040000, Retry = 0x00080000, Ignore = 0x00100000,
  Close = 0x00200000, Cancel = 0x00400000, Discard = 0x00800000, Help = 0x01000000,
  Apply = 0x02000000, Reset = 0x04000000, RestoreDefaults = 0x08000000
}
 

Public Slots

void accept ()
 
void reject ()
 

Signals

void accepted ()
 
void changed ()
 
void clicked (int buttonIndex)
 
void clicked (qutim_sdk_0_3::AbstractDataForm::StandardButton standartButton)
 
void completeChanged (bool complete)
 
void helpRequested ()
 
void rejected ()
 

Public Member Functions

virtual void clearState ()=0
 
virtual bool isChanged () const =0
 
virtual bool isComplete () const =0
 
virtual DataItem item () const =0
 
virtual void setData (const QString &fieldName, const QVariant &data)=0
 

Static Public Member Functions

static AbstractDataFormget (const DataItem &item, StandardButtons standartButtons=NoButton, const Buttons &buttons=Buttons())
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
InvalidRole 
AcceptRole 
RejectRole 
DestructiveRole 
ActionRole 
HelpRole 
YesRole 
NoRole 
ResetRole 
ApplyRole 
NRoles 
Enumerator
NoButton 
Ok 
Save 
SaveAll 
Open 
Yes 
YesToAll 
No 
NoToAll 
Abort 
Retry 
Ignore 
Close 
Cancel 
Discard 
Help 
Apply 
Reset 
RestoreDefaults 

Member Function Documentation

void qutim_sdk_0_3::AbstractDataForm::accept ( )
slot
void qutim_sdk_0_3::AbstractDataForm::accepted ( )
signal
void qutim_sdk_0_3::AbstractDataForm::changed ( )
signal

The signal is emitted when the state of the data form has been changed.

See Also
isChanged()
virtual void qutim_sdk_0_3::AbstractDataForm::clearState ( )
pure virtual

Clears the data form state.

void qutim_sdk_0_3::AbstractDataForm::clicked ( int  buttonIndex)
signal
void qutim_sdk_0_3::AbstractDataForm::clicked ( qutim_sdk_0_3::AbstractDataForm::StandardButton  standartButton)
signal
void qutim_sdk_0_3::AbstractDataForm::completeChanged ( bool  complete)
signal

The signal is emmitted whenever the complete state of the data form changes.

Parameters
completethe new complete state of the data form.
See Also
isComplete()
static AbstractDataForm* qutim_sdk_0_3::AbstractDataForm::get ( const DataItem item,
StandardButtons  standartButtons = NoButton,
const Buttons buttons = Buttons() 
)
static
void qutim_sdk_0_3::AbstractDataForm::helpRequested ( )
signal
virtual bool qutim_sdk_0_3::AbstractDataForm::isChanged ( ) const
pure virtual

Returns true if the state of at least one field was changed.

Otherwise, returns false.

See Also
changed()
virtual bool qutim_sdk_0_3::AbstractDataForm::isComplete ( ) const
pure virtual

Returns true if all mandatory fields are filled and every field with a validator is valid (i.e., current state of the validator is Acceptable).

Otherwise, returns false.

See Also
isComplete()
virtual DataItem qutim_sdk_0_3::AbstractDataForm::item ( ) const
pure virtual
void qutim_sdk_0_3::AbstractDataForm::reject ( )
slot
void qutim_sdk_0_3::AbstractDataForm::rejected ( )
signal
virtual void qutim_sdk_0_3::AbstractDataForm::setData ( const QString &  fieldName,
const QVariant &  data 
)
pure virtual

Sets the data of the field with name to be the data.

Note that the type of the data should be exactly as it was when the data form was being created.

virtual void qutim_sdk_0_3::AbstractDataForm::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

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

Generated by Doxygen