author | kergoth <kergoth> | 2003-08-09 17:29:36 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-08-09 17:29:36 (UTC) |
commit | a0bab0e281fbaf6f6ebbb1a48e5c06426bfbbb93 (patch) (unidiff) | |
tree | 5ce78e1a5dedd31b7851d53bf9f072bd44edd1b0 /core/obex/obexsend.cpp | |
parent | a7e015198a8c5ad3b6e144a9032b059086253e00 (diff) | |
download | opie-a0bab0e281fbaf6f6ebbb1a48e5c06426bfbbb93.zip opie-a0bab0e281fbaf6f6ebbb1a48e5c06426bfbbb93.tar.gz opie-a0bab0e281fbaf6f6ebbb1a48e5c06426bfbbb93.tar.bz2 |
Merge from BRANCH_1_0
-rw-r--r-- | core/obex/obexsend.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/obex/obexsend.cpp b/core/obex/obexsend.cpp index 2931cf7..cf5d958 100644 --- a/core/obex/obexsend.cpp +++ b/core/obex/obexsend.cpp | |||
@@ -1,65 +1,67 @@ | |||
1 | #include <qpushbutton.h> | 1 | #include <qpushbutton.h> |
2 | #include <qlabel.h> | 2 | #include <qlabel.h> |
3 | #include <qhbox.h> | 3 | #include <qhbox.h> |
4 | #include <qlayout.h> | 4 | #include <qlayout.h> |
5 | #include <qtimer.h> | 5 | #include <qtimer.h> |
6 | #include <qtl.h> | 6 | #include <qtl.h> |
7 | 7 | ||
8 | #include <qcopchannel_qws.h> | 8 | #include <qcopchannel_qws.h> |
9 | 9 | ||
10 | #include <qpe/resource.h> | 10 | #include <qpe/resource.h> |
11 | #include <qpe/qcopenvelope_qws.h> | 11 | #include <qpe/qcopenvelope_qws.h> |
12 | 12 | ||
13 | #include "obex.h" | 13 | #include "obex.h" |
14 | #include "obexsend.h" | 14 | #include "obexsend.h" |
15 | 15 | ||
16 | using namespace OpieObex; | 16 | using namespace OpieObex; |
17 | 17 | ||
18 | /* TRANSLATOR OpieObex::SendWidget */ | ||
19 | |||
18 | 20 | ||
19 | SendWidget::SendWidget( QWidget* parent, const char* name ) | 21 | SendWidget::SendWidget( QWidget* parent, const char* name ) |
20 | : QWidget( parent, name ) { | 22 | : QWidget( parent, name ) { |
21 | initUI(); | 23 | initUI(); |
22 | } | 24 | } |
23 | SendWidget::~SendWidget() { | 25 | SendWidget::~SendWidget() { |
24 | } | 26 | } |
25 | void SendWidget::initUI() { | 27 | void SendWidget::initUI() { |
26 | m_obex = new Obex(this, "obex"); | 28 | m_obex = new Obex(this, "obex"); |
27 | connect(m_obex, SIGNAL(error(int) ), | 29 | connect(m_obex, SIGNAL(error(int) ), |
28 | this, SLOT(slotIrError(int) ) ); | 30 | this, SLOT(slotIrError(int) ) ); |
29 | connect(m_obex, SIGNAL(sent(bool) ), | 31 | connect(m_obex, SIGNAL(sent(bool) ), |
30 | this, SLOT(slotIrSent(bool) ) ); | 32 | this, SLOT(slotIrSent(bool) ) ); |
31 | connect(m_obex, SIGNAL(currentTry(unsigned int ) ), | 33 | connect(m_obex, SIGNAL(currentTry(unsigned int ) ), |
32 | this, SLOT(slotIrTry(unsigned int ) ) ); | 34 | this, SLOT(slotIrTry(unsigned int ) ) ); |
33 | 35 | ||
34 | QCopChannel* chan = new QCopChannel("QPE/IrDaAppletBack", this ); | 36 | QCopChannel* chan = new QCopChannel("QPE/IrDaAppletBack", this ); |
35 | connect(chan, SIGNAL(received(const QCString&, const QByteArray& ) ), | 37 | connect(chan, SIGNAL(received(const QCString&, const QByteArray& ) ), |
36 | this, SLOT(dispatchIrda(const QCString&, const QByteArray& ) ) ); | 38 | this, SLOT(dispatchIrda(const QCString&, const QByteArray& ) ) ); |
37 | 39 | ||
38 | chan = new QCopChannel("QPE/BluetoothBack", this ); | 40 | chan = new QCopChannel("QPE/BluetoothBack", this ); |
39 | connect(chan, SIGNAL(received(const QCString&, const QByteArray& ) ), | 41 | connect(chan, SIGNAL(received(const QCString&, const QByteArray& ) ), |
40 | this, SLOT(dispatchBt(const QCString&, const QByteArray& ) ) ); | 42 | this, SLOT(dispatchBt(const QCString&, const QByteArray& ) ) ); |
41 | 43 | ||
42 | QVBoxLayout* lay = new QVBoxLayout(this); | 44 | QVBoxLayout* lay = new QVBoxLayout(this); |
43 | 45 | ||
44 | QHBox* nameBox = new QHBox(this); | 46 | QHBox* nameBox = new QHBox(this); |
45 | QLabel* name = new QLabel(nameBox); | 47 | QLabel* name = new QLabel(nameBox); |
46 | name->setText( tr("<qt><h1>Sending:</h1></qt>") ); | 48 | name->setText( tr("<qt><h1>Sending:</h1></qt>") ); |
47 | name->setAlignment( AlignLeft | AlignTop ); | 49 | name->setAlignment( AlignLeft | AlignTop ); |
48 | m_lblFile = new QLabel(nameBox); | 50 | m_lblFile = new QLabel(nameBox); |
49 | lay->addWidget(nameBox, 0); | 51 | lay->addWidget(nameBox, 0); |
50 | 52 | ||
51 | QFrame* frame = new QFrame(this); | 53 | QFrame* frame = new QFrame(this); |
52 | frame->setFrameShape( QFrame::HLine ); | 54 | frame->setFrameShape( QFrame::HLine ); |
53 | frame->setFrameShadow( QFrame::Sunken ); | 55 | frame->setFrameShadow( QFrame::Sunken ); |
54 | lay->addWidget(frame, 10); | 56 | lay->addWidget(frame, 10); |
55 | 57 | ||
56 | QLabel* devices = new QLabel(this); | 58 | QLabel* devices = new QLabel(this); |
57 | devices->setText("<qt><b>Devices:</b></qt>"); | 59 | devices->setText("<qt><b>Devices:</b></qt>"); |
58 | devices->setAlignment( AlignLeft | AlignTop ); | 60 | devices->setAlignment( AlignLeft | AlignTop ); |
59 | lay->addWidget( devices,10 ); | 61 | lay->addWidget( devices,10 ); |
60 | 62 | ||
61 | m_devBox = new DeviceBox(this); | 63 | m_devBox = new DeviceBox(this); |
62 | lay->addWidget( m_devBox, 50 ); | 64 | lay->addWidget( m_devBox, 50 ); |
63 | connect(m_devBox, SIGNAL(selectedDevice(int, int ) ), | 65 | connect(m_devBox, SIGNAL(selectedDevice(int, int ) ), |
64 | this, SLOT(slotSelectedDevice(int, int) ) ); | 66 | this, SLOT(slotSelectedDevice(int, int) ) ); |
65 | 67 | ||