imagehandlingutilities/thumbnailmanager/inc/thumbnailmanagerconstants.h
branchRCL_3
changeset 28 ff2fb7658ff7
parent 24 f0aa341a25bf
child 37 f759b6186ab5
equal deleted inserted replaced
24:f0aa341a25bf 28:ff2fb7658ff7
    67 const TUint KMaxQueryItems2 = 100;
    67 const TUint KMaxQueryItems2 = 100;
    68 
    68 
    69 // maximum number of active client side queue requests
    69 // maximum number of active client side queue requests
    70 const TUint KMaxClientRequests = 2;
    70 const TUint KMaxClientRequests = 2;
    71 
    71 
       
    72 #ifdef __RETRY_ON_SERVERCRASH
       
    73 // maximum number of request retry
       
    74 const TUint KMaxRequestRetryCount = 2;
       
    75 #endif
       
    76 
    72 // maximum number of active daemon requests
    77 // maximum number of active daemon requests
    73 const TUint KMaxDaemonRequests = 2;
    78 const TUint KMaxDaemonRequests = 2;
    74 
    79 
    75 const TUint KMdEReconnect = 100000; //100 ms
    80 const TUint KMdEReconnect = 1*1000*1000; //1 second
       
    81 
       
    82 const TUint KUnmountTimerTimeout = 5*1000*1000; //5 seconds
    76 
    83 
    77 const TUint KClientRequestTimeout = 60000000; //60 sec
    84 const TUint KClientRequestTimeout = 60000000; //60 sec
    78 const TUint KClientRequestStartErrorTimeout = 100000; //100 ms
    85 const TUint KClientRequestStartErrorTimeout = 100000; //100 ms
    79 
    86 
    80 const TUint KThumbnailServerMajorVersionNumber = 0;
    87 const TUint KThumbnailServerMajorVersionNumber = 0;
    81 const TUint KThumbnailServerMinorVersionNumber = 1;
    88 const TUint KThumbnailServerMinorVersionNumber = 1;
    82 const TUint KThumbnailServerBuildVersionNumber = 1;
    89 const TUint KThumbnailServerBuildVersionNumber = 1;
    83 
    90 
    84 const TInt KThumbnailErrThumbnailNotFound = -62000;
    91 const TInt KThumbnailErrThumbnailNotFound = -62000;
    85 
    92 
    86 //give MDS 1000 msec time to settle before starting generating TNs
    93 //give MDS some to settle before starting generating TNs
    87 const TInt KHarvestingCompleteTimeout = 10000000; //10 sec
    94 const TInt KHarvestingCompleteTimeout = 10000000; //10 sec
       
    95 
       
    96 //after MMC mount wait while before count is calculated
       
    97 const TInt KMountTimeout = 5*1000*1000; //5 sec
    88 
    98 
    89 const TInt KPSKeyTimeout = 10000000; //10 sec
    99 const TInt KPSKeyTimeout = 10000000; //10 sec
    90 //Store's auto flush timeout
   100 //Store's auto flush timeout
    91 const TInt KAutoFlushTimeout = 65; //65 sec
   101 const TInt KAutoFlushTimeout = 65; //65 sec
    92 
   102 
   485 	* Stantard JPEG
   495 	* Stantard JPEG
   486 	*/
   496 	*/
   487     EThumbnailFormatJpeg
   497     EThumbnailFormatJpeg
   488     };
   498     };
   489 
   499 
   490 struct TThumbnailDatabaseData
       
   491     {
       
   492 public:
       
   493     /**
       
   494     * Full path to object to which the imported thumb is to be linked.
       
   495     */
       
   496     TPath iPath;
       
   497     /**
       
   498     * Thumbnail ID
       
   499     */      
       
   500     TInt iTnId;
       
   501     /**
       
   502     * Requested thumbnail size new requests.
       
   503     */
       
   504     TInt iSize;
       
   505     /**
       
   506     * type of data
       
   507     */ 
       
   508     TInt iFormat;
       
   509     /**
       
   510     * Path for the thumbnails
       
   511     */  
       
   512     TPath iTnPath;
       
   513     /**
       
   514     * Data if bitmap
       
   515     */  
       
   516     CFbsBitmap* iBlob;
       
   517     /**
       
   518     * Data if jpeg
       
   519     */
       
   520     TDesC8* iData;
       
   521    /**
       
   522     * Width of thumbnail
       
   523     */  
       
   524     TInt iWidth;
       
   525     /**
       
   526     * Height of thumbnail
       
   527     */  
       
   528     TInt iHeight;
       
   529     /**
       
   530     * Original width of thumbnail
       
   531     */  
       
   532     TInt iOrigWidth;
       
   533     /**
       
   534     * Original height of thumbnail
       
   535     */  
       
   536     TInt iOrigHeight;
       
   537     /**
       
   538     * flags
       
   539     */  
       
   540     TInt iFlags;
       
   541     /**
       
   542     * videoposition
       
   543     */
       
   544     TInt iVideoPosition;
       
   545     /**
       
   546     * thumb oritentation
       
   547     */  
       
   548     TInt iOrientation;
       
   549     /**
       
   550     * Thumb created from associated path
       
   551     */  
       
   552     TInt iThumbFromPath;
       
   553     /**
       
   554     * last modified
       
   555     */
       
   556     TInt64 iModified;
       
   557     
       
   558     };
       
   559 
   500 
   560 /**
   501 /**
   561  *  MDS query modes used during thumbnail generation
   502  *  MDS query modes used during thumbnail generation
   562  *
   503  *
   563  *  @since S60 v5.0
   504  *  @since S60 v5.0