home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // Update.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
- // From: Update.pas
- //----------------------------------------------------------------------------
- #ifndef UpdateHPP
- #define UpdateHPP
- //----------------------------------------------------------------------------
- #ifndef TypInfoHPP
- #include <TypInfo.hpp>
- #endif
-
- #ifndef ClassesHPP
- #include <Classes.hpp>
- #endif
-
- #ifndef SysUtilsHPP
- #include <SysUtils.hpp>
- #endif
-
- #ifndef SystemHPP
- #include <System.hpp>
- #endif
-
- namespace Update
- {
- //-- type declarations -------------------------------------------------------
- enum TUpdateFilterState { usFilter, usReading, usWriting };
-
- class __declspec(delphiclass) TUpdateFiler;
- class __declspec(delphiclass) TUpdateObject;
- class __declspec(delphiclass) TUpdateManager;
- class __declspec(pascalimplementation) TUpdateObject : public System::TObject
- {
- typedef TUpdateObject ThisClass;
- typedef System::TObject inherited;
-
- private:
- TUpdateObject *FOwner;
- Classes::TPersistent *FObject;
- Classes::TPersistent *FAncestor;
- Classes::TComponent *FObjectOwner;
- Classes::TComponent *FAncestorOwner;
- Classes::TList *FPropList;
- Classes::TList *FChildList;
- TUpdateFiler *FUpdateFiler;
- System::Boolean FIsComponent;
- System::Boolean FIsCollection;
- System::Boolean FUpdateCollection;
- System::Boolean FUpdateOrder;
- System::Integer FOrder;
- Typinfo::TPropInfo *FPropInfo;
- System::Boolean FCompare;
- __fastcall TUpdateObject(TUpdateObject *AOwner, Classes::TPersistent *AObject, Classes::TPersistent *
- AAncestor, Typinfo::PPropInfo APropInfo, System::Boolean Compare);
- __fastcall virtual ~TUpdateObject(void);
- void __fastcall AddChild(Classes::TComponent *Component);
- System::Boolean __fastcall CanRevert(Classes::TPersistent *Instance, Typinfo::PPropInfo PropInfo, System::Boolean
- &Continue);
- Sysutils::TMethod __fastcall GetAncestorMethod(Typinfo::PPropInfo PropInfo);
- System::Pointer __fastcall GetAncestorPointer(System::Pointer Value);
- System::Pointer __fastcall GetAncestorReference(Typinfo::PPropInfo PropInfo);
- TUpdateObject *__fastcall FindChild(Classes::TComponent *Component);
- TUpdateObject *__fastcall FindChildProp(Typinfo::PPropInfo APropInfo);
- void __fastcall ComponentDelete(Classes::TComponent *AComponent);
- void __fastcall Filter(void);
- void __fastcall FilterOrder(void);
- System::Boolean __fastcall Revert(Classes::TPersistent *Instance, Typinfo::PPropInfo PropInfo);
- void __fastcall Update(TUpdateManager *UpdateManager);
- void __fastcall ValidateObjects(void);
- public:
- /* !! TObject.Create */ __fastcall TUpdateObject(void) : System::TObject() { }
-
- };
-
- class __declspec(pascalimplementation) TUpdateFiler : public Classes::TFiler
- {
- typedef TUpdateFiler ThisClass;
- typedef Classes::TFiler inherited;
-
- private:
- Classes::TStringList *FPropertyList;
- TUpdateObject *FUpdateObject;
- Classes::TWriter *FWriter;
- Classes::TReader *FReader;
- System::Boolean FFiltered;
- TUpdateFilterState FState;
- System::AnsiString FPropName;
- System::Boolean FCompare;
- System::Boolean __fastcall Empty(void);
- void __fastcall Filter(void);
- void __fastcall FilterProp(const System::AnsiString Name, System::Boolean HasData);
- void __fastcall Update(void);
-
- public:
- __fastcall TUpdateFiler(TUpdateObject *AUpdateObject, System::Boolean ACompare);
- __fastcall virtual ~TUpdateFiler(void);
- virtual void __fastcall DefineProperty(const System::AnsiString Name, Classes::TReaderProc ReadData
- , Classes::TWriterProc WriteData, System::Boolean HasData);
- virtual void __fastcall DefineBinaryProperty(const System::AnsiString Name, Classes::TStreamProc ReadData
- , Classes::TStreamProc WriteData, System::Boolean HasData);
- virtual void __fastcall FlushBuffer(void);
- };
-
- enum TUpdateMode { umNone, umUpdate, umFilter };
-
- class __declspec(pascalimplementation) TUpdateManager : public System::TObject
- {
- typedef TUpdateManager ThisClass;
- typedef System::TObject inherited;
-
- private:
- TUpdateObject *FComponentUpdate;
- Classes::TList *FChildList;
- Classes::TComponent *FComponent;
- Classes::TComponent *FAncestor;
- TUpdateManager *FParent;
- TUpdateMode FMode;
- Classes::TList *FUpdateList;
- Classes::TNotifyEvent FOnUpdating;
- Classes::TNotifyEvent FOnUpdate;
- void __fastcall Filter(void);
- System::Boolean __fastcall GetHasDescendents(void);
- System::Boolean __fastcall GetIsDescendent(void);
- void __fastcall UpdateChildren(void);
- void __fastcall SetChildAncestor(Classes::TComponent *Child);
- void __fastcall Updating(Classes::TComponent *Component);
-
- public:
- __fastcall TUpdateManager(Classes::TComponent *AComponent, Classes::TComponent *AAncestor, TUpdateManager *
- AAncestorManager);
- __fastcall virtual ~TUpdateManager(void);
- System::Boolean __fastcall CanRevert(Classes::TPersistent *Instance, Typinfo::PPropInfo PropInfo);
- void __fastcall Notification(Classes::TComponent *AComponent, Classes::TOperation Operation);
- void __fastcall Modified(void);
- System::Boolean __fastcall NameExists(const System::AnsiString Name);
- void __fastcall Revert(Classes::TPersistent *Instance, Typinfo::PPropInfo PropInfo);
- void __fastcall Update(void);
- __property Classes::TNotifyEvent OnUpdating = {read=FOnUpdating, write=FOnUpdating};
- __property Classes::TNotifyEvent OnUpdate = {read=FOnUpdate, write=FOnUpdate};
- __property Classes::TComponent * Component = {read=FComponent, nodefault};
- __property Classes::TComponent * Ancestor = {read=FAncestor, nodefault};
- __property System::Boolean HasDescendents = {read=GetHasDescendents, nodefault};
- __property System::Boolean IsDescendent = {read=GetIsDescendent, nodefault};
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Update */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Update;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // Update
-