files.cpp Cambiato il metodo TRecnotype& flags() in long& flags() files.h Vedi sopra golem.cpp Usate sempre le estensioni in minuscolo golem.h Resi pubblici i metodi goto_url e print_url viswin.cpp Usato il novello metodo goto_url al posto di notepad git-svn-id: svn://10.65.10.50/trunk@5575 c028cbd2-c16b-5b4b-a496-9718f37d4682
64 lines
1.9 KiB
C++
Executable File
64 lines
1.9 KiB
C++
Executable File
#ifndef __GOLEM_H
|
|
#define __GOLEM_H
|
|
|
|
#ifndef __STRINGS_H
|
|
#include <strings.h>
|
|
#endif
|
|
|
|
bool goto_url(const char* url);
|
|
bool print_url(const char* url);
|
|
|
|
// @doc EXTERNAL
|
|
|
|
// @class TDDE | Classe per la gestione del DDE
|
|
//
|
|
// @base public | TObject
|
|
class TDDE : public TObject
|
|
|
|
// @comm Attualmente utilizzato all'avvio di PRASSI per comunicare al Program Manager il nome
|
|
// dell'utente in modo da comunicarlo a tutti i programmi PRASSI avviati in seguito.
|
|
|
|
// @author:(INTERNAL) Guido
|
|
|
|
// @access:(INTERNAL) Private Member
|
|
{
|
|
// @cmember:(INTERNAL) Handle della finestra Windows
|
|
word _hwnd;
|
|
// @cmember:(INTERNAL) Handle della finestra del server DDE
|
|
word _server;
|
|
// @cmember:(INTERNAL) Puntatore alla funzione di gestione dei messaggi
|
|
long _old_hook;
|
|
|
|
// @access Public Member
|
|
public:
|
|
virtual bool do_initiate(word id, const TString& topic) { return FALSE; }
|
|
virtual bool do_execute(word id, const TString& cmd) { return FALSE; }
|
|
virtual bool do_ack(word id) { _server = id; return TRUE; }
|
|
virtual bool do_terminate(word id) { return FALSE; }
|
|
virtual bool do_custom_message(word msg, word wparam, long lparam) { return FALSE; }
|
|
virtual const char* get_app_name() const { return NULL; }
|
|
virtual const char* get_topics() const { return NULL; }
|
|
|
|
// @cmember Stabilisce il collegamento dell'<p app> per i <p topic> indicati
|
|
bool initiate(const char* app, const char* topic);
|
|
// @cmember Esegue il comando <p cmd>
|
|
bool execute(const char* cmd) const;
|
|
// @cmember Lancia il server ed esegue un comando
|
|
bool execute(const char* app, const char* topic, const char* cmd, const char* filename = NULL);
|
|
// @cmember Chiude la connessione
|
|
void terminate();
|
|
|
|
|
|
// @cmember Inizia a fornire i servizi di DDE server
|
|
bool start_server();
|
|
|
|
word hwnd() const { return _hwnd; }
|
|
|
|
// @cmember Costruttore
|
|
TDDE();
|
|
// @cmember Distruttore
|
|
virtual ~TDDE();
|
|
};
|
|
|
|
#endif
|