imagehandlingutilities/thumbnailmanager/inc/thumbnailmanagerconstants.h
changeset 14 2edacbf5d3f9
parent 1 235a7fc86938
child 15 7197e789b953
equal deleted inserted replaced
1:235a7fc86938 14:2edacbf5d3f9
    41 
    41 
    42 const TInt KShutdown = 0x00000001;
    42 const TInt KShutdown = 0x00000001;
    43 const TInt KMdSShutdown = 0x00000002;
    43 const TInt KMdSShutdown = 0x00000002;
    44 //used to signal from server side when it's idle
    44 //used to signal from server side when it's idle
    45 const TInt KIdle = 0x00000004;
    45 const TInt KIdle = 0x00000004;
       
    46 //daemon exposes items in processing queues
       
    47 const TInt KItemsleft = 0x00000008;
       
    48 const TInt KForceBackgroundGeneration = 0x00000010;
       
    49 const TInt KMPXHarvesting = 0x00000020;
       
    50 const TInt KDaemonProcessing = 0x00000040;
    46 
    51 
    47 //insert to temp table first wo indexing and move data to main table as batch
    52 //insert to temp table first wo indexing and move data to main table as batch
    48 const TUint KMaxBatchItems = 18;
    53 const TUint KMaxBatchItems = 36;
    49 
    54 //how many items daemon will query at once from MDS
    50 const TUint KMaxQueryItems = 1;
    55 const TUint KMaxQueryItems = 100;
    51 
    56 
    52 // maximum number of active client queue requests
    57 // maximum number of active client side queue requests
    53 const TUint KMaxClientRequests = 2;
    58 const TUint KMaxClientRequests = 2;
    54 
    59 
    55 // maximum number of active daemon requests
    60 // maximum number of active daemon requests
    56 const TUint KMaxDaemonRequests = 3;
    61 const TUint KMaxDaemonRequests = 2;
       
    62 
       
    63 const TUint KMdEReconnect = 100000; //100 ms
    57 
    64 
    58 const TUint KClientRequestTimeout = 60000000; //60 sec
    65 const TUint KClientRequestTimeout = 60000000; //60 sec
    59 const TUint KClientRequestStartErrorTimeout = 100000; //100 ms
    66 const TUint KClientRequestStartErrorTimeout = 100000; //100 ms
    60 
    67 
    61 const TUint KThumbnailServerMajorVersionNumber = 0;
    68 const TUint KThumbnailServerMajorVersionNumber = 0;
    67 //give MDS 1000 msec time to settle before starting generating TNs
    74 //give MDS 1000 msec time to settle before starting generating TNs
    68 const TInt KHarvestingCompleteTimeout = 10000000; //10 sec
    75 const TInt KHarvestingCompleteTimeout = 10000000; //10 sec
    69 
    76 
    70 const TInt KPSKeyTimeout = 10000000; //10 sec
    77 const TInt KPSKeyTimeout = 10000000; //10 sec
    71 //Store's auto flush timeout
    78 //Store's auto flush timeout
    72 const TInt KAutoFlushTimeout = 30000000; //30 sec
    79 const TInt KAutoFlushTimeout = 65; //65 sec
       
    80 
       
    81 // minimum background generation idle time seconds
       
    82 const TInt KBackgroundGenerationIdle = 60;
       
    83 // minimum store maintenance idle time seconds
       
    84 const TInt KStoreMaintenanceIdle = 300; // 5 min
       
    85 // interval for store maintenance rounds
       
    86 const TInt KStoreMaintenancePeriodic = 100000; //100 ms
       
    87 
       
    88 // maximum number of rows deleted in one transaction
       
    89 const TInt KStoreMaintenanceDeleteLimit = 10;
       
    90 // maximum number of thumbs checked for source file existance
       
    91 const TInt KStoreMaintenanceExistLimit = 50;
    73 
    92 
    74 // video decoder timeout
    93 // video decoder timeout
    75 const TInt KVideoDecoderTimeout = 5000000; // 5 seconds
    94 const TInt KVideoDecoderTimeout = 5000000; // 5 seconds
    76 
    95 
    77 const TDisplayMode KThumbnailDefaultDisplayMode = EColor64K;
    96 const TDisplayMode KThumbnailDefaultDisplayMode = EColor64K;
    81 const TDisplayMode KStoreDisplayMode = EColor16M;
   100 const TDisplayMode KStoreDisplayMode = EColor16M;
    82 
   101 
    83 //required amount of memory to keep bitmaps on RAM in bits
   102 //required amount of memory to keep bitmaps on RAM in bits
    84 const TInt KMemoryNeed = 5000000;
   103 const TInt KMemoryNeed = 5000000;
    85 
   104 
    86 const TInt64 KDiskFullThreshold = 1024*1024*1; // 1 MB
   105 const TInt64 KDiskFullThreshold = 1024*1024*10; // 10 MB
    87 
   106 
    88 _LIT( KThumbnailServerName, "ThumbnailServer" );
   107 _LIT( KThumbnailServerName, "ThumbnailServer" );
    89 _LIT( KThumbnailServerProcess, "*ThumbnailServer*" );
   108 _LIT( KThumbnailServerProcess, "*ThumbnailServer*" );
    90 _LIT( KThumbnailServerExe, "thumbnailserver.exe" );
   109 _LIT( KThumbnailServerExe, "thumbnailserver.exe" );
    91 _LIT( KThumbnailServerShutdown, "Thumbnailserver_Shutdown" );
   110 _LIT( KThumbnailServerShutdown, "Thumbnailserver_Shutdown" );
   244 
   263 
   245     /**
   264     /**
   246      * Control flags set by the server for handling specific situations
   265      * Control flags set by the server for handling specific situations
   247      * (for example for distinguishing between preview thumbnails and
   266      * (for example for distinguishing between preview thumbnails and
   248      * final thumbnails).
   267      * final thumbnails).
       
   268 	 * Control flags may be modified by server to signal client side what actually was done, like preview TN
   249      */
   269      */
   250     TThumbnailControlFlags iControlFlags;
   270     TThumbnailControlFlags iControlFlags;
       
   271     
       
   272 	
       
   273     /**
       
   274      * Original control flags set by the server for handling specific situations
       
   275      * (for example for distinguishing between preview thumbnails and
       
   276      * final thumbnails).
       
   277      */
       
   278     TThumbnailControlFlags iOriginalControlFlags;
   251     
   279     
   252     /**
   280     /**
   253      * Thumbnail's modify timestamp
   281      * Thumbnail's modify timestamp
   254      */
   282      */
   255     TInt64 iModified;
   283     TInt64 iModified;
   360      * ID and new priority value are passed as parameters.
   388      * ID and new priority value are passed as parameters.
   361      */
   389      */
   362     EChangePriority, 
   390     EChangePriority, 
   363 
   391 
   364     /**
   392     /**
   365      * Create thumbnails for a file. File path is passed as a
   393      * Deprecated
   366      * parameter.
   394      *
   367      */
   395      */
   368     ECreateThumbnails, 
   396     ECreateThumbnails, 
   369 
   397 
   370     /**
   398     /**
   371      * Delete existing thumbnails for a file. File path is passed as a
   399      * Delete existing thumbnails for a file. File path is passed as a
   515  *  @since S60 v5.0
   543  *  @since S60 v5.0
   516  */
   544  */
   517 enum TMDSQueryType
   545 enum TMDSQueryType
   518     {
   546     {
   519     /**
   547     /**
   520      * Query Id by Path
       
   521      */
       
   522     EId,
       
   523     /**
       
   524      * Query Path by Id
   548      * Query Path by Id
   525      */
   549      */
   526     EURI
   550     EURI
   527     };
   551     };
   528 
   552