AppCore
Loading...
Searching...
No Matches
ECardDataFacadeLog.h
Go to the documentation of this file.
1#ifndef ECARDDATAFACADELOG_H
2#define ECARDDATAFACADELOG_H
3
4#include "appcore/cardfacade/ECardFacadeDefines.h"
5#include "core/common/eplatform.h"
6
7class EMoneyData;
8
9namespace EM
10{
11 namespace PT
12 {
13 class EDataCollection;
14 class EAplRequest;
15 }
16
17 namespace CardFacade
18 {
19 class ECardDataStorage;
20 class DLL_API ECardDataFacadeLog
21 {
22 public:
28
34
40
44 void Clear();
45
50 bool IsModifiedData() const;
51
56 bool AddDataToWriteRequest( EM::PT::EDataCollection *writeRequest ) const;
57
63 bool AddDataTypeToReadRequest( PT::EAplRequest *readRequest[], unsigned short dataTypesOperation ) const;
64
69 bool GetTimeData( unsigned long &timeDate ) const;
70
75 bool SetTimeData( const unsigned long timeDate ) const;
76
84 bool GetNetworkID( unsigned long &networkID ) const;
85
93 bool SetNetworkID( const unsigned long networkID ) const;
94
103 bool GetServiceProvider( unsigned long &serviceProvider ) const;
104 bool SetServiceProvider( const unsigned long serviceProvider ) const;
105
109 bool GetDevice( unsigned long &device ) const;
110
114 bool SetDevice( const unsigned long device ) const;
115
119 bool GetDeviceCounter( unsigned long &deviceCounter ) const;
120
124 bool SetDeviceCounter( const unsigned long deviceCounter ) const;
125
133 bool GetPriceAmountUnit( EMoneyData &moneyData ) const;
134
142 bool SetPriceAmountUnit( const EMoneyData &moneyData ) const;
143
151 bool GetVAT( unsigned long &vat ) const;
152
160 bool SetVAT( const unsigned long vat ) const;
161
170 bool GetData( unsigned char &serviceID, unsigned char &serviceAmount, const unsigned char pos ) const;
171
180 bool SetData( const unsigned char serviceID, const unsigned char serviceAmount, const unsigned char pos ) const;
181
189 bool IsCardFeatureEnabled( const ECardFacadeDefines::LogCardFeatures feature, bool &enabled ) const;
190
195 bool GetWalletBalanceBefore( long &balanceBefore ) const;
196
201 bool SetWalletBalanceBefore( const long balanceBefore ) const;
202
207 bool GetPrice( unsigned long &price ) const;
208
213 bool SetPrice( const unsigned long price ) const;
214
225 bool GetTransactionType( unsigned long &transactionType ) const;
226
237 bool SetTransactionType( const unsigned long transactionType ) const;
238
242 bool GetWalletCounter( unsigned short &walletCounter ) const;
243
247 bool SetWalletCounter( const unsigned short walletCounter ) const;
248
255 bool GetWalletSamNumber( unsigned long &walletSamNumber ) const;
256
263 bool SetWalletSamNumber( const unsigned long walletSamNumber ) const;
264
271 bool GetWalletSamCounter( unsigned long &walletSamCounter ) const;
272
279 bool SetWalletSamCounter( const unsigned long walletSamCounter ) const;
280
281 bool IsDataValid( bool &validData ) const;
282
289 bool SetDataValid( const bool validData ) const;
290
291 private:
293
294 class DataClass;
295 DataClass *d;
296
298 };
299 }
300}
301
302#endif // ECARDDATAFACADELOG_H
#define DLL_API
Definition ECardFacadeDefines.h:8
bool GetWalletBalanceBefore(long &balanceBefore) const
Get previous wallet balance.
bool SetPriceAmountUnit(const EMoneyData &moneyData) const
set information about price amount
bool SetWalletSamCounter(const unsigned long walletSamCounter) const
Set wallet sam transaction counter.
bool GetTransactionType(unsigned long &transactionType) const
Get previous transaction type.
bool GetData(unsigned char &serviceID, unsigned char &serviceAmount, const unsigned char pos) const
get information about event data on position
bool SetWalletCounter(const unsigned short walletCounter) const
Set wallet transaction counter.
bool AddDataToWriteRequest(EM::PT::EDataCollection *writeRequest) const
ECardFacadeDefines::ReturnValues Init()
set to member actual card implementation and call init on actual implementation
bool GetDeviceCounter(unsigned long &deviceCounter) const
get device(terminal) transaction counter
bool SetDeviceCounter(const unsigned long deviceCounter) const
set device(terminal) transaction counter
bool SetTransactionType(const unsigned long transactionType) const
Set previous transaction type.
bool GetTimeData(unsigned long &timeDate) const
get information about time and date
bool AddDataTypeToReadRequest(PT::EAplRequest *readRequest[], unsigned short dataTypesOperation) const
bool SetWalletBalanceBefore(const long balanceBefore) const
Set previous wallet balance.
bool GetVAT(unsigned long &vat) const
get information about VAT
bool GetWalletSamCounter(unsigned long &walletSamCounter) const
Get wallet sam transaction counter.
bool SetTimeData(const unsigned long timeDate) const
set information about time and date
bool SetNetworkID(const unsigned long networkID) const
set information about network ID
bool SetVAT(const unsigned long vat) const
set information about VAT
bool GetServiceProvider(unsigned long &serviceProvider) const
get/set information about service provider / provider number / company number
bool SetPrice(const unsigned long price) const
Set previous ticket price.
bool SetWalletSamNumber(const unsigned long walletSamNumber) const
Set wallet sam number.
bool SetServiceProvider(const unsigned long serviceProvider) const
bool GetPriceAmountUnit(EMoneyData &moneyData) const
get information about price amount
bool SetDataValid(const bool validData) const
Set Data Validity.
bool GetWalletSamNumber(unsigned long &walletSamNumber) const
Get wallet sam number.
bool GetWalletCounter(unsigned short &walletCounter) const
Get wallet transaction counter.
bool IsCardFeatureEnabled(const ECardFacadeDefines::LogCardFeatures feature, bool &enabled) const
checks validity of selected feature
ECardDataFacadeLog(ECardDataStorage *cardDataStorage)
bool IsModifiedData() const
check in actual implementation, if data was modified
bool IsDataValid(bool &validData) const
bool GetPrice(unsigned long &price) const
Get previous ticket price.
bool SetDevice(const unsigned long device) const
set information about device(terminal)
bool SetData(const unsigned char serviceID, const unsigned char serviceAmount, const unsigned char pos) const
set information about event data on position
bool GetDevice(unsigned long &device) const
get information about device(terminal)
bool GetNetworkID(unsigned long &networkID) const
get information about network ID
card data storage, who fill if card readed
Definition ECardDataStorage.h:60
LogCardFeatures
Definition ECardFacadeDefines.h:68
ReturnValues
Definition ECardFacadeDefines.h:145
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7