IProjectController
Jens Herden
jens at kdewebdev.org
Mon Jul 2 08:47:27 UTC 2007
On Sunday 01 July 2007, Matt Rogers wrote:
> On Jul 1, 2007, at 11:10 AM, Andreas Pakulat wrote:
> > On 01.07.07 16:21:14, Jens Herden wrote:
> >> we have:
> >>
> >> virtual IProject* projectAt( int ) const = 0;
> >> virtual int projectCount() const = 0;
> >> virtual QList<IProject*> projects() const = 0;
> >>
> >>
> >> Do we really need all of them? I think it should be OK to drop
> >> projectAt() and
> >> projectCount() .
> >
> > Well, according to our wiki we should drop QList<IProject*> projects()
> > const;
> > http://www.kdevelop.org/mediawiki/index.php/Platform_API_TODO
> >
> > I added the two count/at methods specifically because of this note.
> >
> > Andreas
>
> We need to keep all three of them. The first two that don't return a
> list are for scripting purposes (think usage from dbus commandline)
> and the one that returns the list is for C++ usage. IMHO, requiring
> index iteration from C++ is just plain stupid when we can use iterators.
I understand what you mean. However I am not sure about the plain stupid
because the list of open project will not be very long.
Jens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20070702/34a97416/attachment.sig>
More information about the KDevelop-devel
mailing list