Homer Library
HomerFilter
HomerFilter::HomerFilter()
Sets the name to NULL.
HomerFilter::~HomerFilter();
Deletes the name if non NULL
char* GetName() const;
void SetName(const char* name);
Returns or sets the name of the filter. When setting the name, the former name is deleted if any.
BView* DefaultFilterView(const char* label)
This constructs the default filter view (that is, a view without any parameter of any type) with a simple text label.
virtual BView* FilterView()
This methods constructs and returns an instance of the filter view. It is used in HomerEditor to set the filters parameters. By default, this methods uses return the result of DefaultFilterView("accept"). This method mustn't fail (by returning NULL).
virtual status_t GetConfig(BMessage* config, BView* filter_view);
This retrieves the parameter values from filter_view to the config container. By default, this method does nothing and returns B_OK.
virtual status_t SetConfig(BMessage* config, BView* filter_view);
This set the parameters for filter_view base on the information contained in config
virtual bool Accepts(entry_ref entry, BMessage* config, BLooper* msg_target);
This actually computes whether the entry is accepted or not. The parameters are taken from config. If any message has to be sent, msg_target is used. See the part of the Homer library which deals messages.
extern char HOMER_SYMBOL addonName[];
extern char HOMER_SYMBOL addonVersion[];
extern char HOMER_SYMBOL addonAuthor[];
extern char HOMER_SYMBOL addonEmail[];
extern "C" HOMER_SYMBOL HomerFilter* instantiate_filter();
These symbols are required so that the filter add-ons are recognized by Homer.
This page was last updated on 12/12/99.