00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _konq_sidebar_test_h_
00018 #define _konq_sidebar_test_h_
00019 #include <konqsidebarplugin.h>
00020 #include <tqlabel.h>
00021 #include <tqlayout.h>
00022
00023 class SidebarTest : public KonqSidebarPlugin
00024 {
00025 Q_OBJECT
00026 public:
00027 SidebarTest(KInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName_, const char* name=0):
00028 KonqSidebarPlugin(inst,parent,widgetParent,desktopName_,name)
00029 {
00030 widget=new TQLabel("Init Value",widgetParent);
00031 }
00032 ~SidebarTest(){;}
00033 virtual TQWidget *getWidget(){return widget;}
00034 virtual void *provides(const TQString &) {return 0;}
00035 protected:
00036 TQLabel *widget;
00037 virtual void handleURL(const KURL &url)
00038 {
00039 widget->setText(url.url());
00040 }
00041 };
00042
00043 #endif