AppCore
Loading...
Searching...
No Matches
ELogFacade.h
Go to the documentation of this file.
1#ifndef ELOGFACADE_H
2#define ELOGFACADE_H
3
4#include <stdint.h>
5#include "appcore/cardfacade/ECardFacadeDefines.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;
21 {
22 public:
23 ELogFacade( ECardDataStorage *dataStorage );
24 virtual ~ELogFacade( );
25
26 virtual void Init();
27 virtual void Clear();
28 virtual bool IsModifiedData();
29 virtual bool AddDataToWriteRequest( EM::PT::EDataCollection *writeRequest );
30 virtual bool AddDataTypeToReadRequest( PT::EAplRequest *readRequest ) = 0;
31
32 virtual bool GetTimeDate( unsigned long &timeDate ) = 0;
33 virtual bool SetTimeDate( unsigned long timeDate ) = 0;
34
35 virtual bool GetNetworkID( unsigned long &networkID ) = 0;
36 virtual bool SetNetworkID( unsigned long networkID ) = 0;
37
38 virtual bool GetServiceProvider( unsigned long &serviceProvider ) = 0;
39 virtual bool SetServiceProvider( unsigned long serviceProvider ) = 0;
40
41 virtual bool GetDevice( unsigned long &device ) = 0;
42 virtual bool SetDevice( unsigned long device ) = 0;
43
44 virtual bool GetDeviceCounter( unsigned long &deviceCounter ) = 0;
45 virtual bool SetDeviceCounter( unsigned long deviceCounter ) = 0;
46
47 virtual bool GetPriceAmountUnit( EMoneyData &moneyData ) = 0;
48 virtual bool SetPriceAmountUnit( const EMoneyData &moneyData ) = 0;
49
50 virtual bool GetVAT( unsigned long &vat ) = 0;
51 virtual bool SetVAT( unsigned long vat ) = 0;
52
53 virtual bool GetData( unsigned char &serviceID, unsigned char &serviceAmount, unsigned char pos ) = 0;
54 virtual bool SetData( unsigned char serviceID, unsigned char serviceAmount, unsigned char pos ) = 0;
55
56 virtual bool GetWalletBalanceBefore( long &balanceBefore ) = 0;
57 virtual bool SetWalletBalanceBefore( long balanceBefore ) = 0;
58
59 virtual bool GetPrice( unsigned long &price ) = 0;
60 virtual bool SetPrice( unsigned long price ) = 0;
61
62 virtual bool GetTransactionType( unsigned long &transactionType ) = 0;
63 virtual bool SetTransactionType( unsigned long transactionType ) = 0;
64
65 virtual bool GetWalletCounter( unsigned short &walletCounter ) = 0;
66 virtual bool SetWalletCounter( unsigned short walletCounter ) = 0;
67
68 virtual bool GetWalletSamNumber( unsigned long &walletSamNumber ) = 0;
69 virtual bool SetWalletSamNumber( unsigned long walletSamNumber ) = 0;
70
71 virtual bool GetWalletSamCounter( unsigned long &walletSamCounter ) = 0;
72 virtual bool SetWalletSamCounter( unsigned long walletSamCounter ) = 0;
73
74 virtual bool IsDataValid( bool &validData ) = 0;
75 virtual bool SetDataValid( bool validData ) = 0;
76
77 bool IsCardFeatureEnabled( ECardFacadeDefines::LogCardFeatures feature, bool &enabled );
78
79 protected:
80 void SetCardFeature( uint64_t features );
81
82 private:
84
85 class DataClass;
86 DataClass *d;
87
89 };
90 }
91}
92
93#endif // ELOGFACADE_H
card data storage, who fill if card readed
Definition ECardDataStorage.h:60
LogCardFeatures
Definition ECardFacadeDefines.h:68
Definition ELogFacade.h:21
virtual bool GetPriceAmountUnit(EMoneyData &moneyData)=0
virtual bool IsModifiedData()
Definition ELogFacade.cpp:54
virtual bool SetWalletBalanceBefore(long balanceBefore)=0
virtual bool SetDataValid(bool validData)=0
virtual void Clear()
Definition ELogFacade.cpp:49
virtual bool GetDevice(unsigned long &device)=0
virtual bool GetVAT(unsigned long &vat)=0
bool IsCardFeatureEnabled(ECardFacadeDefines::LogCardFeatures feature, bool &enabled)
Definition ELogFacade.cpp:66
virtual bool GetWalletSamCounter(unsigned long &walletSamCounter)=0
virtual bool GetData(unsigned char &serviceID, unsigned char &serviceAmount, unsigned char pos)=0
virtual bool AddDataToWriteRequest(EM::PT::EDataCollection *writeRequest)
Definition ELogFacade.cpp:60
virtual bool GetTransactionType(unsigned long &transactionType)=0
virtual void Init()
Definition ELogFacade.cpp:45
virtual bool SetNetworkID(unsigned long networkID)=0
virtual bool SetPriceAmountUnit(const EMoneyData &moneyData)=0
virtual bool SetTransactionType(unsigned long transactionType)=0
virtual bool SetDevice(unsigned long device)=0
virtual bool SetPrice(unsigned long price)=0
virtual bool SetDeviceCounter(unsigned long deviceCounter)=0
virtual bool GetWalletBalanceBefore(long &balanceBefore)=0
void SetCardFeature(uint64_t features)
Definition ELogFacade.cpp:77
virtual bool GetNetworkID(unsigned long &networkID)=0
virtual bool IsDataValid(bool &validData)=0
virtual bool GetServiceProvider(unsigned long &serviceProvider)=0
virtual bool SetVAT(unsigned long vat)=0
virtual bool GetPrice(unsigned long &price)=0
virtual bool GetWalletCounter(unsigned short &walletCounter)=0
virtual bool GetWalletSamNumber(unsigned long &walletSamNumber)=0
virtual bool SetServiceProvider(unsigned long serviceProvider)=0
virtual bool SetWalletCounter(unsigned short walletCounter)=0
virtual ~ELogFacade()
Definition ELogFacade.cpp:40
virtual bool GetDeviceCounter(unsigned long &deviceCounter)=0
virtual bool SetTimeDate(unsigned long timeDate)=0
virtual bool SetData(unsigned char serviceID, unsigned char serviceAmount, unsigned char pos)=0
virtual bool AddDataTypeToReadRequest(PT::EAplRequest *readRequest)=0
virtual bool GetTimeDate(unsigned long &timeDate)=0
virtual bool SetWalletSamNumber(unsigned long walletSamNumber)=0
virtual bool SetWalletSamCounter(unsigned long walletSamCounter)=0
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7