460 const TDesC8& aNodeName, |
460 const TDesC8& aNodeName, |
461 const TDesC8& aAttrName, |
461 const TDesC8& aAttrName, |
462 const TDesC8& aAttrValue ); |
462 const TDesC8& aAttrValue ); |
463 |
463 |
464 /** |
464 /** |
465 * Retrieves a filename from a file declaration. |
465 * Retrieves filename from a logo declaration. |
466 * @since S60 5.1 |
466 * @since S60 5.2 |
467 * @param aFileDeclaration "SKIN():MIF()", "MIF()", "UID()" or "file.ext" string |
467 * @param aFileDeclaration "SKIN():MIF()", "MIF()", "UID()" or "file.ext" string |
468 * @param aFilename Referred file name or NULL |
468 * @param aFilename Referred file name or NULL |
469 * @return True if a file was referred from the declaration |
469 * @return True if a file was referred from the declaration |
470 */ |
470 */ |
471 static TBool hspsServerUtil::IsFile( |
471 static TBool IsLogoFile( |
472 const TDesC& aFileDeclaration, |
472 const TDesC& aFileDeclaration, |
473 TFileName& aFilename ); |
473 TFileName& aFilename ); |
474 |
474 |
475 /** |
475 /** |
476 * Resolve resource files that need to be copied. |
476 * Resolve resource files that need to be copied. |
540 static TInt FindFile( |
540 static TInt FindFile( |
541 RFs& aFs, |
541 RFs& aFs, |
542 const TDesC& aPath, |
542 const TDesC& aPath, |
543 const TDesC& aFilename, |
543 const TDesC& aFilename, |
544 TFileName& aDrivePathName ); |
544 TFileName& aDrivePathName ); |
|
545 |
|
546 /** |
|
547 * Resolves icon path information from the provided logo declaration. |
|
548 * Example: |
|
549 * Decl. = "mif(536999050\270513751\268475903\1.0\sources\icon.mif)" |
|
550 * Source = "c\private\200159c0\themes\536999050\270513751\268475903\1.0\sources\icon.mif" |
|
551 * Target = "c\private\102750f0\536999050\270513751\268475903\1.0\sources\icon.mif" |
|
552 * Up.decl = "mif(c\private\102750f0\536999050\270513751\268475903\1.0\sources\icon.mif)" |
|
553 * @since S60 5.2 |
|
554 * @param aLogoDeclaration Skin():mif(), mif(), uid(), icon.mif declaration |
|
555 * @param aAppUid Identifies the private directory where the logo file is copied to |
|
556 * @param aTargetPath Empty or location of the target file |
|
557 * @param aSourcePath Empty or location of the source file |
|
558 * @param aUpdatedDeclaration Empty or declaration which points to the target location |
|
559 */ |
|
560 static void PopulateLogoPathsL( |
|
561 const TDesC& aLogoDeclaration, |
|
562 const TUint aAppUid, |
|
563 RBuf& aTargetPath, |
|
564 RBuf& aSourcePath, |
|
565 RBuf& aUpdatedDeclaration ); |
|
566 |
|
567 /** |
|
568 * Finds ecplised files from the provided path in given drive order. |
|
569 * @since S60 5.2 |
|
570 * @param aFs is a reference to open file server session handle |
|
571 * @param aDriveArray An array of drives in search order |
|
572 * @param aPath Relative path to be found |
|
573 * @param aFolders Search results or empty |
|
574 * @param aRecursive True if files should be found from any sudirectories |
|
575 */ |
|
576 static void FindFilesRecursivelyL( |
|
577 RFs& aFs, |
|
578 const RArray<TInt>& aDriveArray, |
|
579 const TDesC& aPath, |
|
580 RPointerArray<HBufC>& aFolders, |
|
581 TBool aRecursive = EFalse ); |
545 |
582 |
546 private: |
583 private: |
547 /** |
584 /** |
548 * Internal method. Do not call directly! |
585 * Internal method. Do not call directly! |
549 * |
586 * |