#include <ServiceList.h>
Public Member Functions | |
ServiceList () | |
virtual | ~ServiceList () |
void | addService (Service service) |
void | setServices (QList< Service > services) |
QList< Service > | services () const |
Private Attributes | |
QList< Service > | _services |
Friends | |
QDataStream & | operator<< (QDataStream &out, const ServiceList &myObj) |
QDataStream & | operator>> (QDataStream &in, ServiceList &myObj) |
Definition at line 19 of file ServiceList.h.
ServiceList::ServiceList | ( | ) |
Default constructor.
Definition at line 15 of file ServiceList.cpp.
ServiceList::~ServiceList | ( | ) | [virtual] |
Destructor
Definition at line 26 of file ServiceList.cpp.
void ServiceList::addService | ( | Service | service | ) |
Returns the list of services
Constructor to create a new Servicelist with initial settings
Definition at line 20 of file ServiceList.cpp.
References _services.
Referenced by ServiceSettings::getServices().
QList<Service> ServiceList::services | ( | ) | const [inline] |
Returns the list of services
Definition at line 32 of file ServiceList.h.
References _services.
Referenced by ServicePage::load(), operator<<(), and ServiceSettings::setServices().
void ServiceList::setServices | ( | QList< Service > | services | ) |
Sets the lists of services
Definition at line 31 of file ServiceList.cpp.
References _services.
Referenced by operator>>(), and ServicePage::save().
QDataStream& operator<< | ( | QDataStream & | out, | |
const ServiceList & | myObj | |||
) | [friend] |
Writes ServiceList class data from myObj to the QDataStream out.
Definition at line 38 of file ServiceList.cpp.
QDataStream& operator>> | ( | QDataStream & | in, | |
ServiceList & | myObj | |||
) | [friend] |
Reads ServiceList class data in from the QDataStream in and populates * the myObj object accordingly.
Definition at line 46 of file ServiceList.cpp.
QList<Service> ServiceList::_services [private] |
The list of Services
Definition at line 45 of file ServiceList.h.
Referenced by addService(), services(), and setServices().