Re: [Development] Ref-counted quit

2012-01-08 Thread Lincoln Ramsay
On 12/30/2011 10:48 AM, ext Stephen Kelly wrote: > The ref counted quit feature I was working on was vetoed. At the moment > it looks like Qt will not get a ref counted quit feature. It is blocked > because no solution has been proposed. A different proposal: Why not just abstract the relevant bit

Re: [Development] Ref-counted quit

2012-01-02 Thread Thiago Macieira
On Monday, 2 de January de 2012 16.47.50, Stephen Kelly wrote: > If wake locks are as simple as you describe though, it sounds like > something similar would work just fine. That might be. I was actually hoping you'd spend an hour to investigate what it takes. -- Thiago Macieira - thiago.macieir

Re: [Development] Ref-counted quit

2012-01-02 Thread Stephen Kelly
On Monday, January 02, 2012 12:44:19 Thiago Macieira wrote: > I'm asking for an outside class at a minimum. Some discussion on IRC: > > 11:30 <+ossi> well, at least the proxy objects allow some kind of > discoverability > 11:31 <+ossi> "wtf is this not quitting? let's consult the list of > registe

Re: [Development] Ref-counted quit

2012-01-02 Thread Thiago Macieira
On Monday, 2 de January de 2012 14.39.40, Stephen Kelly wrote: > On Monday, January 02, 2012 10:51:31 Thiago Macieira wrote: > > > Does the manager keep track of its delegates? > > > > Good question. I guess it would depend on the windowing system, if we have > > a notification of remote windows be

Re: [Development] Ref-counted quit

2012-01-02 Thread Thiago Macieira
On Monday, 2 de January de 2012 14.47.20, Olivier Goffart wrote: > > > > It sounds like the QCoreApplication object will be deleted when the > > > > count reaches zero, which isn't true. > > > > > > Yes, it is true. > > > > To be clear: are you agreeing with me ("what you said is true") or are you

Re: [Development] Ref-counted quit

2012-01-02 Thread Olivier Goffart
On Monday 02 January 2012 11:34:36 Thiago Macieira wrote: > On Monday, 2 de January de 2012 14.25.17, Olivier Goffart wrote: > > ref() means "keep the application alive until i call deref() > > > > And every ref() must be paired with a deref() > > exactly like QSharedData ref. that is i hink a

Re: [Development] Ref-counted quit

2012-01-02 Thread Stephen Kelly
On Monday, January 02, 2012 10:51:31 Thiago Macieira wrote: > > Does the manager keep track of its delegates? > > Good question. I guess it would depend on the windowing system, if we have a > notification of remote windows being closed. I'd like it to be automatic, > of course. Also, programmatic

Re: [Development] Ref-counted quit

2012-01-02 Thread Thiago Macieira
On Monday, 2 de January de 2012 14.25.17, Olivier Goffart wrote: > ref() means "keep the application alive until i call deref() > And every ref() must be paired with a deref() > exactly like QSharedData ref. that is i hink a concept that is very common > and easy to understand. > > After, it can

Re: [Development] Ref-counted quit

2012-01-02 Thread Olivier Goffart
On Monday 02 January 2012 10:51:31 Thiago Macieira wrote: > I don't see a need to expose the actual integer count of windows. It is not exposed. ref() and deref() returns void. > I really don't like "ref/deref" in QCoreApplication, as it doesn't make much > sense. It does: ref() mean

Re: [Development] Ref-counted quit

2012-01-02 Thread Thiago Macieira
On Monday, 2 de January de 2012 13.01.36, Stephen Kelly wrote: > What does the 'delegate side' API look like? Nothing. This object would be created and, when it's "closed", if it's the last window, the application should quit. > Does your proposal require QGuiApplication or is QCoreApplication en

Re: [Development] Ref-counted quit

2012-01-02 Thread Stephen Kelly
On Sunday, January 01, 2012 23:21:33 Thiago Macieira wrote: > > > To fix the front-end API we need to find out what the use-cases are > > > that we're trying to solve. So far, I've only heard one: preventing > > > an application from quitting while it has out-of-process windows > > > open.> > > We

Re: [Development] Ref-counted quit

2012-01-02 Thread Olivier Goffart
On Sunday 01 January 2012 23:21:33 Thiago Macieira wrote: > On Friday, 30 de December de 2011 08.12.58, Stephen Kelly wrote: > > As the current API is a low-level API, you can put any front-end API you > > wish on top as an alternative. I'm not convinced that would solve any > > problems though. I

Re: [Development] Ref-counted quit

2012-01-01 Thread Thiago Macieira
On Friday, 30 de December de 2011 08.12.58, Stephen Kelly wrote: > As the current API is a low-level API, you can put any front-end API you > wish on top as an alternative. I'm not convinced that would solve any > problems though. I don't think you've proposed a concrete enough front-end > API to e

Re: [Development] Ref-counted quit

2011-12-30 Thread Olivier Goffart
On Friday 30 December 2011 01:48:12 Stephen Kelly wrote: > Hi, > > The ref counted quit feature I was working on was vetoed. At the moment it > looks like Qt will not get a ref counted quit feature. It is blocked because > no solution has been proposed. > > http://codereview.qt-project.org/#chang

Re: [Development] Ref-counted quit

2011-12-29 Thread Stephen Kelly
On Thursday, December 29, 2011 23:33:35 Thiago Macieira wrote: > On Friday, 30 de December de 2011 01.48.12, Stephen Kelly wrote: > > Hi, > > > > The ref counted quit feature I was working on was vetoed. At the moment > > it looks like Qt will not get a ref counted quit feature. It is blocked > >

Re: [Development] Ref-counted quit

2011-12-29 Thread Thiago Macieira
On Friday, 30 de December de 2011 01.48.12, Stephen Kelly wrote: > Hi, > > The ref counted quit feature I was working on was vetoed. At the moment it > looks like Qt will not get a ref counted quit feature. It is blocked because > no solution has been proposed. > > http://codereview.qt-project.org/

[Development] Ref-counted quit

2011-12-29 Thread Stephen Kelly
Hi, The ref counted quit feature I was working on was vetoed. At the moment it looks like Qt will not get a ref counted quit feature. It is blocked because no solution has been proposed. http://codereview.qt-project.org/#change,10408 I'm just moving the discussion here. I know asiego is not s