equal
  deleted
  inserted
  replaced
  
    
    
|         |      1 /* | 
|         |      2  * Copyright (c) 2010 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:This class provides duration of media file by parsing it | 
|         |     15  * | 
|         |     16  */ | 
|         |     17  | 
|         |     18 #ifndef MSG_MEDIA_UTIL_H | 
|         |     19 #define MSG_MEDIA_UTIL_H | 
|         |     20  | 
|         |     21 #ifdef BUILD_MSGUI_UTILS_DLL | 
|         |     22 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT | 
|         |     23 #else | 
|         |     24 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_IMPORT | 
|         |     25 #endif | 
|         |     26  | 
|         |     27 /** | 
|         |     28  * This class provides duration of media file by parsing it | 
|         |     29  *  | 
|         |     30  */ | 
|         |     31 class MSGUI_UTILS_DLL_EXPORT MsgMediaUtil | 
|         |     32     { | 
|         |     33      | 
|         |     34 public: | 
|         |     35     /** | 
|         |     36      * Constructor | 
|         |     37      */ | 
|         |     38     MsgMediaUtil(); | 
|         |     39      | 
|         |     40     /** | 
|         |     41      * Destructor | 
|         |     42      */ | 
|         |     43     ~MsgMediaUtil(); | 
|         |     44      | 
|         |     45     /** | 
|         |     46      * Get the media file duration | 
|         |     47      * @param mediaFile file needs to be parsed to get duration | 
|         |     48      * @return QString returns duration in string format(ex: "05:14") | 
|         |     49      */ | 
|         |     50     QString mediaDuration(const QString& mediaFile); | 
|         |     51      | 
|         |     52 private: //internal methods | 
|         |     53      | 
|         |     54     /* | 
|         |     55      * internal method traps all leaving functions | 
|         |     56      * @param mediaFile file needs to be parsed to get duration  | 
|         |     57      * @return media duration in miliseconds | 
|         |     58      */ | 
|         |     59     TInt mediaDurationL(const TDesC& mediaFile); | 
|         |     60     }; | 
|         |     61      | 
|         |     62 #endif // MSG_MEDIA_UTIL_H | 
|         |     63  | 
|         |     64 // EOF | 
|         |     65  |