12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef LTSKlient_H
- #define LTSKlient_H
- #include <Klient.h>
- #include <Text.h>
- using namespace Network;
- using namespace Framework;
- class LTSKlient : public virtual ReferenceCounter
- {
- protected:
- SSLKlient *k;
- CRITICAL_SECTION cs;
- Text *fehler;
- Text *ip;
- int port;
- bool verbunden;
- bool eingeloggt;
- public:
- // Konstruktor
- LTSKlient( const char *ip, int port );
- // Destruktor
- ~LTSKlient();
- // nicht constant
- void lock();
- void unlock();
- bool verbinden();
- bool login( const char *name, const char *passwort );
- bool logout();
- int getStatus();
- bool stop();
- bool pause();
- bool fortsetzen();
- bool start();
- bool setMaxTasks( int maxC );
- bool beenden();
- bool terminieren();
- bool trenne();
- void abbruch();
- // constant
- bool istVerbunden() const;
- bool istEingeloggt() const;
- const char *getLetzterFehler() const;
- SSLKlient *zKlient() const;
- };
- #endif
|