52 lines
944 B
C++
52 lines
944 B
C++
#pragma once
|
|
#include "LicUtilesDef.h"
|
|
|
|
class Cb_file;
|
|
class LICUTL_EXPORT Licencia
|
|
{
|
|
public:
|
|
__int64 caducidad;
|
|
__int64 renovacion;
|
|
__int64 ultimo_acceso;
|
|
|
|
int id;
|
|
int tipo;
|
|
int permisos;
|
|
int max_user;//uso interno
|
|
int idCliente;//uso interno
|
|
int idProducto;//uso interno
|
|
int puertoServerLic;
|
|
char clave[32];
|
|
char nombre_user[32];
|
|
char idm[128];
|
|
char LicServerUrl[128];
|
|
char nombre_producto[128];
|
|
char version_producto[32];
|
|
|
|
//info instalador---------------------
|
|
int instaId;
|
|
char instaServer[128];
|
|
char instaUsu[32];
|
|
char instaKey[32];
|
|
char instaPath[256];
|
|
char instaDescrip[256];
|
|
char instaVersion[32];
|
|
|
|
Licencia(void);
|
|
~Licencia(void);
|
|
|
|
bool leeLic(Cb_file * f);
|
|
bool grabaLic(Cb_file * f);
|
|
void clear();
|
|
void set_nulls();
|
|
|
|
void* getLic( void *buf);
|
|
Licencia* setLic( void *buf);
|
|
|
|
bool fillLic(char* pathProducto = 0);
|
|
bool fillidmYuser();
|
|
private:
|
|
char* getIdm(char *buf);//buffer de tamaño 128
|
|
};
|
|
|