How do I configure the timeout to blackberry10

Hi all

I use code below to a network request.

QNetworkRequest request = QNetworkRequest();
request.setUrl(QUrl("http://www.example.com"));
_networkAccessManager->get(request);

According to my observation, the default connection for reaquest network timeout is 60 seconds.

How to configure this timeout of 20 seconds.

toolonglyf, it should work with any number of connections. It crashes because the replyPWPointer variable is overwritten. I suggest to change as follows (not tested, but should work):

QNetworkReply* response = m_networkAccessManager->get(request);
QTimer* timer = new QTimer(response); // !!!! set response as parent
timer->setSingleShot(true);
bool ok2 = connect(timer,SIGNAL(timeout()),this,SLOT(replyPWPointer()));
timer->start(3000);

// Now in replyPWPointer slot use parent() to get QNetworkReply instance:

void ClassName::replyPWPointer() {
  QTimer *timer = qobject_cast(sender());
  QNetworkReply *response = qobject_cast(timer->parent());
  response->abort();
}

// Timer will be destroyed when the reply is destroyed because the reply is it's parent.

Tags: BlackBerry Developers

Similar Questions

  • How can I configure the vidio is dark?

    How can I configure the vidio when I used it it was dark and I do not see a menu so I can't go to tools?

    Can someone help me?

  • Satellite A200-1AE: How can I configure the settings of buttons Dual Mode Pad?

    Hello

    I recently bought a Satellite A200-1AE. I tried to configure the default first button on my touch pad (lower left) so that I can fire up MSWord, but it did not work.

    Now every time I have set the mode button and press this button, that nothing not to pass - I lost practically this button.

    My question is how can I configure the mode button on the touch pad settings? Even if I was able to start a program by using the 3 buttons how can I modify these programs?

    Thanks for your help!

    p.s. I read the extended version of the manual for my laptop. There is no explanation of my problem - it says I should look "Synaptics Dual Mode Pad properties.

    I don't know where are these properties.

    Hello

    It s is not so difficult as you think, the properties of the synaptics are in the "mouse properties" of your "Control Panel" of windows. When you reach the 'mouse', then click on the "Advanced" tab and you should find a button 'Advanced functionality settings'.
    It could be that the button is not named as mine, but it must be identical.
    After clicking on it, you should look for this 'easy' Launcher in one of the tabs.

    I think that you will make it, but I'd like some feedback from you.

    Welcome them

  • How can I configure the double-click on a Magic Mouse 2 without the universal access icon?

    How can I configure the double-click on a Magic Mouse 2 without the universal access icon?

    --> Mouse system preferences.

  • How can I configure the folder in which a movie TS file stores the report?

    How can I configure the folder in which a movie TS file stores the report?

    Thank you

    Too bad... I found it

    Thank you

  • How do I configure the iPad2 to synchronize the iPad-Mailclient with Exchange 2010 via Active Sync using the certificate SSL client and name of user and password?

    Active Sync iPad ssl Client certificate

    How do I configure the iPad2 to synchronize the iPad-Mailclient with Exchange 2010 via Active Sync using the certificate SSL client and name of user and password?

    Hi Ewoki,

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the TechNet Exchange forum. Please post your question in the Forums TechNet in Exchange Server.

  • Security log: How can I configure the journal required in a password?

    I have guests at home I don't want to have access to my computer. How can I configure the journal required in a password?

    Hello

    This should help:

    How to Make Windows 7 require a username and password with a Log on
    http://www.SevenForums.com/tutorials/61650-log-user-name-password.html

    If you later want to have auto login:

    How to automatically log on a user account to Windows 7 startup
    http://www.SevenForums.com/tutorials/377-log-automatically-startup.html

    How to automatically log on a user account in Windows 7
    http://pcsupport.about.com/od/Windows7/HT/auto-logon-Windows-7.htm

    I hope this helps.

  • How can I configure the WAG120N as a router only?

    How can I configure the WAG120N as a router only because I don't want to use it as a modem and router?

    I want to connect the WAG120N via a cable to a modem that will make the internet connection and only use the WAG120N like a wireless router.

    Thank you for your help.

    How to configure the WAN connection? Which requires your ISP?

    Shows the status page?

    You have a working internet connection with a public IP address if you connect your computer directly to the modem? It works with two different computers?

    If you have cable internet try to use the MAC address cloning feature and clone the MAC address of the computer that has an internet connection when it is connected directly to the modem.

  • I reinstalled windows vista, and when I did I must have erased the initial password when you turn on the computer. I was wondering how can I configure the windows logon password?

    I reinstalled windows vista, and when I did I must have erased the initial password when you turn on the computer. I was wondering how can I configure the windows logon password?

    http://pcsupport.about.com/od/windowsvista/HT/nvistapassword.htm

    Info on the link above will help you.

    http://au.Dummies.com/how-to/content/set-up-passwords-in-Windows-Vista.html

    More info on including a password reset disc info.

    See you soon. Mick Murphy - Microsoft partner

  • Can anyone tell how I can configure the desktop as the default screen that appears when I connect to Win 8?

    Original title: Desktop

    Can anyone tell how I can configure the desktop as the default screen that appears when I connect to Win 8 rather than having to go from the first layer redundant 'start-up '.

    In fact, if anyone can tell if there's a free windback to an earlier version of Windows (7) who has not all layers unnecessary and icons, I would be really grateful

    Your best bet is to switch to 8.1, that allows you to boot directly to the desktop, and then use a menu like debut8 to replace the old Start Menu and hide the side of the metro.

    If your computer comes with Win Pro 8, you may be able to demotion, otherwise, you will need to buy 7. Before you buy 7, I would recommend go to the computer manufacturer's website and see if there are any Windows 7 drivers for your computer. You may lose certain functions - sound, network, video full resolution - if there is no driver.

    The first option is easy and allows you to keep the improvements in performance and safety 8.

  • How can I configure the "hand-selection-Tool" (hand-tool) as a default setting in Acrobat Reader ms?

    How can I configure the "hand-selection-Tool" (hand-tool) as a default setting in Acrobat Reader ms? I'm tired of change each time I open a pdf file...

    Hi M S.

    Could you please let us know the version of the OS on your system?

    Also please refer to this article:hand lack of tool (Installation & updates)

    Let us know if this helps,

    Concerning

    Sarojini

  • How can I configure the element with the script names?

    Could Hello someone give me a hand?

    I created symbols on the stage of this script below.

    ------------------------------------------------------

    for (k = 0; k < 5; k ++) {}

    sym.createChildSymbol ("mySymB", "Stage");

    }

    ------------------------------------------------------

    How can I configure the element with the script names?

    Because, when I try to control a symbol by using the getSymbol("---") command.

    I need to know the name of the item given to each symbol.

    Concerning

    Yes, you're right.

    Using 'Code-Example' If you write sym.getSymbol ("mySymB") that edge returns the undefined value.

    With "Drag-and-drop-Example", you can use sym.getChildSymbols ().

  • How can I configure the cell data format

    How can I configure data format of cell numbers: for example, I want to capture 123456.78 and need to be 12A3456.78?

    I tried to put #A # #. # format option, but it didn't work a few time and it became A123456.78.

    I also tried on excel and it worked very well, but I like the numbers better. is there a solution to this problem?

    Thank you

    HEY Chi - Lun,

    I don't think that this is possible as many number format. You should be able to insert A in a text string using a formula, but this would happen in a second cell, not that the number has been entered.

    "Assuming all the"numbers require the same inserted letter after the second number, this should do the work."number" entered in column A; the formula in column B. In the table below, your value as an example is A6.

    = Left (A, 2) & "A" & RIGHT (A, LEN (A) - 2)

    Kind regards

    Barry

  • How do I configure the bluetooth device

    Original title: pls help bluetooth & windows XP

    so brought of speakers of wi - fi creative d80 to my pc. I tried to activate bluetooth in downloading drivers. is it true that you can not bluetooth windows xp?

    Hello

    Thanks for posting in Microsoft Community

    I appreciate that you try to configure the Bluetooth device in Windows XP.

    I will definitely help you with this.

    Please follow the steps in the link.

    How to install and configure Bluetooth devices in Windows XP Service Pack 2

    http://support.Microsoft.com/kb/883259?WA=wsignin1.0

  • Configure the timeout and session timeout in a group policy.

    I want a L2L tunnel to establish a period of time, this tunnel is established in a PIX 515E.

    Then I had seen that we must configure the idle time in group policy, but I have no ' t know the difference between the idle timeout setting and the session timeout.

    Anyone know what is the difference between this two command line.

    Thank you

    Hello

    Session-Timeout: at the end of this time, the security apparatus terminates the connection.

    Idle-timeout: If there is no communication on the connection activity in this period, the security apparatus terminates the connection.

    Please see the below URL for more details.

    http://www.Cisco.com/en/us/docs/security/ASA/asa70/command/reference/TZ.html#wp1281883

    http://www.Cisco.com/en/us/docs/security/ASA/asa70/configuration/guide/vpngrp.html

    Kind regards

    Arul

    * Rate pls if it helps *.

