1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef News_H
- #define News_H
- #include <KSGScript.h>
- #include <Animation.h>
- #include <Thread.h>
- #include <Klient.h>
- using namespace Framework;
- using namespace KSGScript;
- using namespace Network;
- class News : private Thread
- {
- private:
- KSGScriptObj *frame;
- HMODULE ksgsDll;
- Text *scriptName;
- Animation2D *laden;
- Bildschirm *screen;
- TextFeld *fehler;
- Schrift *schrift;
- int ref;
- public:
- // Konstruktor
- News( Bildschirm *zB, Schrift *zS );
- // Destruktor
- ~News();
- // nicht constant
- void rückruf( RCArray< KSGSVariable > *parameter, KSGSVariable **ret );
- void thread();
- // Reference Counting
- News *getThis();
- News *release();
- };
- class NewsKlient
- {
- private:
- int id;
- Klient *klient;
- CRITICAL_SECTION cs;
- char *schlüssel;
- char schlüsselLän;
- bool verbunden;
- int ref;
- public:
- // Konstruktor
- NewsKlient();
- // Destruktor
- ~NewsKlient();
- // nicht constant
- void lock();
- void unlock();
- bool verbinde();
- bool downloadSeite( char *name );
- bool trenne( bool abmelden );
- // Reference Counting
- NewsKlient *getThis();
- NewsKlient *release();
- };
- #endif
|