summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/obexpopup.cpp
blob: 010f7ded592dd132ab63e785ab19c2006ce7ce24 (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
43
44
45
46
47

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

/* OPIE */
#include <qpe/qpeapplication.h>
#include <opie2/odebug.h>
using namespace Opie::Core;

/* QT */
#include <qtimer.h>

using namespace OpieTooth;

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

    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()
{

    owarn << "push something" << oendl; 

    ObexDialog obexDialog;
    QPEApplication::execDialog( &obexDialog );
}