home *** CD-ROM | disk | FTP | other *** search
- // **************************************************************************
- // Copyright 1996 David Allison
- //
- // VV VV IIIIII SSSSS TTTTTT AA
- // VV VV II SS TT AA AA
- // VV VV II SSSS TT AA AA
- // VV VV II SS TT AAAAAAAA
- // VV IIIIII SSSS TT AA AA
- //
- // MULTI-THREADED C++ WIMP CLASS LIBRARY
- // for RISC OS
- // **************************************************************************
- //
- // P U B L I C D O M A I N L I C E N C E
- // -------------------------------------------
- //
- // This library is copyright. You may not sell the library for
- // profit, but you may sell products which use it providing
- // those products are presented as executable code and are not
- // libraries themselves. The library is supplied without any
- // warranty and the copyright owner cannot be held responsible for
- // damage resulting from failure of any part of this library.
- //
- // See the User Manual for details of the licence.
- //
- // *************************************************************************
-
-
-
-
- //
- // datasave channel
- //
-
- #ifndef __datasave_h
- #define __datasave_h
-
- #ifndef __task_h
- #include "Vista:task.h"
- #endif
-
-
- //
- // datasave transeiver
- //
-
- class DataSave : public Channel
- {
- public:
- struct saveackdata
- {
- int window ;
- int icon ;
- int x ;
- int y ;
- int est_size ;
- int filetype ;
- char pathname[1] ;
- } ;
- DataSave(Task *task) ;
- virtual ~DataSave() ;
- virtual void receive (int action, int task, int my_ref, int your_ref, int data_length, void *data) = 0 ; // receive a message
- int accept (int your_ref) ; // accept a message?
- virtual void save (int window, int icon, int x, int y, char *leaf) ;
- virtual void save (char *path) ;
- void datasave (int window, int icon, int x, int y, int est_size, int filetype, char *leaf) ;
- void datasaveack (int my_ref, saveackdata *data, char *path) ;
- void dataload (int task, int my_ref, int your_ref, int data_length, void *data) ;
- void dataloadack (int task, int my_ref, int your_ref, int data_length, void *data) ;
- protected:
- int my_ref ;
- } ;
-
-
-
-
- #endif
-