summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/dunpopup.h
blob: 9fecf06a2cfe8397bada7bce38721ff25e25aaac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* $Id$ */
/* DUN context menu */
/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
#ifndef DUNPOPUP_H
#define DUNPOPUP_H

#include <qpopupmenu.h>
#include <qaction.h>
#include <services.h>

#include "btdeviceitem.h"


namespace OpieTooth {

    class DunPopup : public QPopupMenu {

	Q_OBJECT

    public:
        DunPopup(const OpieTooth::Services&, OpieTooth::BTDeviceItem* );
        ~DunPopup();

    private:
        QAction* m_push;
        OpieTooth::BTDeviceItem *m_item; //device item 
        Services m_service; //device service (port)
    private slots:
        void slotConnect();
        void slotDisconnect();
        void slotConnectAndConfig();
   };
};

#endif