We changed enough of dhcpcd-qt in 2017 to warrant a copyright bump.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-ssidmenu.h
index 74f115b5fa978acb46961d0fde4515cd8deb198c..15e3d93756cb2d4ba90b02e5bf9af95a3ced0221 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * dhcpcd-qt
- * Copyright 2014 Roy Marples <roy@marples.name>
+ * Copyright 2014-2017 Roy Marples <roy@marples.name>
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * SUCH DAMAGE.
  */
 
-#include <QWidget>
+#include <QWidgetAction>
 
 #include "dhcpcd.h"
 
-class QRadioButton;
-class QLabel;
-class QProgressBar;
-class QWidgetAction;
+class QWidget;
 
 class DhcpcdWi;
+class DhcpcdSsidMenuWidget;
 
-class DhcpcdSsidMenu : public QWidget
+class DhcpcdSsidMenu : public QWidgetAction
 {
        Q_OBJECT
 
 public:
-       DhcpcdSsidMenu(QWidget *parent, QWidgetAction *wa,
+       DhcpcdSsidMenu(QWidget *parent,
            DhcpcdWi *wi, DHCPCD_WI_SCAN *scan);
        ~DhcpcdSsidMenu() {};
 
-       QWidgetAction *getWidgetAction();
+       QWidget *createWidget(QWidget *parent);
+       void deleteWidget(QWidget *widget);
        DHCPCD_WI_SCAN *getScan();
        void setScan(DHCPCD_WI_SCAN *scan);
+       bool isAssociated();
 
-signals:
-       void selected(DHCPCD_WI_SCAN *scan);
+public slots:
+       void hover();
+       void trigger();
 
-private slots:
-       bool eventFilter(QObject *obj, QEvent *event);
+signals:
+       void hovered();
+       void triggered(DHCPCD_WI_SCAN *);
 
 private:
-       QWidgetAction *wa;
        DhcpcdWi *wi;
        DHCPCD_WI_SCAN *scan;
-
-       QRadioButton *button;
-       QLabel *licon;
-       QProgressBar *bar;
+       DhcpcdSsidMenuWidget *ssidWidget;
 };