messagingapp/smartmessaging/ringbc/inc/ringbc_p.h
changeset 31 ebfee66fde93
child 47 5b14749788d7
child 52 12db4185673b
equal deleted inserted replaced
30:6a20128ce557 31:ebfee66fde93
       
     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 
       
    25 class RingBCNSMConverter;
       
    26 
       
    27 class RingBcPrivate 
       
    28     {
       
    29 public:
       
    30     /**
       
    31      * Constructor
       
    32      */
       
    33     RingBcPrivate();
       
    34 
       
    35     /**
       
    36      * Destructor
       
    37      */
       
    38     ~RingBcPrivate();
       
    39 
       
    40     /**
       
    41      * Saves the given riging tone. 
       
    42      * @param path ringing tone file path.
       
    43      */  
       
    44     void saveTone(const QString &path);
       
    45 
       
    46     /**
       
    47      * Returns title for the given ringing tone.
       
    48      * @param path ringing tone binary file path.
       
    49      * @return QString title of the ringing tone.
       
    50      * 
       
    51      * returns null string if any error occurs in parsing
       
    52      * or unsupported type.
       
    53      */
       
    54     QString toneTitle(const QString &path);
       
    55     
       
    56 private:
       
    57 
       
    58     /**
       
    59      * Saves the given riging tone. 
       
    60      * @param path ringing tone file path.
       
    61      * @return error code 
       
    62      */  
       
    63     void saveToneL(const QString& aFileName);
       
    64     
       
    65     /**
       
    66      * Returns title for the given ringing tone.
       
    67      * @param path ringing tone binary file path.
       
    68      * @return QString title of the ringing tone.
       
    69      * 
       
    70      * returns null string if any error occurs in parsing
       
    71      * or unsupported type.
       
    72      */
       
    73     QString titleL(const TDesC& aFileName);
       
    74 
       
    75     /**
       
    76      * Does all the initializations. 
       
    77      */
       
    78     void initL();
       
    79 
       
    80 private:
       
    81     /**
       
    82      * Converter object.
       
    83      * Owned.
       
    84      */
       
    85     RingBCNSMConverter* mConverter;
       
    86     };
       
    87 
       
    88 #endif  // not defined RINGBC_PRIVATE_H
       
    89 // End of file