/*
 * This file was initialy generated by QTArchitect, but was heavily modified
 * afterwards.
 */

#ifndef CDDBSetup_included
#define CDDBSetup_included

#include "CDDBSetupData.h"
#include <qstrlist.h>

class CDDBSetup : public CDDBSetupData
{
    Q_OBJECT

public:

    CDDBSetup
    (
        QWidget* parent = NULL,
        const char* name = NULL
    );

    virtual ~CDDBSetup();

public slots:
    void serverlist_update();
    void insertServerList(const QStringList& list);

    void getData(QStringList& _serverlist,
                 QStringList& _submitlist,
                 QString& _basedir,
                 QString& _submitaddress,
                 QString& _current_server,
		 bool&    auto_save_enabled,
                 bool& _remote_enabled,
                 unsigned short int &cddb_timeout,
                 bool&    http_proxy_enabled,
                 QString  &http_proxy_host,
                 unsigned short int &http_proxy_port
                );

    void insertData(const QStringList& _serverlist,
                    const QStringList& _submitlist,
		    const QString& _basedir,
                    const QString& _submitaddress,
                    const QString& _current_server, 
		    const bool&    auto_save_enabled,
                    const bool&    _remote_enabled,
                    const unsigned short int &cddb_timeout,
                    const bool&    http_proxy_enabled,
                    const QString  &http_proxy_host,
                    const unsigned short int &http_proxy_port
                   );

protected slots:
   void enable_remote_cddb(bool);
   void basedir_changed(const QString &str);
   void set_current_server(int i);
   void set_current_submission_address(int i);
   void set_defaults();
   virtual void http_access_toggled(bool);
   void insertSL();
   void removeSL();
   void insertSUL();
   void removeSUL();

signals:
   void updateCDDBServers();
   void updateCurrentServer(const QString& newCurrentServer);

private:

   QString basedirstring;
   QString submitaddressstring;
   QString current_server_string;
   QStringList submitlist;
};
#endif // CDDBSetup_included










