summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/obexpopup.cpp
blob: a5506485ead1d11995d2c1ab7e91913fee054005 (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

#include <qtimer.h>

#include "obexdialog.h"
#include "obexpopup.h"

using namespace OpieTooth;

/*
 * c'tor init the QAction
 */
ObexPopup::ObexPopup()
    : QPopupMenu()  {
    qWarning("RfcCommPopup c'tor");

    QAction* a;

    /* connect action */
    a = new QAction( ); // so it's get deleted
    a->setText("Push file");
    a->addTo( this );
    connect( a, SIGNAL( activated() ),
             this, SLOT( slotPush() ) );
};


ObexPopup::~ObexPopup() {
}


void ObexPopup::slotPush() {

    qWarning("push something");


    ObexDialog obexDialog;
    obexDialog.showMaximized();
    obexDialog.exec();
}