Re: [Development] async operation error guidance

2013-11-06 Thread André Somers
Frank Osterfeld schreef op 5-11-2013 17:41: > 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 o

Re: [Development] async operation error guidance

2013-11-05 Thread Nehme Bilal
t@qt-project.org 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 deviceC

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 device

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.

[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