1997-09-30 09:34:49 +00:00
|
|
|
#ifndef __BA1500_H__
|
|
|
|
#define __BA1500_H__
|
|
|
|
|
1998-02-17 11:23:40 +00:00
|
|
|
#ifndef __DONGLE_H
|
|
|
|
#include <dongle.h>
|
1996-05-28 09:39:05 +00:00
|
|
|
#endif
|
|
|
|
|
1997-12-15 15:11:40 +00:00
|
|
|
const int MAX_AUT = 48 * 3;
|
1997-09-30 09:34:49 +00:00
|
|
|
|
1996-05-28 09:39:05 +00:00
|
|
|
class TInformazione_moduli : public TObject
|
|
|
|
{
|
|
|
|
TString_array _infos;
|
1997-09-30 09:34:49 +00:00
|
|
|
int _index[MAX_AUT];
|
1996-05-28 09:39:05 +00:00
|
|
|
int _unassigned_modules; // Moduli non assegnati, con descrizione vuota
|
|
|
|
|
|
|
|
public:
|
1997-12-15 15:11:40 +00:00
|
|
|
const char* get_description_by_order(int index);
|
1999-04-06 15:34:39 +00:00
|
|
|
const char* get_description_by_name(const char* name) const;
|
|
|
|
|
1997-12-15 15:11:40 +00:00
|
|
|
const char* get_name_by_order(int index);
|
|
|
|
int get_module_by_order(int index);
|
|
|
|
const char* get_description(int module);
|
|
|
|
const char* get_name(int module);
|
1999-04-06 15:34:39 +00:00
|
|
|
|
|
|
|
int get_index(int module) const;
|
|
|
|
int get_index_by_name(const char* name) const;
|
|
|
|
|
1998-02-17 11:23:40 +00:00
|
|
|
TDongleType get_owner(int module) const;
|
|
|
|
bool test_owner(int module, TDongleType owner) const;
|
1997-12-15 15:11:40 +00:00
|
|
|
int unassigned() const { return _unassigned_modules; }
|
|
|
|
int items() const { return _infos.items(); }
|
|
|
|
TInformazione_moduli();
|
|
|
|
virtual ~TInformazione_moduli() {};
|
1996-05-28 09:39:05 +00:00
|
|
|
};
|
|
|
|
|
2002-05-27 13:16:06 +00:00
|
|
|
bool update_dninst(bool force);
|
2001-06-25 10:41:20 +00:00
|
|
|
bool update_assistance_year();
|
|
|
|
|
1997-09-30 09:34:49 +00:00
|
|
|
#endif
|