Maybe you are looking for

  • I want to know about Mackeeper role &amp; how do I do it?

    I want to know about Mackeeper role & how do I do it? If I couldn't access this site support once more, so I ask Pl post your comments on my personal mail ID < personal information deleted by host >

  • Why is moviemk.exe process not stop when I shut the Director?

    When I close Windows Movie Maker, (as far as I can remember it has no problem up there), it is impossible to open until you manually close the process "moviemk.exe" task Mangager. He says in a box "another user is running Windows Movie Maker on this

  • Event Viewer/Task Scheduler error message

    I get the error message "MMC could not create the snap" in Task Scheduler and Event Viewer. I tried various things, including a reinstallation of the .NET Framework, and nothing seems to solve the problem. Does anyone have any suggestions?

  • Error: 0x80004005 during extraction of a folder in Windows 7

    Hi, I get error when extracting a file in windows 7 64 bit. Initially the file has been compressed in Win 7 only. but when I try to extract/decompress, I get the error: 0 x 80004005 error Unspecifies. Suggestions please...

  • How to display the menu on the my button click event

    I need to show the menu on clickevent on my button and menuitems will be different for the different buttons. How to do this. I have the substitution makemenu like that method. protected void makeMenu(Menu menu, int instance) { super.makeMenu(menu, i