summaryrefslogtreecommitdiffstats
path: root/konq-plugins/autorefresh/autorefresh.h
blob: 1cd0c5ce4c18ef87fe20529ace1611f0b398759e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 * Copyright 2003 by Richard J. Moore, rich@kde.org
 */

#ifndef __plugin_autorefresh_h
#define __plugin_autorefresh_h
 
#include <tdeparts/plugin.h>
#include <klibloader.h>
 
class KURL;
class TDEInstance;
class TQTimer;

/**
 * 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" (TDEDIR/share/apps usually)+"/instancename/kpartplugins/"
 * where instancename is the name of the part's instance.
 **/
class AutoRefresh : public KParts::Plugin
{
    TQ_OBJECT
  
public:

    /**
     * Construct a new KParts plugin.
     */
    AutoRefresh( TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList() );

    /**
     * Destructor.
     */
    virtual ~AutoRefresh();

public slots:
    void slotRefresh();
    void slotIntervalChanged();
    
private:
   TDESelectAction *refresher;
   TQTimer *timer;
};

#endif