#ifndef RFCPOPUP_H #define RFCPOPUP_H #include #include #include "btdeviceitem.h" namespace OpieTooth { /** * A simple reference implementation for * the popup helper factory. * This class derives from QPopupMenu and uses * plugged QActions to do all the nasty in it's * slots. After the work is done everything must * be deleted. */ class RfcCommPopup : public QPopupMenu { Q_OBJECT public: RfcCommPopup( OpieTooth::BTDeviceItem* ); ~RfcCommPopup(); private: QAction* m_con; QAction* m_dis; QAction* m_bind; QAction* m_bar; OpieTooth::BTDeviceItem *m_item; private slots: void slotConnect(); void slotDisconnect(); void slotBind(); void slotBar(); }; }; #endif