diff options
author | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2009-07-06 12:03:03 (GMT) |
---|---|---|
committer | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2009-07-06 12:06:03 (GMT) |
commit | 252090f78da07b67dcddfe5012e7497b3a135f85 (patch) | |
tree | 7a364be07a476bbc103c2bab6051ddd575fbd852 /examples/network/fortuneclient/client.cpp | |
parent | b6909aedbfcafe67c5e2fc1bbda62e0ea672d239 (diff) | |
download | Qt-252090f78da07b67dcddfe5012e7497b3a135f85.zip Qt-252090f78da07b67dcddfe5012e7497b3a135f85.tar.gz Qt-252090f78da07b67dcddfe5012e7497b3a135f85.tar.bz2 |
Adapting fortuneclient to work on S60 phones.
BTW: somthing shoud be done with layout to make
app usable on small screen devices.
Diffstat (limited to 'examples/network/fortuneclient/client.cpp')
-rw-r--r-- | examples/network/fortuneclient/client.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/network/fortuneclient/client.cpp b/examples/network/fortuneclient/client.cpp index f3947e2..9828d86 100644 --- a/examples/network/fortuneclient/client.cpp +++ b/examples/network/fortuneclient/client.cpp @@ -44,6 +44,10 @@ #include "client.h" +#ifdef Q_OS_SYMBIAN +#include "sym_iap_util.h" +#endif + //! [0] Client::Client(QWidget *parent) : QDialog(parent) @@ -102,6 +106,10 @@ Client::Client(QWidget *parent) setWindowTitle(tr("Fortune Client")); portLineEdit->setFocus(); + +#ifdef Q_OS_SYMBIAN + isDefaultIapSet = false; +#endif //! [5] } //! [5] @@ -110,6 +118,12 @@ Client::Client(QWidget *parent) void Client::requestNewFortune() { getFortuneButton->setEnabled(false); +#ifdef Q_OS_SYMBIAN + if(!isDefaultIapSet) { + qt_SetDefaultIap(); + isDefaultIapSet = true; + } +#endif blockSize = 0; tcpSocket->abort(); //! [7] |