Re: categories in core

David Calinski <[email protected]> Sun, 12 Oct 2003 20:13:04 +0200
Newsgroups gmane.comp.tools.memaid.devel
Message-ID <[email protected]>
On Sunday 12 of October 2003 17:31, Peter Bienstman wrote:
> Would it be a good idea to have an array of category names rather than just
> one?
>
> A alternative way to accomplish that would be to have a function which sets
> a category to active or inactive. Then you can get rid of the extra
> category argument in ma_how_many_r_for_today(), etc. and the code would
> just loop over the active categories.
>
> I guess it is never saved to file which categories are active?

It's not saved...
not yet. :)

Ok, so two solutions. Both better that currently implemented. :)
(Currently only 1 category can be "active" or all have to be - it's very bad.)

So what do you think, use such functions:

ma_activate_category (char*);
ma_deactivate_category(char*);
ma_activate_all_categories();
ma_deactivate_all_categories();

... or passing an allocated array with categories to use? Or yet another way 
of doing it?

I have a blackout - I'm completely idealess when it comes to categories 
implementation.

Dave



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php