SyncAdapter(M) / inc /

sync-adapter-app.h

  1. #ifndef __SYNC_ADAPTER_H__
  2. #define __SYNC_ADAPTER_H__
  3.  
  4. #include <tizen.h>
  5. #include <account.h>
  6. #include <app.h>
  7. #include <bundle.h>
  8. #include <dlog.h>
  9. #include <efl_extension.h>
  10. #include <system_settings.h>
  11.  
  12. /* Sync Adapter application ID for removing account ID */
  13. #define SYNC_ADAPTER_APP_ID "org.example.syncadapter.ui"
  14.  
  15. /*
  16. * Sync Adapter Service application ID for registering
  17. * the Sync Adapter Service as a sync-adapter
  18. */
  19. #define SYNC_ADAPTER_SERVICE_APP_ID "org.example.syncadapter.service"
  20.  
  21. /*
  22. * Package name can coupling the applications,
  23. * Sync Adapter and Sync Adapter Service
  24. */
  25. #if !defined(PKG_NAME)
  26. #define PKG_NAME "org.example.syncadapter"
  27. #endif
  28.  
  29. /* User name for querying account handle */
  30. #define USER_NAME "SyncAdapter"
  31.  
  32. /* Log tag for printing logs of Sync Adapter */
  33. #ifdef LOG_TAG
  34. #undef LOG_TAG
  35. #endif
  36. #define LOG_TAG "SyncAdapter"
  37.  
  38. /* Edje file for drawing UI */
  39. #define EDJ_FILE "edje/syncadapter.edj"
  40.  
  41. #define GRP_MAIN "main"
  42.  
  43. /* Set timer for showing pop-up as 2 seconds */
  44. #define TIME_FOR_POPUP 2
  45.  
  46. /* Set pop-up size */
  47. #define SIZE_OF_POPUP 256
  48.  
  49. /* The line of genlist */
  50. #define NUM_OF_ITEMS 4
  51.  
  52. /* The number of sync jobs */
  53. #define NUM_OF_SYNC_JOB 3
  54.  
  55. /* The number of periodic intervals */
  56. #define NUM_OF_INTERVAL 7
  57.  
  58. /* The number of capabilities for data change sync */
  59. #define NUM_OF_CAPABILITY 6
  60.  
  61. /* The number of sync options */
  62. #define NUM_OF_OPTION 4
  63.  
  64. /* Maximum number of genlist lines */
  65. #define MAX_NUM_LINE 10
  66.  
  67. /* Maximum number of sync jobs which can be registered */
  68. #define MAX_NUM 10
  69.  
  70. /* Maximum size of the name of displayed menu */
  71. #define MAX_SIZE 50
  72.  
  73. #endif /* __SYNC_ADAPTER_H__ */