AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
7 class EMoneyData;
8 
9 namespace 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:
27  ECardDataFacadeLog( ECardDataStorage *cardDataStorage );
28 
33  virtual ~ECardDataFacadeLog();
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
LogCardFeatures
Definition: ECardFacadeDefines.h:67
ReturnValues
Definition: ECardFacadeDefines.h:144
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
void SetPrice(unsigned long value)
__ECLASS DataClass
Definition: EEventUpdateCustomerData.h:35
unsigned long GetPrice()
#define DLL_API
Definition: ECardFacadeDefines.h:8
SYSTEM INCLUDES.
Definition: CardFacadeManagerXML.h:6
void Init(__ESTRING path)