messagingapp/smartmessaging/ringbc/inc/ringbc_p.h
branchRCL_3
changeset 57 ebe688cedc25
equal deleted inserted replaced
54:fa1df4b99609 57:ebe688cedc25
       
     1 /*
       
     2  * Copyright (c) 2002 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:  Private implementation of ringing tone bio control. 
       
    15  *     Finds whether ringing tone is valid and saves the ringing
       
    16  *     tone to the file system.
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef RINGBC_PRIVATE_H
       
    21 #define RINGBC_PRIVATE_H
       
    22 
       
    23 #include <QString>
       
    24 #include <e32base.h>
       
    25 
       
    26 class RingBCNSMConverter;
       
    27 
       
    28 class RingBcPrivate :public CBase
       
    29     {
       
    30 public:
       
    31     /**
       
    32      * Constructor
       
    33      */
       
    34     RingBcPrivate();
       
    35 
       
    36     /**
       
    37      * Destructor
       
    38      */
       
    39     ~RingBcPrivate();
       
    40 
       
    41     /**
       
    42      * Saves the given riging tone. 
       
    43      * @param path ringing tone file path.
       
    44      */  
       
    45     void saveTone(const QString &path);
       
    46 
       
    47     /**
       
    48      * Returns title for the given ringing tone.
       
    49      * @param path ringing tone binary file path.
       
    50      * @return QString title of the ringing tone.
       
    51      * 
       
    52      * returns null string if any error occurs in parsing
       
    53      * or unsupported type.
       
    54      */
       
    55     QString toneTitle(const QString &path);
       
    56     
       
    57 private:
       
    58 
       
    59     /**
       
    60      * Saves the given riging tone. 
       
    61      * @param path ringing tone file path.
       
    62      * @return error code 
       
    63      */  
       
    64     void saveToneL(const QString& aFileName);
       
    65     
       
    66     /**
       
    67      * Returns title for the given ringing tone.
       
    68      * @param path ringing tone binary file path.
       
    69      * @return QString title of the ringing tone.
       
    70      * 
       
    71      * returns null string if any error occurs in parsing
       
    72      * or unsupported type.
       
    73      */
       
    74     QString titleL(const TDesC& aFileName);
       
    75 
       
    76     /**
       
    77      * Does all the initializations. 
       
    78      */
       
    79     void initL();
       
    80 
       
    81 private:
       
    82     /**
       
    83      * Converter object.
       
    84      * Owned.
       
    85      */
       
    86     RingBCNSMConverter* mConverter;
       
    87     };
       
    88 
       
    89 #endif  // not defined RINGBC_PRIVATE_H
       
    90 // End of file