* don't show not yet implemented features in the config dialog
[kdenetwork.git] / kget / transfer-plugins / multisegmentkio / dlgmultisegkio.h
blobc1972e78d223fa8bfbcc59948244a96865c92146
1 /* This file is part of the KDE project
3 Copyright (C) 2006 Manolo Valdes <nolis71cu@gmail.com>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9 */
11 #ifndef DLGMULTISEGKIO_H
12 #define DLGMULTISEGKIO_H
14 #include "ui_dlgengineediting.h"
15 #include "ui_dlgmultisegkio.h"
17 class DlgEngineEditing : public KDialog
19 Q_OBJECT
21 public:
22 DlgEngineEditing(QWidget *parent = 0);
23 ~DlgEngineEditing();
25 QString engineName() const;
26 QString engineUrl() const;
27 private slots:
28 void slotChangeText();
30 private:
31 Ui::DlgEngineEditing ui;
34 class DlgSettingsWidget : public QWidget
36 Q_OBJECT
38 public:
39 DlgSettingsWidget(QWidget *parent = 0);
40 ~DlgSettingsWidget();
42 private Q_SLOTS:
43 void slotSetSegments(int seg);
44 void slotSetMinSegSize(int size);
45 void slotSetSaveDataSize(int size);
46 void slotSetUseSearchEngines(bool b);
47 void slotNewEngine();
48 void slotRemoveEngine();
50 private:
51 void init();
52 void addSearchEngineItem(const QString &name, const QString &url);
54 void loadSearchEnginesSettings();
55 void saveSearchEnginesSettings();
57 Ui::DlgMultiSeg ui;
60 #endif // DLGMULTISEGKIO_H