Vidalia  0.2.21
Public Member Functions | Private Attributes | Friends | List of all members
ServiceList Class Reference

#include <ServiceList.h>

Public Member Functions

 ServiceList ()
 
virtual ~ServiceList ()
 
void addService (Service service)
 
void setServices (QList< Service > services)
 
QList< Serviceservices () const
 

Private Attributes

QList< Service_services
 

Friends

QDataStream & operator<< (QDataStream &out, const ServiceList &myObj)
 
QDataStream & operator>> (QDataStream &in, ServiceList &myObj)
 

Detailed Description

Definition at line 19 of file ServiceList.h.

Constructor & Destructor Documentation

ServiceList::ServiceList ( )

Default constructor.

Definition at line 15 of file ServiceList.cpp.

ServiceList::~ServiceList ( )
virtual

Destructor

Definition at line 26 of file ServiceList.cpp.

Member Function Documentation

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<<(), setServices(), and ServiceSettings::setServices().

void ServiceList::setServices ( QList< Service services)

Sets the lists of services

Definition at line 31 of file ServiceList.cpp.

References _services, and services().

Referenced by operator>>(), and ServicePage::save().

Friends And Related Function Documentation

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.

Member Data Documentation

QList<Service> ServiceList::_services
private

The list of Services

Definition at line 45 of file ServiceList.h.

Referenced by addService(), services(), and setServices().


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