CEventList



Storage for event descriptions of some entity(form, control,...). It is used in packages.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class CEventList :public virtual IEventList
{
public:
    IPackage *getPackage() override;
    IClass *getParent() override;
    int getCount() override;
    IEvent *getEvent(const int index) override;
    IEvent *getEvent(const String &name) override;
    // Since 6.0.0 

    IPackageEntity *getEntity() override;

    void Release() override;
    void Save(Variant &dest) override;
    void Load(const Variant &src) override;
    void Export(std::wofstream &f, const String &shift, const String &owner, const String &form, const String &dialog_box) override;

    CEventList(IPackage *package, IClass *parent, IPackageEntity *entity); // Create empty event list
    virtual ~CEventList();

    void Add(IEvent *item); // Add event
    void Delete(const int index); // Delete event by index
    void Delete(IEvent *item); // Delete event
    void Delete(const String &name); // Delete event by name
    void Clear(); // Delete all events
};
Namespace: nitisa
Include: Nitisa/Core/EventList.h