#ifndef RFCPOPUP_H #define RFCPOPUP_H #include #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(const OpieTooth::Services&, OpieTooth::BTDeviceItem*); ~RfcCommPopup(); private: QAction* m_con; QAction* m_dis; QAction* m_bind; QAction* m_bar; OpieTooth::BTDeviceItem *m_item; Services m_service; int procId; //Connection process number private slots: void slotConnect(); void slotDisconnect(); void slotBind(); void slotBar(); }; }; #endif