KarteEditor.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 : public virtual ReferenceCounter
  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. // private
  37. int findeDateien( char *pf, RCArray< Text > *pfad );
  38. public:
  39. // Konstruktor
  40. KarteEditor( int id, EdSDatenbank *datenbank, char *pf, InitDatei *zIni );
  41. // Destruktor
  42. ~KarteEditor();
  43. // nicht constant
  44. bool getAbbildListe( RCArray< Text > *name, RCArray< Zeit > *datum );
  45. int getDateiUpdateListe( char *p, RCArray< Text > *pfad );
  46. bool abbildErstellen( char *name );
  47. bool abbildRemove( char *name );
  48. bool abbildHerstellen( char *name );
  49. bool startUpdate();
  50. bool startShopUpdate();
  51. bool prozessMessage( SKlient *zKlient );
  52. void removeError();
  53. // constant
  54. bool inUpdate() const;
  55. bool istOk() const;
  56. char *getLetzterFehler() const;
  57. char *getPfad() const;
  58. };