Prozess.h 784 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include "../../../../../Klient/Include/KSGKlientV.h"
  3. #include <Thread.h>
  4. using namespace Framework;
  5. class ProzessReturn
  6. {
  7. public:
  8. virtual void prozessEnd( int aktion, bool erfolg, Array< void* > &args ) = 0;
  9. };
  10. class Prozess : public Thread
  11. {
  12. private:
  13. EditorKlientV *k;
  14. int ak;
  15. Array< void* > *args;
  16. ProzessReturn *ret;
  17. int ref;
  18. public:
  19. // Konstruktor
  20. Prozess( EditorKlientV *klient, int aktion, Array< void* > *args, ProzessReturn *r );
  21. // Destruktor
  22. ~Prozess();
  23. // nicht constant
  24. void thread() override;
  25. // Reference Counting
  26. Prozess *getThis();
  27. Prozess *release();
  28. private:
  29. void init(); // aktion = 0
  30. void sitzungWiederherstellen(); // aktion = 1
  31. void sitzungVerwerfen(); // aktion = 3
  32. };