KarteEditor.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #include <Text.h>
  2. #include <Zeit.h>
  3. #include "Server.h"
  4. #ifdef WIN32
  5. #include "../../Datenbank/Datenbank.h"
  6. #include "ShopSeite/SSEditor.h"
  7. #include "Beschreibung/BeschreibungEditor.h"
  8. #include "Teams/TeamsEditor.h"
  9. #include "Dateien/DateienEditor.h"
  10. #include "EditorV/ESEditorV.h"
  11. #else
  12. #include "Datenbank.h"
  13. #include "SSEditor.h"
  14. #include "BeschreibungEditor.h"
  15. #include "TeamsEditor.h"
  16. #include "DateienEditor.h"
  17. #include "ESEditorV.h"
  18. #define HINSTANCE void*
  19. #endif
  20. using namespace Framework;
  21. using namespace Network;
  22. class KarteEditor
  23. {
  24. private:
  25. int id;
  26. Text *pfad;
  27. EdSDatenbank *db;
  28. SSEditor *shop;
  29. BeschreibungEditor *beschreibung;
  30. TeamsEditor *teams;
  31. DateienEditor *dateien;
  32. Text fehler;
  33. InitDatei *ini;
  34. ESEditorV *editor;
  35. HINSTANCE editorDll;
  36. int ref;
  37. // private
  38. int findeDateien( char *pf, RCArray< Text > *pfad );
  39. public:
  40. // Konstruktor
  41. KarteEditor( int id, EdSDatenbank *datenbank, char *pf, InitDatei *zIni );
  42. // Destruktor
  43. ~KarteEditor();
  44. // nicht constant
  45. bool getAbbildListe( RCArray< Text > *name, RCArray< Zeit > *datum );
  46. int getDateiUpdateListe( char *p, RCArray< Text > *pfad );
  47. bool abbildErstellen( char *name );
  48. bool abbildRemove( char *name );
  49. bool abbildHerstellen( char *name );
  50. bool startUpdate();
  51. bool startShopUpdate();
  52. bool prozessMessage( SKlient *zKlient );
  53. void removeError();
  54. // constant
  55. bool inUpdate() const;
  56. bool istOk() const;
  57. char *getLetzterFehler() const;
  58. char *getPfad() const;
  59. // Reference Counting
  60. KarteEditor *getThis();
  61. KarteEditor *release();
  62. };