[Development] async operation error guidance

2013-11-05 Thread Tony Van Eerd
Most of BlackBerry's APIs are async. We are looking at moving some of these APIs into Qt. Just as one example, WiFi Direct. I have been attempting to come up with some solid guidelines of how to deal with errors on async operations. Some things to consider: - the initial request may fail. ie

Re: [Development] async operation error guidance

2013-11-05 Thread Frank Osterfeld
On Nov 5, 2013, at 5:12 PM, Tony Van Eerd wrote: Most of BlackBerry's APIs are async. We are looking at moving some of these APIs into Qt. Just as one example, WiFi Direct. I have been attempting to come up with some solid guidelines of how to deal with errors on async operations.

Re: [Development] async operation error guidance

2013-11-05 Thread Tony Van Eerd
It could also fail later, as it is mostly asynchronous. Or it could succeed with a result. ie Q_SIGNAL void deviceConntected(SomeDevice device); Q_SIGNAL void deviceConnectionFailed(SomeOtherConnectError error); or one signal: Q_SIGNAL void

Re: [Development] async operation error guidance

2013-11-05 Thread Nehme Bilal
Subject: Re: [Development] async operation error guidance It could also fail later, as it is mostly asynchronous. Or it could succeed with a result. ie Q_SIGNAL void deviceConntected(SomeDevice device); Q_SIGNAL void deviceConnectionFailed(SomeOtherConnectError error