Go to the documentation of this file.00001
00004 #ifndef BPSBARCODE_H
00005 #define BPSBARCODE_H
00006
00007 #include "bpscore_global.h"
00008 #include <QMap>
00009
00010 class BpsDatastore;
00011 class QStringList;
00012
00052 class BPSCORE_EXPORT BpsBarcode
00053 {
00054 BPS_PRIVATE(BpsBarcode)
00055
00056 public:
00060 enum Function {
00061 SSCC = 0,
00062 LotID = 100,
00063 StockLocation = 200,
00064 ArticleCU = 300,
00065 ArticleTU = 301,
00066 ArticleLU = 302,
00067 Partner = 400,
00068 ShipToPartner = 401,
00069 BillToPartner = 402,
00070 SellingPartner = 403,
00071 DeliveringPartner = 404,
00072 InvoicingPartner = 405
00073 };
00074
00078 static QList<BpsBarcode::Function> partnerFunctions();
00079
00083 BpsBarcode(BpsDatastore* aDatastore);
00084
00090 BpsBarcode(BpsDatastore* aDatastore, char aCode, const QString& aData);
00091
00097 BpsBarcode(BpsDatastore* aDatastore, const QString& aName, const QString& aData);
00098
00103 BpsBarcode(const BpsBarcode& aOther);
00104
00106 ~BpsBarcode();
00108
00112 static QMap<char,QStringList> codeNames();
00113
00117 char code() const;
00118
00123 void setCode(char aCode);
00124
00129 void setName(const QString& aName);
00130
00134 QStringList names() const;
00135
00140 QStringList names(Function aFunction) const;
00141
00145 QString data() const;
00146
00152 QString data(Function aFunction, bool aForLookup) const;
00153
00158 void setData(const QString& aData);
00159
00160 };
00161
00162 #endif // BPSBARCODE_H