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 |
73 |
80 |
74 // minimum background generation idle time seconds |
81 // minimum background generation idle time seconds |
75 const TInt KBackgroundGenerationIdle = 2; |
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; |
76 |
92 |
77 // video decoder timeout |
93 // video decoder timeout |
78 const TInt KVideoDecoderTimeout = 5000000; // 5 seconds |
94 const TInt KVideoDecoderTimeout = 5000000; // 5 seconds |
79 |
95 |
80 const TDisplayMode KThumbnailDefaultDisplayMode = EColor64K; |
96 const TDisplayMode KThumbnailDefaultDisplayMode = EColor64K; |
84 const TDisplayMode KStoreDisplayMode = EColor16M; |
100 const TDisplayMode KStoreDisplayMode = EColor16M; |
85 |
101 |
86 //required amount of memory to keep bitmaps on RAM in bits |
102 //required amount of memory to keep bitmaps on RAM in bits |
87 const TInt KMemoryNeed = 5000000; |
103 const TInt KMemoryNeed = 5000000; |
88 |
104 |
89 const TInt64 KDiskFullThreshold = 1024*1024*1; // 1 MB |
105 const TInt64 KDiskFullThreshold = 1024*1024*10; // 10 MB |
90 |
106 |
91 _LIT( KThumbnailServerName, "ThumbnailServer" ); |
107 _LIT( KThumbnailServerName, "ThumbnailServer" ); |
92 _LIT( KThumbnailServerProcess, "*ThumbnailServer*" ); |
108 _LIT( KThumbnailServerProcess, "*ThumbnailServer*" ); |
93 _LIT( KThumbnailServerExe, "thumbnailserver.exe" ); |
109 _LIT( KThumbnailServerExe, "thumbnailserver.exe" ); |
94 _LIT( KThumbnailServerShutdown, "Thumbnailserver_Shutdown" ); |
110 _LIT( KThumbnailServerShutdown, "Thumbnailserver_Shutdown" ); |
247 |
263 |
248 /** |
264 /** |
249 * Control flags set by the server for handling specific situations |
265 * Control flags set by the server for handling specific situations |
250 * (for example for distinguishing between preview thumbnails and |
266 * (for example for distinguishing between preview thumbnails and |
251 * final thumbnails). |
267 * final thumbnails). |
|
268 * Control flags may be modified by server to signal client side what actually was done, like preview TN |
252 */ |
269 */ |
253 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; |
254 |
279 |
255 /** |
280 /** |
256 * Thumbnail's modify timestamp |
281 * Thumbnail's modify timestamp |
257 */ |
282 */ |
258 TInt64 iModified; |
283 TInt64 iModified; |