Proof-reading.
[kdetoys.git] / kweather / weatherbar.h
blob4414d2da1da03cded0f45aed9df2f3041e80fc46
1 /*
2 * This file is part of the KDE project
3 * Copyright (C) 2002 Ian Reinhart Geiser <geiseri@kde.org>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License version 2.0 as published by the Free Software Foundation.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
19 * $Id$
22 #ifndef WEATHERBAR_H
23 #define WEATHERBAR_H
25 #include <konqsidebarplugin.h>
26 #include <kparts/part.h>
27 #include <kparts/factory.h>
28 #include <kparts/browserextension.h>
30 #include <Qt3Support/Q3Dict>
31 #include <QtGui/QLayout>
32 #include <QtCore/QTimer>
34 class dockwidget;
35 class sidebarwidget;
37 class KonqSidebarWeather: public KonqSidebarPlugin, virtual public DCOPObject
39 Q_OBJECT
40 K_DCOP
41 public:
42 KonqSidebarWeather(const KComponentData &inst, QObject* parent, QWidget* widgetParent,
43 QString& desktopName_, const char* name = 0);
45 ~KonqSidebarWeather();
46 virtual void* provides(const QString&);
47 void emitStatusBarText(const QString&);
48 virtual QWidget *getWidget();
50 k_dcop:
51 virtual void refresh(const QString &);
53 protected:
54 virtual void handleURL(const KUrl &url);
55 virtual void handlePreview(const KFileItemList& items);
56 virtual void handlePreviewOnMouseOver(const KFileItem& item);
58 private slots:
59 void update();
61 private:
62 Q3Dict <dockwidget> m_widgets;
63 sidebarwidget *m_container;
64 QTimer *timeOut;
67 #endif // WEATHERBAR_H