messagingfw/senduiservices/inc/SendUiUtils.h
branchRCL_3
changeset 22 d2c4c66342f3
parent 21 e5b3a2155e1a
child 23 d51193d814ea
equal deleted inserted replaced
21:e5b3a2155e1a 22:d2c4c66342f3
     1 /*
       
     2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Provides functionality for searching DRM content link.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef SENDUIUTILS_H
       
    22 #define SENDUIUTILS_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <f32file.h>
       
    27 #include <apmstd.h>
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  Provides functionality for searching DRM content link.
       
    33 *
       
    34 *  @lib SenduiDataUtils.lib
       
    35 *  @since Series 60 3.0
       
    36 */
       
    37 NONSHARABLE_CLASS ( SendUiUtils )
       
    38     {
       
    39     public: // New functions
       
    40 
       
    41     
       
    42        /**
       
    43         * Searches for drm link content in a file
       
    44         *
       
    45         * @since S60 v3.0
       
    46         * @param aFilePath File to check
       
    47         * @param aFs File server session
       
    48         * @return ETrue if Content URL exists,
       
    49         *         EFalse otherwise
       
    50         */
       
    51         static RFile OpenFileHandleL( const TDesC& aFilePath, RFs& aFs );
       
    52 
       
    53        /**
       
    54         * Searches for drm link content in a file handle
       
    55         *
       
    56         * @since S60 v3.0
       
    57         * @param aFile File to check
       
    58         * @return ETrue if Content URL exists,
       
    59         *         EFalse otherwise
       
    60         */
       
    61         static TBool HasContentUrlL( RFile& aFile );
       
    62         
       
    63         /**
       
    64         *
       
    65         */
       
    66         static void ResolveMimeTypeL( const RFile& aFile, TDataType& aMimeType );
       
    67 
       
    68     };
       
    69 
       
    70 #endif      // SENDUIUTILS_H   
       
    71             
       
    72 // End of File