/*************************************************************************** weathercfg.h - description ------------------- begin : Sun Mar 17 2002 copyright : (C) 2002 by Vladimir Shutoff email : vovan@shutoff.ru ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef _WEATHERCFG_H #define _WEATHERCFG_H #include "sax.h" #include "weathercfgbase.h" #include "fetch.h" #include "stl.h" class WeatherPlugin; class WIfaceCfg; class WeatherCfg : public WeatherCfgBase, public EventReceiver, public FetchClient, public SAXParser { Q_OBJECT public: WeatherCfg(QWidget *parent, WeatherPlugin*); ~WeatherCfg(); public slots: void apply(); void search(); void activated(int index); void textChanged(const QString&); protected: bool done(unsigned code, Buffer &data, const char *headers); void *processEvent(Event*); void fill(); WeatherPlugin *m_plugin; WIfaceCfg *m_iface; string m_id; string m_data; vector m_ids; vector m_names; void element_start(const char *el, const char **attr); void element_end(const char *el); void char_data(const char *str, int len); }; #endif