build and coding-style
[kdenetwork.git] / kget / transfer-plugins / mirrorsearch / dlgmirrorsearch.h
blob1999adc036e819b0b9cb7b41040b9eac6eac1dcb
1 /* This file is part of the KDE project
3 Copyright (C) 2008 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 DLGMIRRORSEARCH_H
12 #define DLGMIRRORSEARCH_H
14 #include "ui_dlgengineediting.h"
15 #include "ui_dlgmirrorsearch.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(KDialog *parent = 0);
40 ~DlgSettingsWidget();
42 private slots:
43 void slotNewEngine();
44 void slotRemoveEngine();
45 void slotSave();
46 void init();
47 //void enableButtonApply();
49 private:
50 void addSearchEngineItem(const QString &name, const QString &url);
52 void loadSearchEnginesSettings();
53 void saveSearchEnginesSettings();
55 Ui::DlgMirrorSearch ui;
56 KDialog *m_parent;
59 #endif // DLGMULTISEGKIO_H