You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.4 KiB
C++
76 lines
1.4 KiB
C++
#ifndef CDISTRIBUTOR_H
|
|
#define CDISTRIBUTOR_H
|
|
|
|
|
|
#include <QMetaType>
|
|
#include <QList>
|
|
#include <QPixmap>
|
|
|
|
|
|
class cDistributor
|
|
{
|
|
public:
|
|
cDistributor();
|
|
|
|
void setID(const qint32& id);
|
|
qint32 id();
|
|
|
|
void setName(const QString& szName);
|
|
QString name();
|
|
|
|
void setAddress(const QString& szAddress);
|
|
QString address();
|
|
|
|
void setPostalCode(const qint32& iPostalCode);
|
|
qint32 postalCode();
|
|
|
|
void setCity(const QString& szCity);
|
|
QString city();
|
|
|
|
void setCountry(const QString& szCountry);
|
|
QString country();
|
|
|
|
void setPhone(const QString& szPhone);
|
|
QString phone();
|
|
|
|
void setFax(const QString& szFax);
|
|
QString fax();
|
|
|
|
void setEMail(const QString& szEMail);
|
|
QString eMail();
|
|
|
|
void setLink(const QString& szLink);
|
|
QString link();
|
|
|
|
void setDescription(const QString& szDescription);
|
|
QString description();
|
|
|
|
void setLogo(const QPixmap& logo);
|
|
QPixmap logo();
|
|
private:
|
|
qint32 m_id;
|
|
QString m_szName;
|
|
QString m_szAddress;
|
|
qint32 m_iPostalCode;
|
|
QString m_szCity;
|
|
QString m_szCountry;
|
|
QString m_szPhone;
|
|
QString m_szFax;
|
|
QString m_szEMail;
|
|
QString m_szLink;
|
|
QString m_szDescription;
|
|
QPixmap m_logo;
|
|
};
|
|
|
|
Q_DECLARE_METATYPE(cDistributor*)
|
|
|
|
class cDistributorList : public QList<cDistributor*>
|
|
{
|
|
public:
|
|
cDistributor* add(qint32 id);
|
|
cDistributor* find(qint32 id);
|
|
cDistributor* find(const QString& szName);
|
|
};
|
|
|
|
#endif // CDISTRIBUTOR_H
|