-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharticle.h
56 lines (46 loc) · 1.45 KB
/
article.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef ARTICLE_H
#define ARTICLE_H
#include "QFile"
#include "QVector"
#include "QPair"
class article {
public:
article(){}
article(int type,QString name,QString image_file , QString Seller_username , QString Brand_name , QString Color , int Weight , int Price , int Stock=0);
void set(int type,QString name,QString image_file , QString Seller_username , QString Brand_name , QString Color , int Weight , int Price , int Stock , int id , int number_sold=0 ) ;
void set_stock(int x);
void set_Price(int x);
void set_number_sold(int x);
QString get_image_file();
QString get_seller_username();
QString get_brand_name();
QString get_color();
int get_weight();
int get_price();
int get_stock();
int get_id();
int get_number_sold();
int get_type();
QString get_name();
void setImage_File(const QString &newImage_File);
void setName(const QString &newName);
void setSeller_username(const QString &newSeller_username);
void setBrand_name(const QString &newBrand_name);
void setColor(const QString &newColor);
int getIndex_vector() const;
void setIndex_vector(int newIndex_vector);
protected:
int type;//0 for cloths 1 for sporting_goods
QString name;
QString image_File;
QString seller_username;
QString brand_name;
QString color;
int weight;
int price;
int stock;
int id;
int number_sold;
int index_vector;
};
#endif // ARTICLE_H