summaryrefslogtreecommitdiffstats
path: root/src/configpluginspage.h
blob: 9525faf4b25be3206bbda03815f3a4369d3bbf31 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83

#ifndef CONFIGPLUGINSPAGE_H
#define CONFIGPLUGINSPAGE_H

#include <configpagebase.h>

#include <kio/jobclasses.h>

class Config;
class KPushButton;
class KListBox;
class TQCheckBox;

/**
 * @short The page for configuring the plugins
 * @author Daniel Faust <[email protected]>
 * @version 0.3
 */
class ConfigPluginsPage : public ConfigPageBase
{
    Q_OBJECT
  TQ_OBJECT
public:
    /**
     * Default Constructor
     */
    ConfigPluginsPage( Config*, TQWidget *parent=0, const char *name=0 );

    /**
     * Default Destructor
     */
    virtual ~ConfigPluginsPage();

private:
    KListBox* lPlugins;
    KPushButton* pAddPlugin;
    KIO::FileCopyJob* getPluginJob;
    KPushButton* pRemovePlugin;
    KPushButton* pAboutPlugin;
    KListBox* lOnlinePlugins;
    KPushButton* pRefreshOnlinePlugins;
    KIO::FileCopyJob* refreshOnlinePluginsJob;
    KPushButton* pInstallOnlinePlugin;
    KIO::FileCopyJob* getOnlinePluginJob;
    KPushButton* pUpgradeOnlinePlugins;
    KPushButton* pAboutOnlinePlugin;
    KIO::FileCopyJob* aboutOnlinePluginJob;
    TQCheckBox* cCheckOnlinePlugins;

    TQString getPluginFilePathName;

    Config* config;

public slots:
    void resetDefaults();
    void saveSettings();

// signals:
//     void configChanged();
//     void recalcEnDecoderPage();
//     void reloadEnDecoderPage();
//     void rescanForBackends();

private slots:
    void pluginsSelectionChanged( int );
    void refreshPlugins();
    void getPlugin();
    void getPluginFinished( KIO::Job* );
    void removePlugin();
    void aboutPlugin();

    void onlinePluginsSelectionChanged( int );
    void refreshOnlinePlugins();
    void refreshOnlinePluginsFinished( KIO::Job* );
    void getOnlinePlugin();
    void getOnlinePluginFinished( KIO::Job* );
    void aboutOnlinePlugin();
    void aboutOnlinePluginFinished( KIO::Job* );

};

#endif // CONFIGPLUGINSPAGE_H