messagingapp/msgui/msguiutils/inc/msgmediautil.h
changeset 72 6f657153cbc5
parent 25 84d9eb65b26f
child 73 ecf6a73a9186
equal deleted inserted replaced
70:a15d9966050f 72:6f657153cbc5
    16  */
    16  */
    17 
    17 
    18 #ifndef MSG_MEDIA_UTIL_H
    18 #ifndef MSG_MEDIA_UTIL_H
    19 #define MSG_MEDIA_UTIL_H
    19 #define MSG_MEDIA_UTIL_H
    20 
    20 
       
    21 #ifdef MSGUI_UNIT_TEST
       
    22  #define MSGUI_UTILS_DLL_EXPORT
       
    23 #else
    21 #ifdef BUILD_MSGUI_UTILS_DLL
    24 #ifdef BUILD_MSGUI_UTILS_DLL
    22 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT
    25  #define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT
    23 #else
    26 #else
    24 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_IMPORT
    27  #define MSGUI_UTILS_DLL_EXPORT Q_DECL_IMPORT
       
    28 #endif
    25 #endif
    29 #endif
    26 
    30 
    27 /**
    31 /**
    28  * This class provides duration of media file by parsing it
    32  * This class provides duration of media file by parsing it
    29  * 
    33  * 
    55      * internal method traps all leaving functions
    59      * internal method traps all leaving functions
    56      * @param mediaFile file needs to be parsed to get duration 
    60      * @param mediaFile file needs to be parsed to get duration 
    57      * @return media duration in miliseconds
    61      * @return media duration in miliseconds
    58      */
    62      */
    59     TInt mediaDurationL(const TDesC& mediaFile);
    63     TInt mediaDurationL(const TDesC& mediaFile);
       
    64     
       
    65 #ifdef MSGUI_UNIT_TEST
       
    66     /**
       
    67      * Unit Testing
       
    68      */
       
    69     friend class TestMsgMediaUtil;
       
    70 #endif
    60     };
    71     };
    61     
    72     
    62 #endif // MSG_MEDIA_UTIL_H
    73 #endif // MSG_MEDIA_UTIL_H
    63 
    74 
    64 // EOF
    75 // EOF