#ifndef SSALIBMAN_H #define SSALIBMAN_H #include "auth.h" #define IFF_SEP "|" #define IFF_VERIFICAMODULO "VM" #define IFF_LOGIN "LI" #define IFF_APRIMODULO "AM" #define IFF_CHIUDIMODULO "CM" #define IFF_LOGOUT "LO" #define IFF_PING "PG" #define IFF_GETXMLPRODOTTI "XMLP" #define IFF_GETXMLUTENTI "XMLU" #define IFF_GETID "ID" #define IFF_GETNUMSERIE "NS" #define IFF_DATASCADENZA "DS" #define IFF_NUMMAXUTE "NU" class SSALibMan { private: static SSALibMan* __inst; protected: int m_lastError; public: static SSALibMan* getInst(); static SSALibMan* getInstClient(); public: const char* DecodificaUltimoErrore(); virtual int VerificaModulo(const char* prodotto, const char* modulo) = 0; virtual int VerificaModulo(const char* prodotto, const char* modulo, const char* piva) = 0; virtual int Login(const char* idClient, const char* prodotto) = 0; virtual int Login(const char* idClient, const char* prodotto, const char* piva) = 0; virtual int ApriModulo(const char* idClient, const char* modulo) = 0; virtual int ChiudiModulo(const char* idClient, const char* modulo) = 0; virtual int Logout(const char* idClient, const char* prodotto) = 0; virtual int Ping(const char* idClient) = 0; virtual int XMLProdottiConfigurati(char* buf, int bufSize) =0; virtual int XMLUtentiCorrenti(char* buf, int bufSize) =0; virtual int Id(char* buf, int bufSize) =0; virtual int NumeroSerie(const char* prodotto) =0; virtual int DataScadenza(const char* prodotto, const char* modulo) =0; virtual int NumMaxUtenti(const char* prodotto, const char* modulo) =0; private: static void createInst(); static void createInstClient(); }; #endif