addinterface.h 950 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * wpa_gui - AddInterface class
  3. * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * Alternatively, this software may be distributed under the terms of BSD
  10. * license.
  11. *
  12. * See README and COPYING for more details.
  13. */
  14. #ifndef ADDINTERFACE_H
  15. #define ADDINTERFACE_H
  16. #include <QObject>
  17. #include <QtGui/QDialog>
  18. #include <QtGui/QTreeWidget>
  19. #include <QtGui/QVBoxLayout>
  20. class WpaGui;
  21. class AddInterface : public QDialog
  22. {
  23. Q_OBJECT
  24. public:
  25. AddInterface(WpaGui *_wpagui, QWidget *parent = 0);
  26. public slots:
  27. virtual void interfaceSelected(QTreeWidgetItem *sel);
  28. private:
  29. void addInterfaces();
  30. bool addRegistryInterface(const QString &ifname);
  31. QVBoxLayout *vboxLayout;
  32. QTreeWidget *interfaceWidget;
  33. WpaGui *wpagui;
  34. };
  35. #endif /* ADDINTERFACE_H */