clientservercommon.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef CLIENTSERVERCOMMON_H
  2. #define CLIENTSERVERCOMMON_H
  3. #include <e32base.h>
  4. #include <s32strm.h>
  5. // CONSTANTS
  6. _LIT( KIAPServerName,"QIAPServer" ); // Server name
  7. _LIT( KIAPServerFileName,"QIAPServer.exe" ); // Server name
  8. _LIT( KIAPServerSemaphoreName, "IAPServerSemaphore" );
  9. const TUid KServerUid3 = {0x2005E5EA};
  10. // The server version. A version must be specified when
  11. // creating a session with the server.
  12. const TUint KIAPServMajorVersionNumber=0;
  13. const TUint KIAPServMinorVersionNumber=1;
  14. const TUint KIAPServBuildVersionNumber=1;
  15. // DATA TYPES
  16. // Opcodes used in message passing between client and server
  17. enum TIAPServRqst
  18. {
  19. EIAPServPurcase,
  20. EIAPServProductData,
  21. EIAPServUserAndData
  22. };
  23. // Product data transfer class
  24. class TProductData
  25. {
  26. public:
  27. TBuf8<20> productInformation; //displayname OVI https://publish.ovi.com/content_items/
  28. //Format 2-16 alphanumerical characters
  29. TBuf8<500> description;
  30. TBuf8<30> shortDescription;
  31. TBuf8<6> price;
  32. TBuf8<10> productId;
  33. TInt appWinGroup; // client application window group
  34. };
  35. // other IAP requests data transfer class
  36. class TIAPrequestData
  37. {
  38. public:
  39. TBuf8<2000> payload; // can contain auth digest or purchase ticket
  40. TInt appWinGroup; // client application window group
  41. };
  42. #endif // CLIENTSERVERCOMMON_H