123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef PSKlient_H
- #define PSKlient_H
- #include <Klient.h>
- #include <KSGTDatei.h>
- #include <Fortschritt.h>
- using namespace Network;
- using namespace Framework;
- class PSKlient
- {
- private:
- int id;
- Klient *klient;
- CRITICAL_SECTION cs;
- char *schlüssel;
- char schlüsselLän;
- bool verbunden;
- Text *fehler;
- int ref;
- public:
-
- PSKlient();
-
- ~PSKlient();
-
- void lock();
- void unlock();
- bool verbinde();
- bool verbinde( int port, const char *ip );
- KSGTDatei *getDateiGruppenListe();
- KSGTDatei *getDateiListe( int gruppe );
- __int64 getDateiGröße( int gruppe, const char *pfad );
- bool downloadDatei( int gruppe, __int64 *start, const char *pfad, const char *zielPfad, FBalken *zFb, bool *abbruch, int maxbps );
- bool trenne( bool abmelden );
-
- bool istVerbunden() const;
- bool istRegistriert() const;
- int getDownload() const;
- Text *zError() const;
-
- PSKlient *getThis();
- PSKlient *release();
- };
- #endif
|