diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 84da08d7b7fcda12c85caeb5a10b4903770a6f69 (patch) | |
tree | 2a6aea76f2dfffb4cc04bb907c4725af94f70e72 /konq-plugins/autorefresh/autorefresh.h | |
download | tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.tar.gz tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/autorefresh/autorefresh.h')
-rw-r--r-- | konq-plugins/autorefresh/autorefresh.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/konq-plugins/autorefresh/autorefresh.h b/konq-plugins/autorefresh/autorefresh.h new file mode 100644 index 0000000..370e42b --- /dev/null +++ b/konq-plugins/autorefresh/autorefresh.h @@ -0,0 +1,55 @@ +// -*- c++ -*- + +/* + * Copyright 2003 by Richard J. Moore, rich@kde.org + */ + +#ifndef __plugin_autorefresh_h +#define __plugin_autorefresh_h + +#include <kparts/plugin.h> +#include <klibloader.h> + +class KURL; +class KInstance; +class QTimer; + +/** + * A plugin is the way to add actions to an existing @ref KParts application, + * or to a @ref Part. + * + * The XML of those plugins looks exactly like of the shell or parts, + * with one small difference: The document tag should have an additional + * attribute, named "library", and contain the name of the library implementing + * the plugin. + * + * If you want this plugin to be used by a part, you need to + * install the rc file under the directory + * "data" (KDEDIR/share/apps usually)+"/instancename/kpartplugins/" + * where instancename is the name of the part's instance. + **/ +class AutoRefresh : public KParts::Plugin +{ + Q_OBJECT +public: + + /** + * Construct a new KParts plugin. + */ + AutoRefresh( QObject* parent = 0, const char* name = 0, const QStringList &args = QStringList() ); + + /** + * Destructor. + */ + virtual ~AutoRefresh(); + +public slots: + void slotRefresh(); + void slotIntervalChanged(); + +private: + KSelectAction *refresher; + QTimer *timer; +}; + +#endif |