summaryrefslogtreecommitdiffstats
path: root/src/progs/gui/prog_config_widget.h
blob: d201ceaab7e0aaa5853f7f1154df8b78ffa57bdb (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
/***************************************************************************
 *   Copyright (C) 2005 Nicolas Hadacek <[email protected]>                  *
 *                                                                         *
 *   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