servicelist.h

Go to the documentation of this file.
00001 /*
00002 **  This file is part of Vidalia, and is subject to the license terms in the
00003 **  LICENSE file, found in the top level directory of this distribution. If you
00004 **  did not receive the LICENSE file with this file, you may obtain it from the
00005 **  Vidalia source package distributed by the Vidalia Project at
00006 **  http://www.vidalia-project.net/. No part of Vidalia, including this file,
00007 **  may be copied, modified, propagated, or distributed except according to the
00008 **  terms described in the LICENSE file.
00009 */
00010 
00011 #ifndef SERVICELIST_H_
00012 #define SERVICELIST_H_
00013 #include <QList>
00014 #include <service.h>
00015 class ServiceList
00016 {
00017 public:
00018 
00019   /** Default constructor. */
00020   ServiceList();
00021   /** Destructor */
00022   virtual ~ServiceList();
00023   /** Returns the list of services */
00024   void addService(Service service);
00025   /** Sets the lists of services */
00026   void setServices(QList<Service> services);
00027   /** Returns the list of services */
00028   QList<Service> services() const {
00029    return _services;
00030   }
00031   /** Writes ServiceList class data from <b>myObj</b> to the QDataStream
00032    * <b>out</b>. */
00033   friend QDataStream& operator<<(QDataStream &out, const ServiceList &myObj);
00034   /** Reads ServiceList class data in from the QDataStream <b>in</b> and
00035    populates * the <b>myObj</b> object accordingly. */
00036   friend QDataStream& operator>>(QDataStream &in, ServiceList &myObj);
00037 
00038 private:
00039 
00040   /** The list of Services */
00041   QList<Service> _services;
00042 
00043 };
00044 Q_DECLARE_METATYPE(ServiceList);
00045 #endif /*SERVICELIST_H_*/
00046 

Generated on 2 Sep 2009 for Vidalia by  doxygen 1.6.1