addinterface.h 713 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * wpa_gui - AddInterface class
  3. * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef ADDINTERFACE_H
  9. #define ADDINTERFACE_H
  10. #include <QObject>
  11. #include <QDialog>
  12. #include <QTreeWidget>
  13. #include <QVBoxLayout>
  14. class WpaGui;
  15. class AddInterface : public QDialog
  16. {
  17. Q_OBJECT
  18. public:
  19. AddInterface(WpaGui *_wpagui, QWidget *parent = 0);
  20. public slots:
  21. virtual void interfaceSelected(QTreeWidgetItem *sel);
  22. private:
  23. void addInterfaces();
  24. bool addRegistryInterface(const QString &ifname);
  25. QVBoxLayout *vboxLayout;
  26. QTreeWidget *interfaceWidget;
  27. WpaGui *wpagui;
  28. };
  29. #endif /* ADDINTERFACE_H */