summaryrefslogtreecommitdiffstats
path: root/src/progs/gui/prog_config_widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/gui/prog_config_widget.h')
-rw-r--r--src/progs/gui/prog_config_widget.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/progs/gui/prog_config_widget.h b/src/progs/gui/prog_config_widget.h
new file mode 100644
index 0000000..d201cea
--- /dev/null
+++ b/src/progs/gui/prog_config_widget.h
@@ -0,0 +1,45 @@
+/***************************************************************************
+ * Copyright (C) 2005 Nicolas Hadacek <hadacek@kde.org> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ ***************************************************************************/
+#ifndef PROG_CONFIG_WIDGET
+#define PROG_CONFIG_WIDGET
+
+class QCheckBox;
+class KURLRequester;
+
+#include "common/gui/config_widget.h"
+#include "common/port/port.h"
+
+namespace Programmer
+{
+class Group;
+class HardwareDescription;
+
+class ConfigWidget: public ::ConfigWidget
+{
+Q_OBJECT
+public:
+ ConfigWidget(const Group &group, QWidget *parent);
+ virtual void loadConfig();
+ const Group &group() const { return _group; }
+ virtual void saveConfig();
+ virtual bool setPort(const HardwareDescription &hd);
+
+signals:
+ void updatePortStatus(bool ok);
+
+protected:
+ const Group &_group;
+
+private:
+ KURLRequester *_firmwareDir;
+};
+
+} // namespace
+
+#endif