1 #ifndef __SERVER_PICTURE_H 2 #define __SERVER_PICTURE_H 3 4 #include <DataIO.h> 5 6 #include <PictureDataWriter.h> 7 8 class ServerApp; 9 class ViewLayer; 10 class BPrivate::LinkReceiver; 11 class ServerPicture : public PictureDataWriter { 12 public: 13 int32 Token() { return fToken; } 14 15 void EnterStateChange(); 16 void ExitStateChange(); 17 18 void EnterFontChange(); 19 void ExitFontChange(); 20 21 void SyncState(ViewLayer *view); 22 23 void Play(ViewLayer *view); 24 25 const void *Data() const { return fData.Buffer(); } 26 int32 DataLength() const { return fData.BufferLength(); } 27 28 status_t ImportData(BPrivate::LinkReceiver &link); 29 30 private: 31 friend class ServerApp; 32 33 ServerPicture(); 34 ServerPicture(const ServerPicture &); 35 ~ServerPicture(); 36 37 int32 fToken; 38 BMallocIO fData; 39 // DrawState *fState; 40 }; 41 42 #endif // __SERVER_PICTURE_H 43