[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KTar/Karchive problem
From:       Adriaan de Groot <groot () kde ! org>
Date:       2005-04-19 20:31:27
Message-ID: 200504192231.27912.groot () kde ! org
[Download RAW message or body]

On Tuesday 19 April 2005 18:12, Albert Astals Cid wrote:
> karchive has
>     virtual void close();
> that calls
>     virtual bool closeArchive();
> that classes that inherit have to implement.
>
> The problem is that in KTar, closeArchive can fail and return false but the
> application has no way to know, as close() is void.
>
> Am i wrong? Or is this a bug? If it has to be fixed can this be changed in
> a binary compatible way?

You can add a non-virtual member function closeSucceeded() and maintain the 
result of the closeArchive() call in the private data d-pointer.

-- 
As of September 1st, 2004, the University of Nijmegen will _still_ be the 
University of Nijmegen, but with a different nonsensical adjective in front.
    Reach me at groot@kde.org instead. GPG FEA2 A3FE
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic