-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforma.h
41 lines (33 loc) · 867 Bytes
/
forma.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef FORMA_H
#define FORMA_H
#include <objetopersistente.h>
/**
* @author Josue Benjamin Arambide Quispe
* @file forma.h
* @class Forma
* @brief Es la clase que representa la Forma de los productos en la optica
* Esta clase cuenta con caracteristicas como id, nombre y descripsion las
* cuales estan almacenadas en la base de datos como la tabla "Forma"
*/
class Forma: public ObjetoPersistente
{
private:
int id;
QString nombre;
public:
Forma(int _id,QString _nombre);
Forma(QString _nombre);
Forma();
Forma(int _id);
static QList<Forma*> listar();
static QSqlQueryModel* listarNombres();
int getId();
QString getNombre();
void setId(int _id);
void setNombre(QString _nombre);
bool existente(QString _nombre);
bool agregar();
bool actualizar();
bool eliminar();
};
#endif // FORMA_H