C++ Web Framework  3.0
Public Member Functions | List of all members
QListObject Class Reference

The QListObject class is used to pass a list of object to a view page. NOTE: Always when you need to pass a list of object to a view page you will need to use this class, your class need to inherit from the QObject class and all the methods needs to be in the public slots session. More...

#include <qlistobject.h>

Inheritance diagram for QListObject:
Inheritance graph
[legend]

Public Member Functions

 QListObject (QObject *parent=0)
 This constructor can receive a parent. More...
 
 QListObject (QObject *parent, const std::initializer_list< QObject *> &objects)
 Contructs a QListObject with N elements.
 
 QListObject (const std::initializer_list< QObject *> &objects)
 Contructs a QListObject with N elements.
 
 ~QListObject ()
 Destructor.
 
QObject * operator[] (int index) const
 This is an operator overload and returns a QObject given an specific index. More...
 
int size () const
 This method returns the number of elements in this QListObject. More...
 
void add (QObject *object)
 This method add a new QObject to the list. More...
 
void add (const std::initializer_list< QObject *> &objects)
 This method add a N new QObjects to the list.
 
void remove (QObject *object)
 This method remove and object from the list. More...
 
bool getAutoDelete () const
 getAutoDelete More...
 
void setAutoDelete (bool value)
 setAutoDelete More...
 

Detailed Description

The QListObject class is used to pass a list of object to a view page. NOTE: Always when you need to pass a list of object to a view page you will need to use this class, your class need to inherit from the QObject class and all the methods needs to be in the public slots session.

Constructor & Destructor Documentation

◆ QListObject()

QListObject::QListObject ( QObject *  parent = 0)
inlineexplicit

This constructor can receive a parent.

Parameters
QObject*parent : Parent.

Member Function Documentation

◆ add()

void QListObject::add ( QObject *  object)
inline

This method add a new QObject to the list.

Parameters
QObject*object : Object.

◆ getAutoDelete()

bool QListObject::getAutoDelete ( ) const
inline

getAutoDelete

Returns

◆ operator[]()

QObject* QListObject::operator[] ( int  index) const
inline

This is an operator overload and returns a QObject given an specific index.

Parameters
index: This is an integer value.
Returns
QObject *

◆ remove()

void QListObject::remove ( QObject *  object)
inline

This method remove and object from the list.

Parameters
o

◆ setAutoDelete()

void QListObject::setAutoDelete ( bool  value)
inline

setAutoDelete

Parameters
value

◆ size()

int QListObject::size ( ) const
inline

This method returns the number of elements in this QListObject.

Returns
int

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